This website is built using Docusaurus, a modern static website generator.
$ npx create-docusaurus@latest my-website classic
$ npm run start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
$ npm run build
$ npm run serve
This command generates static content into the build directory and can be served using any static contents hosting service.
Using SSH:
$ USE_SSH=true yarn deploy
Not using SSH:
$ GIT_USER=<Your GitHub username> yarn deploy
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.
This website uses GtiHub Action for auto deployment, the GitHub pipeline files are stored under .github/workflows/deploy.yml. The source repo and deployment repo are the same repository. Therefore, committing and pushing from a remote repo to the main branch of this GitHub repo will automatically trigger this GitHub Pipeline.
flowchart LR
A([Build Docusaurus])
B([Deploy to https://blackteacatsu.github.io/dokkuments/])
A --> B
This site uses LaTex syntax to show math components. For inline math
$y = mx +b$
And for outstanding block of math expression use the following,
$$
y = mx + b
$$
This sites' code block support native Mermaid snippet rendering. To create new Mermaid figures, add new Mermaid code block in your Markdown file.
This site uses react-player to showcase video, at beginning of .md add the following command:
import ReactPlayer from "react-player"
import MyVideoUrl from './video/myVideo.mp4';
Then, insert <ReactPlayer> tag at the appropriate location,
<ReactPlayer playing controls url='video.mp4' />