This website is built using Docusaurus, a modern static website generator.
yarnyarn startThis command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
yarn buildThis command generates static content into the build directory and can be served using any static contents hosting service.
Using SSH:
USE_SSH=true yarn deployNot using SSH:
GIT_USER=<Your GitHub username> yarn deployIf you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.
To add a doc, simply create a .md file inside the docs folder and add the content you want. It will automatically be compiled and added to the website.
To add a category/folder, it's the same process. Create the folder inside docs and it will add it automatically.
For code documentation, here is an example of adding code to the markdown:
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
const greeting = "Hello, World!";
console.log(greeting);greeting = "Hello, World!"
print(greeting)public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}greeting = "Hello, World!"
print(greeting)In order to change the look of the website, you can adjust the themes inside docusaurus.config.ts or you can modify CSS inside custom.css. Docusaurus uses custom flags that can be identified from the inspect menu, in order to properly change the colors.
If you change the URL of the site, make sure to update docusaurus.config.ts (both url and BaseURL) to match it. It needs to be the correct URL in order to build properly.