Skip to content
项目

关于

Developer Docs for building on Safe.

开发工具

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
+1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Safe Documentation

License GitHub package.json version (branch)

This repository hosts Safe documentation.

The documentation is built with Nextra and is live at docs.safe.global.

Prerequisites

  • Node.js in the version set in the .nvmrc file. Run nvm use, or use any version manager that reads .nvmrc.
  • pnpm in the version set in the packageManager field of the package.json file. Run corepack enable to get it.

Installation

Install the dependencies using pnpm:

pnpm install

Development

Git hooks are set up to run tests and linting checks before every git push. These hooks can be executed locally by running the following command:

pnpm prepush

All links in the documentation are checked for validity on every pull request. These checks can be executed locally by running the following command:

pnpm linkcheck

Execution

The project can be run with a server that's executed in development and production mode.

Development mode

Run the server in development mode using the following command:

pnpm dev

Production mode

Build the project:

pnpm build

Run the server in production mode using the following command:

pnpm start

Testing

Create an environment file in the root of the project and copy the content from the .env.example file using the following command:

cp .env.example .env

Remember to update the environment variables once the .env file is created.

Run the tests using the following command:

pnpm test

License

This project is licensed under the MIT License.

Contributing

Contributions are more than welcome! Please open an issue or create a pull request by following our contributions guidelines.

探索相关项目

加载中…