Skip to content

Repository files navigation

Website

This website is built using Docusaurus, a modern static website generator.

Installation

$ yarn

Preparation

Use python script to generate docs from the data.

python3 -m scripts.gen_docs --language en
python3 -m scripts.gen_docs --language zh

Local Development

$ yarn 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.

To add translation, generate translation file and modify the corresponding json.

npm run write-translations -- --locale zh

Build

$ NODE_OPTIONS="--max-old-space-size=32768" yarn build

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

Using SSH:

$ USE_SSH=true NODE_OPTIONS="--max-old-space-size=32768" yarn deploy

Not using SSH:

$ GIT_USER=<Your GitHub username> NODE_OPTIONS="--max-old-space-size=32768" 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.

About

漏洞规则库是一个致力于帮助开发者识别和避免常见安全漏洞的开源项目。我们收集、整理和分析各类编程语言和常用库中的安全漏洞模式,并提供相应的防范措施和最佳实践。

Resources

Stars

39 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages