Skip to content

Commit 56180f7

Browse files
authored
Merge pull request #13 from mvc-works/refactor
Refactor sidebar
2 parents 201b68f + 01c176b commit 56180f7

File tree

13 files changed

+1685
-925
lines changed

13 files changed

+1685
-925
lines changed

.github/workflows/upload.yaml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: Upload
33
on:
44
push:
55
branches:
6-
- master
76
- main
87
pull_request: {}
98

@@ -46,6 +45,7 @@ jobs:
4645
&& git clone https://github.com/Respo/respo-markdown.calcit.git
4746
&& git clone https://github.com/Respo/respo-ui.calcit.git
4847
&& git clone https://github.com/Respo/respo-router.calcit.git
48+
&& git clone https://github.com/Respo/alerts.calcit.git
4949
5050
- name: "compiles to js"
5151
run: >
@@ -66,3 +66,36 @@ jobs:
6666

6767
- name: Display status from deploy
6868
run: echo "${{ steps.deploy.outputs.status }}"
69+
70+
71+
# also need to upload mddook
72+
73+
- name: curl mdbook.tar.gz
74+
run: curl -L https://github.com/rust-lang/mdBook/releases/download/v0.4.14/mdbook-v0.4.14-x86_64-unknown-linux-gnu.tar.gz > ./mdbook.tar.gz
75+
76+
- name: curl linkcheck
77+
run: curl -L https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases/download/v0.7.6/mdbook-linkcheck.x86_64-unknown-linux-gnu.zip > ./linkcheck.zip
78+
79+
- name: tar mdbook
80+
run: tar -zxvf ./mdbook.tar.gz && unzip -n ./linkcheck.zip && chmod +x mdbook-linkcheck
81+
82+
- name: trick path
83+
run: echo "::add-path::$GITHUB_WORKSPACE/"
84+
85+
- name: mdbook build
86+
run: ./mdbook build && mv -v book/html/index.html book/html/mdbook.html
87+
88+
- name: Deploy to server
89+
id: deploy-mdbook
90+
uses: Pendect/action-rsyncer@v1.1.0
91+
env:
92+
DEPLOY_KEY: ${{secrets.rsync_private_key}}
93+
with:
94+
flags: '-avzr --progress'
95+
options: ''
96+
ssh_options: ''
97+
src: 'book/html/*'
98+
dest: 'rsync-user@tiye.me:/web-assets/repo/${{ github.repository }}'
99+
100+
- name: Display status from deploy
101+
run: echo "${{ steps.deploy.outputs.status }}"

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@
55
js-out/
66
node_modules/
77
dist/
8+
9+
book/

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
Docs workflow in Calcit-js
33
----
44

5-
> Respo web page based on [calcit-js](https://github.com/calcit-lang/calcit).
6-
75
Demo http://r.tiye.me/mvc-works/docs-calcit-workflow/ .
86

7+
### APIs
8+
9+
```cirru
10+
docs-workflow.comp.container/comp-container reel docs
11+
```
12+
913
### Usages
1014

1115
To develop:

assets/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pre {
4444
}
4545

4646
.doc-entry:hover {
47-
background-color: hsla(190, 10%, 80%, 0.1);
47+
background-color: hsla(190, 10%, 70%, 0.1);
4848
}
4949

5050
::-webkit-input-placeholder { /* Chrome/Opera/Safari */

book.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
[book]
3+
title = "Calcit Docs"
4+
authors = [ "tiye" ]
5+
src = "docs"
6+
7+
[output.html]
8+
9+
[output.linkcheck]
10+
11+
[build]
12+
create-missing = false

calcit.cirru

Lines changed: 1268 additions & 655 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)