-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'status-im:master' into master
- Loading branch information
Showing
104 changed files
with
22,944 additions
and
10,302 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,48 +15,44 @@ jobs: | |
continue-on-error: true | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- uses: actions-rs/[email protected] | ||
with: | ||
crate: mdbook | ||
use-tool-cache: true | ||
version: "0.4.36" | ||
- uses: actions-rs/[email protected] | ||
with: | ||
crate: mdbook-toc | ||
use-tool-cache: true | ||
version: "0.14.1" | ||
- uses: actions-rs/[email protected] | ||
with: | ||
crate: mdbook-open-on-gh | ||
use-tool-cache: true | ||
version: "2.4.1" | ||
- uses: actions-rs/[email protected] | ||
with: | ||
crate: mdbook-admonish | ||
use-tool-cache: true | ||
version: "1.14.0" | ||
|
||
- uses: jiro4989/setup-nim-action@v1 | ||
with: | ||
nim-version: '1.6.6' | ||
nim-version: '1.6.20' | ||
|
||
- name: Generate doc | ||
run: | | ||
nim --version | ||
nimble --version | ||
nimble install -dy | ||
# nim doc can "fail", but the doc is still generated | ||
nim doc --git.url:https://github.com/status-im/nim-chronos --git.commit:master --outdir:docs --project chronos || true | ||
# check that the folder exists | ||
ls docs | ||
nimble docs || true | ||
- name: Clone the gh-pages branch | ||
uses: actions/checkout@v2 | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
repository: status-im/nim-chronos | ||
ref: gh-pages | ||
path: subdoc | ||
submodules: true | ||
fetch-depth: 0 | ||
|
||
- name: Commit & push | ||
run: | | ||
cd subdoc | ||
# Update / create this branch doc | ||
rm -rf docs | ||
mv ../docs . | ||
# Remove .idx files | ||
# NOTE: git also uses idx files in his | ||
# internal folder, hence the `*` instead of `.` | ||
find * -name "*.idx" -delete | ||
git add . | ||
git config --global user.email "${{ github.actor }}@users.noreply.github.com" | ||
git config --global user.name = "${{ github.actor }}" | ||
git commit -a -m "update docs" | ||
git push origin gh-pages | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./docs/book | ||
force_orphan: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ nimcache/ | |
nimble.develop | ||
nimble.paths | ||
/build/ | ||
nimbledeps |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.