For the configuration of the sidebar, you can refer to Sidebar.
For the features that you may use when writing documents, please refer to Markdown Features.
A standard document should look like this:
---
title: Title
description: description
keywords: [keyword1, keyword2]
authors: [GitHub username]
---
## Headers
Only h2 and h3 will be in the TOC by default, so h1 is not recommended to use.
### h3
content
#### h4
content
We use markdownlint-cli to lint the markdown and mdx files, you can use the following command to fix basic errors and get a list of document issues:
yarn lint:md
If you write docs using VSCode, Sublime, or Vim/Neovim, you can install the extension to get better lint experience.
Caution
Admonitions
You can add Admonitions in the documentation, but please leave two blank lines like this:
:::info Title
Title is optional
:::
JSX
You can use JSX in documents, such as the Tabs component provided by Docusaurus, but to prevent Crowdin from breaking the code (mdx-solutions), please wrap the JSX code:
casdoor.org
The configuration and documentation of Casdoor website: https://casdoor.org/.
Casdoor website is built using Docusaurus, you can get the PDF at casdoor.org/pdf or GitHub Action.
Get Started
Requirements
Running Locally
git clone https://github.com/casdoor/casdoor-website.git
cd casdoor-website
yarn install
: install dependencies.yarn start
: starting the development server.Contributing
You can contribute to the documentation site in different ways: Documentation Writing, Translation, Website Development.
Documentation Writing
For the configuration of the sidebar, you can refer to Sidebar.
For the features that you may use when writing documents, please refer to Markdown Features.
A standard document should look like this:
We use markdownlint-cli to lint the markdown and mdx files, you can use the following command to fix basic errors and get a list of document issues:
If you write docs using VSCode, Sublime, or Vim/Neovim, you can install the extension to get better lint experience.
Caution
Admonitions
You can add Admonitions in the documentation, but please leave two blank lines like this:
JSX
You can use JSX in documents, such as the Tabs component provided by Docusaurus, but to prevent Crowdin from breaking the code (mdx-solutions), please wrap the JSX code:
Translation
Crowdin and Docusaurus i18n is used for Casdoor website’s translation.
Please note that some sentences do not require translation or need to be translated according to our regulations:
Please do not translate strings like
:::note
,:::tip
, wrong translation may cause typographical error(casdoor-website#305).You may see some sentences containing
{}
, like:Please do not translate
{repoLink}
or{issueLink}
or any similar words, they are interpolation placeholders.authors: [casdoor]
.Website Development
See Creating Pages to learn how to create a page.
See Styling and Layout to learn how to modify styles.
See Swizzling to learn how to modify Docusaurus built-in components.
LICENSE
Apache-2.0 license.