Skip to content

Commit

Permalink
Add initial version
Browse files Browse the repository at this point in the history
  • Loading branch information
pengpeng committed May 21, 2024
1 parent 60a351d commit e7ef88d
Show file tree
Hide file tree
Showing 376 changed files with 16,038 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
docs/.vitepress/dist/
docs/.vitepress/cache/
node_modules
.idea/

.DS_Store
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"vue.vscode-typescript-vue-plugin"
]
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"i18n-ally.localesPaths": [
"packages/locale",
"packages/app/src/i18n"
]
}
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
# docs
# Terminus Docs

## Run

```shell
npm install
npm run docs:dev
```

Open Browser at http://localhost:5173/docs/
23 changes: 23 additions & 0 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { defineConfig } from "vitepress";
import { withMermaid } from "vitepress-plugin-mermaid";
import { en } from "./en";
import { zh } from "./zh";
// https://vitepress.dev/reference/site-config
export default withMermaid({
title: "Terminus",
description: "Let people own their data again",
lang: "en",
locales: {
root: {
label: "English",
...en,
},
},
base: process.env.DOC_BASE || "/",
vite: {
build: {
minify: "terser",
chunkSizeWarningLimit: Infinity,
},
},
});
Loading

0 comments on commit e7ef88d

Please sign in to comment.