Skip to content

Commit d8057ec

Browse files
JasonShinJasonShinJasonShin
authored
chore: new docs website (#199)
* better docs * docs only * clean up * fix * wip * adding troubleshooting, limitations * ignore files * fixing logger * fix cli * add cli options * adding CLI options * correct the description of --generate-path * allow stdout/stderr for custom logger methods in config.rs * fix * better error message * enhancing the ignore patterns * ignore examples * CLI info * hrm * rename docco * cleanup * adding type generation * clean up * fix * fix broken footers * adding pages * fix * change docs deploy to main push --------- Co-authored-by: JasonShin <[email protected]> Co-authored-by: JasonShin <[email protected]>
1 parent 4ef7e23 commit d8057ec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+18871
-405
lines changed

.github/workflows/deploy-gh-pages.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Deploy docs/install-script to gh-pages branch for public use
22
on:
3-
release:
4-
types: [created]
3+
push:
4+
branches: [main]
55

66
jobs:
77
publish-docs-and-install-script:
@@ -13,13 +13,16 @@ jobs:
1313
- name: Checkout 🛎️
1414
uses: actions/checkout@v3
1515

16-
- name: Setup mdBook
17-
uses: peaceiris/actions-mdbook@v1
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v3
1818
with:
19-
mdbook-version: 'latest'
19+
node-version: 22.x
2020

21-
- name: compiles the documentation
22-
run: mdbook build
21+
- name: Install dependencies
22+
run: npm ci
23+
24+
- name: Build
25+
run: npm run build
2326

2427
- name: copies install.sh into the deployment folder
2528
run: cp ../scripts/install.sh ./book/

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ node_modules
1717
node/README.md
1818

1919
# book
20-
book/book
20+
_book/book
21+
book/.docusaurus
2122

2223
# vscode
2324
.run

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ tokio = { version = "1.40.0", features = ["rt-multi-thread", "macros", "default"
3434
async-recursion = "1.1.1"
3535
async-trait = "0.1.82"
3636
bb8 = "0.8.5"
37+
log = "0.4.22"
3738

3839
[dev-dependencies]
3940
assert_cmd = "2.0.16"

book/.gitignore

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
1-
book
1+
# Dependencies
2+
/node_modules
3+
4+
# Production
5+
/build
6+
7+
# Generated files
8+
.docusaurus
9+
.cache-loader
10+
11+
# Misc
12+
.DS_Store
13+
.env.local
14+
.env.development.local
15+
.env.test.local
16+
.env.production.local
17+
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*

book/README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Website
2+
3+
This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.
4+
5+
### Installation
6+
7+
```
8+
$ yarn
9+
```
10+
11+
### Local Development
12+
13+
```
14+
$ yarn start
15+
```
16+
17+
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
18+
19+
### Build
20+
21+
```
22+
$ yarn build
23+
```
24+
25+
This command generates static content into the `build` directory and can be served using any static contents hosting service.
26+
27+
### Deployment
28+
29+
Using SSH:
30+
31+
```
32+
$ USE_SSH=true yarn deploy
33+
```
34+
35+
Not using SSH:
36+
37+
```
38+
$ GIT_USER=<Your GitHub username> yarn deploy
39+
```
40+
41+
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.

book/book.toml

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)