A security operating system focused on the AIoT field
English | 中文版
This repository is the source repository for the InfisecOS documentation built using Docusaurus. Docusaurus is an open-source website generator tool developed by Meta, based on React, for creating, maintaining, and deploying static websites.
Docusaurus is actually a set of Node.js packages, so this documentation is essentially a Node.js application. Therefore, the first step is to ensure that the Node.js environment is correctly installed.
- Yarn is used as the package manager. By default, yarn is not installed in Node.js, so first, use the command
npm install -g yarn
to install it globally. - To start development for the first time, you need to run the command
yarn install
to install the required dependencies. - Use any editor (VS Code is recommended) to modify the source code and edit new documents (all in Markdown format)
- Running the command
yarn start
will start a local development server and automatically open a browser window to preview the entire website.
Currently, the InfisecOS documentation website is hosted on GitHub Pages. The repository is configured by default to deploy via GitHub Actions. When the source code is committed to the repository, it will automatically trigger GitHub Actions to deploy the website.
It also supports yarn deploy for deploying to a separate branch (after modifying the repository configuration).
- Linux:
Use SSH:
$ USE_SSH=true yarn deploy
Not use SSH:
$ GIT_USER=<Your GitHub username> yarn deploy
- Windows PowerShell:
Use SSH:
$ cmd /C 'set "USE_SSH=true" && yarn deploy'
Not use SSH:
$ cmd /C 'set "GIT_USER=<Your GitHub username>" && yarn deploy'