-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs workflow * rename docs.yml workflow to gh-pages.yml * rename workflow name in stupid yaml file (i hate yaml) * use taiki-e/install-action for mdbook install and dtolnay nightly * docs fixes! * whoops! * docs update site url * simple python preprocessor * lager src!? * whoops * docs reorg-ing * renamed lowercase due to windows weirdness * made readme into index
- Loading branch information
1 parent
408e7c7
commit 9401bdb
Showing
7 changed files
with
90 additions
and
7 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: gh-pages | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
docs-build-test-deploy: | ||
name: Build, test and deploy docs | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write # To push a branch | ||
pull-requests: write # To create a PR from that branch | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@nightly | ||
- name: Setup mdBook | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: mdbook | ||
- run: mdbook build docs && mdbook test docs | ||
- name: upload-artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: book | ||
path: docs/book | ||
|
||
- name: deploy-docs | ||
uses: peaceiris/actions-gh-pages@v4 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./docs/book |
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
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""No-op mdbook preprocessor | ||
BASED ON: https://github.com/PyO3/pyo3/blob/main/guide/pyo3_version.py | ||
""" | ||
|
||
import json | ||
import sys | ||
|
||
|
||
def modify_section(section): | ||
if not isinstance(section, dict) or "Chapter" not in section: | ||
return | ||
|
||
|
||
def main(): | ||
# lines = [] | ||
for line in sys.stdin: | ||
if line: | ||
[context, book] = json.loads(line) | ||
for section in book["sections"]: | ||
modify_section(section) | ||
json.dump(book, fp=sys.stdout) | ||
# lines.append(line) | ||
# with open("docs-data.json", "w") as f: | ||
# f.writelines(lines) | ||
|
||
if __name__ == '__main__': | ||
main() |
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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
# Summary | ||
|
||
- [README](./README.md) | ||
- [README](./index.md) | ||
- [DEVELOPMENT](./DEVELOPMENT.md) | ||
- [API](./API.md) | ||
|
||
___ | ||
|
||
- [API](./api.md) |
File renamed without changes.
File renamed without changes.