On GitHub, vapor/docs has picked up 330 stars, Swift. ๐ Documentation markdown for all Vapor packages.
Snapshot summary built from the project's own GitHub metadata โ there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then โ see the READ ME tab for the original README in full.
Now, clone the repo and move to the folder where you cloned the repo
cd /path/to/folder/
then build the pacakge with SPM
swift run VaporDocs
This will generate a site folder, now go inside the site folder
cd ./site/
then run it with kiln
kiln serve
finally open from the browser on the port 8000
e.g.
http://127.0.0.1:8000
Contributing
If you want to add information to the docs or have found any mistakes you wish to fix, feel free to create a PR for the change.
Translating
Localised docs are incredibly useful for allowing people to learn Vapor in their native language. If you wish to contribute to the Vapor documentation by translating, follow the steps below.
The docs are generated with Kiln, a documentation site generator written in Swift, so you'll need a Swift 6.2+ toolchain (no Python required). Build the site by running swift run VaporDocs in the root of the repository; the generated site is written to the site/ directory.
The translations live in Sources/VaporDocs/Languages.swift โ the languages array (which Version4.swift passes to the docs site). Check whether the language you want to translate to is already there. If not, add it:
Language(
.dutch, // a built-in LanguageCode, or .custom(code: "xx", name: "โฆ")
siteName: "Vapor Documentatie",
description: "Vapor documentatie (webframework voor Swift).",
navTranslations: [
"Welcome": "Welkom",
"Install": "Installeren",
],
customStrings: [
// Docs-specific navbar/footer strings. Copy the keys from the English
// block above; any you leave out fall back to English.
"skipToContent": "Naar de inhoud",
// โฆ
],
image: "assets/og/nl-2x.png", // per-language social card (see below)
localisation: .init(
searchPlaceholder: "Zoeken"
// โฆ other built-in UI strings; any left unset fall back to English
)
)
Navigation titles are translated via navTranslations, keyed by the English title used in the navigation tree. Kiln's built-in UI strings (search box, "previous"/"next", error page, โฆ) are translated via localisation, and the docs-specific chrome (the language/version/theme picker labels, footer links, the skip-to-content link, โฆ) via customStrings โ copy its keys from the English language block. Anything you leave unset in either falls back to English, so partial translations are fine.
Each language also gets its own social/OpenGraph preview card. Add a 1200ร630 PNG (ideally 2ร, i.e. 2400ร1260) at docs/4.0/assets/og/<language code>-2x.png and point to it with image: "assets/og/<code>-2x.png". Omit it and the language falls back to the site-wide card.
Copy the markdown file you would like to translate and name it <original file name>.<language code>.md. For example:
- index.md <- the original English documentation
- index.nl.md <- the Dutch translation
You can preview your changes by running swift run VaporDocs and serving the output, e.g. python3 -m http.server --directory site. Once you are satisfied with your translations, feel free to create a PR.
NOTE: If a file isn't translated, it will just default to the default language file. So you don't have to translate everything all at once.
NOTE: The docs and main site show a small banner offering visitors their preferred language ("This site is available in โฆ"). For a brand-new language to be proactively suggested there, its locale and native name also need adding to the LOCALES map in the shared design repo, vapor/design (src/js/languageSuggestion.js). The translation works without this โ the banner just won't suggest the new language until it's added.
Finally, you should add the new language to the issue template to ensure that any future changes are applied to the new translation.
Licensing
Except where otherwise noted, Vapor Documentation by Vapor is licensed under CC BY-NC-SA 4.0
The most recent commit recorded on vapor/docs was 7 days ago, based on the GitHub push timestamp. The repository has 336 forks โ one of the better signals of community interest.
How many stars does vapor/docs have?
vapor/docs has 330 GitHub stars โ refresh the page for the live number, or check github.com/vapor/docs. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
What is vapor/docs?
vapor/docs (vapor/docs) is a Swift project on GitHub. From the project's own README: ๐ Documentation markdown for all Vapor packages.
What language is vapor/docs written in?
vapor/docs is written primarily in Swift. GitHub's language field is based on the largest share of bytes in the default branch.
What topics is vapor/docs associated with?
GitHub's repository topics for vapor/docs: "documentation", "server-side-swift", "vapor". TopGit's editorial category is open-source.
Read full README in the tab above.
Curious whether docs is right for you?
Let ChatGPT, Claude, or Perplexity look into it โ click below and see what AI actually says about docs.