Skip to content

PenguLoader/docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docs

Pengu Loader Docs, built on top of VitePress.

How to run?

You need NodeJS 16+ and pnpm installed. Then clone the repo:

git clone https://github.com/PenguLoader/docs

Install dependencies and start development.

pnpm i
pnpm dev

Build and preview the production.

pnpm build
pnpm preview

Help us translate the docs

First, you need to create a new folder in the docs folder. For example, vi for Vietnamese.

docs/
  |__guide/           |
  |__runtime-api/     | -> english docs
  |__index.md         |
  ...
  |__vi/              | -> vietnamese docs

Next, copy the doc files and folders from the root of the docs folder (except the language folders) and then paste them into your language folder.

docs/
  |__vi/
    |__guide/
    |__runtime-api/
    |__index.md

Finally, add your language to the .vitepress/config.ts (see the i18n section on VitePress docs to learn more).

export default defineConfig({
  ...
  locales: {
    root: {   // root english
      label: 'English',
      lang: 'en',
    },
    'vi': {   // added vietnamese
      label: 'Tiếng Việt',
      lang: 'vi',
      link: '/vi/',
    }
  }
  ...
})

When you are finished editing the translation, push your changes to your forked repo, and then open a new Pull Request.