hertzbeat/home
2024-10-22 17:21:36 +08:00
..
blog [doc] Add new committer blog (#2708) 2024-09-12 20:14:09 +08:00
docs [doc] drop dead link (#2777) 2024-10-22 17:21:36 +08:00
i18n [doc] drop dead link (#2777) 2024-10-22 17:21:36 +08:00
src [doc] add baota extern install doc (#2768) 2024-10-11 23:12:08 +08:00
static [doc] add baota extern install doc (#2768) 2024-10-11 23:12:08 +08:00
versioned_docs/version-v1.5.x [doc] drop dead link (#2777) 2024-10-22 17:21:36 +08:00
versioned_sidebars [Improve] remove 1.4 version doc and improve markdown format for MD001 (#2585) 2024-08-23 09:26:56 +08:00
babel.config.js init hertzbeat web home 2022-02-02 22:49:50 +08:00
docusaurus.config.js [doc] update contribution and add run-build guide (#1919) 2024-05-07 13:25:55 +08:00
LICENSE [improve] prepare for release hertzbeat v1.6.0 (#1929) 2024-05-09 15:22:53 +08:00
package.json [improve] add md-lint command and docs (#2640) 2024-08-31 20:01:47 +08:00
README.md [Improve] improve doc check (#2572) 2024-08-21 23:06:39 +08:00
sidebars.json [doc] add baota extern install doc (#2768) 2024-10-11 23:12:08 +08:00
versions.json [Improve] remove 1.4 version doc and improve markdown format for MD001 (#2585) 2024-08-23 09:26:56 +08:00
yarn.lock [website] update team page (#1803) 2024-04-22 13:36:18 +08:00

HertzBeat Website

This website is built with Docusaurus.

Installation

yarn install
## yarn install --registry=https://registry.npmmirror.com

I18N

yarn write-translations --locale zh-cn

yarn write-translations --locale en

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.

Build

yarn build

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

Deployment

GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy
OR
USE_SSH=true 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.

Deployment to Gitee

GITHUB_HOST=gitee.com USE_SSH=true yarn deploy  

Archive Version

yarn docusaurus docs:version v1.5.x

Directory Structure

|-- docs
|-- blog   
|-- i18n
|   `-- zh-CN  // internationalized chinese
|       |-- code.json
|       |-- docusaurus-plugin-content-blog
|       |-- docusaurus-plugin-content-docs
|       `-- docusaurus-theme-classic
|-- resource  // static resource file
|-- src
|   |-- theme
|   |-- css
|   |-- js
|   |-- pages
|   |   |-- components
|   |   |-- index.js
|   |-- constants.js
|-- static // picture static resource
|   |-- img  //
|   |   |-- blog // blog picture
|   |   |-- docs // document picture
|   |   |-- home // product picture
|   |   |-- icons // icon
|-- docusaurus.config.js
|-- sidebars.js // document sidebar menu configuration