Skip to content

Commit

Permalink
feat: update config
Browse files Browse the repository at this point in the history
  • Loading branch information
chenos committed Jan 15, 2024
1 parent 37a4d37 commit b5344d2
Show file tree
Hide file tree
Showing 13 changed files with 1,730 additions and 1,711 deletions.
2 changes: 1 addition & 1 deletion .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { nav, sidebar } from './docs/config';

const lang = process.env.DOC_LANG || 'zh-CN';

console.log('process.env.DOC_LANG', process.env.DOC_LANG);
console.log('process.env.DOC_LANG', lang);

// 设置多语言的 title
function setTitle(menuChildren: any) {
Expand Down
23 changes: 9 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
# nocobase-docs

A static site base on [dumi](https://d.umijs.org).
# NocoBase Documentation

## Development

```bash
# install dependencies
$ yarn install

# start dev server
$ yarn start

# build docs
$ yarn run build
git clone https://github.com/nocobase/docs.git
cd docs
yarn install
# 运行中文文档
yarn dev
# or run en-US document
yarn dev:en
```

## LICENSE

MIT
Note: `yarn dev` and `yarn dev:en` cannot be run at the same time
Loading

0 comments on commit b5344d2

Please sign in to comment.