AdguardTeam/KnowledgeBase
Website
This website is built using Docusaurus 2, a modern static website generator.
master
branch is published automatically to https://kb-adg.pages.dev/.
How to contribute
You can help by contributing to the Knowledge Base, all details are described in this article.
How to develop
Prepare
First of all, you need to install the following:
Second, clone this repo to your local computer:
-
git clone git@github.com:AdguardTeam/KnowledgeBase.git
Alternatively, you can use the Github app to do that.
Then you should open Terminal on your computer, navigate to the directory where you cloned this repo and run this command to install the local dependencies:
-
pnpm install
Lint markdown
This command lints the markdown and outputs any errors to the console:
-
pnpm lint:md
Some of errors can be fixed automatically:
-
pnpm lint:md --fix
VSCode users can install the markdownlint extension to see the errors in the editor.
Run it locally
-
pnpm start
This command lints markdown syntax, and if there is no markdownlint errors starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
How to build
-
pnpm build
This command generates static content into the build
directory and can be served using any static contents hosting service.
How to translate
Localizations are not pushed to the repo and prepared on-the-fly (i18n
folder is added to .gitignore
).
Here's how you can debug translations locally.
- Download translations:
CROWDIN_PERSONAL_TOKEN="YOURTOKEN" pnpm run crowdin download
- Run Docusaurus with the language of your choice:
pnpm run start -- --locale de
最近版本更新:(数据更新于 1970-01-01 00:00:00)
AdguardTeam/KnowledgeBase同语言 MDX最近更新仓库
2024-08-27 17:07:26 e2b-dev/E2B
2023-10-24 02:31:49 uidotdev/usehooks
2023-09-29 19:14:55 yewstack/yew
2023-07-29 03:23:36 react-native-elements/react-native-elements
2023-03-29 21:48:13 trigaten/Learn_Prompting
2022-04-08 23:22:39 ademilter/homepage