Skip to content
This repository has been archived by the owner on Jul 11, 2021. It is now read-only.

Latest commit

 

History

History
80 lines (52 loc) · 2.54 KB

CONTRIBUTING.md

File metadata and controls

80 lines (52 loc) · 2.54 KB

Contributing to Verdaccio Website

Translations

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.

Source Code Documentation

The language by default is English, all source code is under the docs folder.

https://github.com/verdaccio/website/tree/master/docs

Source Code Website

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)

Development

Running website locally

Install pnpm

npm i -g pnpm

Go to cd website that include the docusaurus source code

Scripts

Start the dev server (browser will open)

pnpm run start

Build the website on build/ folder

pnpm run build

Pull Request

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

How to add a new page

  1. Add a new markdown document on this location
  2. Define the header for the markdow like this:
---
id: idOfTheArticlePleaseUseCamelCase
title: "The Title of my article"
---

your content ...
  1. Edit sidebar.json and add the reference using the ID in the previous section.
  2. If you need to refernces images, use this syntax ![install verdaccio](assets/install_verdaccio.gif) and copy all files to the assets folder
  3. PR your changes
  4. Wait until finish the build and preview your changes

New_Crowdin_updates_by_juanpicado_·_Pull_Request__304_·_verdaccio_website