English | 简体中文
aseprite-vitepress is a project that ports the official Aseprite documentation using VitePress. It has excellent multilingual support and is expanded based on the official documentation repository, making it easy to update the documentation at any time.
Important
This repository contains submodules. You need to use the git clone --recurse-submodules command to clone it.
git clone --recurse-submodules https://github.com/aseprite-vitepress/aseprite-vitepress.gitInstall dependencies
npm install- Use the
createscript command to create a new language directory
npm run create <your language>
# Or use other package managers, such as bun
# bun run create <your language>- In the
.vitepress/config.mtsfile, add the new language configuration
locales: {
root: { label: 'English' },
zh: { label: '简体中文' },
jp: { label: '日本語' },
+ <your language>: { label: 'your language' },
},- In the new language folder, translate the documentation
Use the check command to check if the documentation has been updated
npm run check <your language>If there are updates, it will prompt you whether to copy the files
Do you want to copy these files? (y/n):Use vitepress for developer debugging
npm run docs:devUse vitepress for building and previewing
# build
npm run docs:build
# preview
npm run docs:previewIf the build and preview are successful, you can submit a PR.