If you are willing to contribute with translations you need to fullfil some requirements:
- You need a crowdin account.
- Chose the target language if exist otherwise request to be enabled.
The language by default is English, all source code is under the docs
folder.
https://github.com/verdaccio/website/tree/master/docs
We use Docusaurus to publish the website, it is based on React. The source code is under the folder
https://github.com/verdaccio/website/tree/master/website
🚨🚨 Some caveats you need to keep on mind 🚨🚨:
- Do not update files in the following folders due are autogenerated by crowdin
website/website/translated_docs
website/website/versioned_docs
website/website/versioned_sidebars
website/i18n/!en.json
(only update en.json, the other files are autogenerated)
Install pnpm
npm i -g pnpm
Go to cd website
that include the docusaurus source code
Start the dev server (browser will open)
pnpm run start
Build the website on build/
folder
pnpm run build
For this repository there is no strict rules, please follow the basics:
- Document and explain your changes for faster code reviews
- Verify with Netlify preview (see the checks clicking on Details) to open the preview URL
- Add a new markdown document on this location
- Define the header for the markdow like this:
---
id: idOfTheArticlePleaseUseCamelCase
title: "The Title of my article"
---
your content ...
- Edit
sidebar.json
and add the reference using the ID in the previous section. - If you need to refernces images, use this syntax
![install verdaccio](assets/install_verdaccio.gif)
and copy all files to the assets folder - PR your changes
- Wait until finish the build and preview your changes