privateersclub-wiki/CONTRIBUTING.md

42 lines
1.4 KiB
Markdown

# Contributing
You can contribute to the project in various ways:
- Submissions (software, sites, useful content)
- Translations
## Generation
For site generation, we use [Vitepress](https://vitepress.dev), so you'll need a working Node.js
environment installed. Refer to its documentation for making changes to Vitepress itself.
You will also need some hands-on experience with TypeScript if you're going to contribute to
improving internals.
The root directory is `docs/`.
## Content
All content resides in the `docs/` folder of the repository. Edit them as you would with normal
Markdown files.
## Translations
:::warning This is still a work in progress. :::
See <https://vitepress.dev/guide/i18n> and [our tracker](https://megathread.pages.dev/_translations).
There are two things to translate: content and strings used in Vitepress (sidebar, nav, etc.).
Start by creating a folder in `docs/<locale>` and write your content in the exact same format.
Then, edit Vitepress strings. This may seem daunting, especially if you haven't used TypeScript or
dealt with configurations like these before, but it shouldn't be overly difficult, and you don't
have to do it now.
Create your locale file in `docs/.vitepress/locales/<locale>.ts`, copying over the format from the
root English file, and start editing.
Once you're done, add it to Vitepress' config in `docs/.vitepress/config.ts`. If you've come this
far, adding the language shouldn't be too challenging.