В этом репозитории нет файла лицензии. Код открыт для чтения, но само по себе это не даёт права использовать его.
README.md
SampSharp Documentation
This repository contains the source files for the SampSharp documentation. The site is built with DocFX, a powerful documentation generator designed for .NET projects.
For Documentation Contributors Only
This guide is intended for people contributing to the SampSharp documentation. If you're looking for SampSharp documentation, visit sampsharp.net.
Quick Start
Prerequisites
- .NET 10 SDK or later
Running Locally
-
Install DocFX (one-time setup):
dotnet tool install -g docfx -
Build the SampSharp component:
cd sampsharp-src && ./build.sh component -
Start the development server:
docfx --serveThe site will be available at
http://localhost:8080/
Contributing
Writing Documentation
All documentation is written in Markdown in the docs/ folder. For Markdown syntax reference, see the DocFX Markdown Documentation.
Adding a New Page
-
Create a new
.mdfile in the appropriate folder underdocs/:docs/core-concepts/- ECS concepts and architecture fundamentalsdocs/features/- Feature-specific guidesdocs/reference/- Reference materialdocs/support/- Support content (troubleshooting, migration guides)
-
Add a YAML frontmatter header to the file:
--- title: Your Page Title uid: unique-identifier --- -
Add the file reference to the corresponding
toc.yml:- href: your-page.md
Documentation Structure
docs/
├── index.md # Home page (redirects to quick-start)
├── quick-start.md # Quick Start guide
├── getting-started.md # Redirect stub for legacy URL
├── core-concepts/ # ECS pages (linked directly from root TOC)
│ ├── index.md # Entity-Component-System overview
│ └── ...
├── features/ # Feature pages (linked directly from root TOC)
│ └── ...
├── reference/
│ ├── toc.yml # Reference table of contents
│ └── ...
├── support/
│ ├── toc.yml # Support table of contents
│ └── ...
├── legacy/ # Legacy/deprecated content
│ ├── toc.yml
│ └── ...
└── toc.yml # Main table of contents
Markdown Tips
- Internal links: Use relative paths with
.mdextension:[link text](systems.md)or[link text](../guides/systems.md) - External links: Use full URLs:
[link text](https://example.com) - Cross-references: Link to other documentation pages using
<xref:uid>(whereuidis the page'suidfield from frontmatter):<xref:systems> - Note blocks: Use
> [!NOTE]syntax for important callouts - Tabs: Use DocFX tab syntax for tabbed content (see DocFX Markdown Documentation)
- Code references: Use
<xref:NameSpace.ClassName>to create cross-references to API documentation
Resources
gtasaompopen-mpopen-multiplayersa-mpsa-mp-serversamp-serversampsharp
Страница собрана из того, что GitHub публикует о репозитории. samp.directory не хранит этот код. Сообщить о проблеме с этой записью