Skip to content

Commit bed350a

Browse files
authored
Add documentation workflow and mkdocs config (#48)
1 parent 15b6f87 commit bed350a

Some content is hidden

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

42 files changed

+312
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
# Allow one concurrent deployment
15+
concurrency:
16+
group: "pages"
17+
cancel-in-progress: true
18+
19+
# Default to bash
20+
defaults:
21+
run:
22+
shell: bash
23+
24+
jobs:
25+
build:
26+
runs-on: ubuntu-latest
27+
28+
steps:
29+
- uses: actions/checkout@v5
30+
- name: Install Hatch
31+
uses: pypa/hatch@install
32+
- name: Build
33+
run: hatch run docs:build
34+
- name: Upload artifact
35+
uses: actions/upload-pages-artifact@v4
36+
with:
37+
path: ./site
38+
39+
deploy:
40+
environment:
41+
name: github-pages
42+
url: ${{ steps.deployment.outputs.page_url }}
43+
runs-on: ubuntu-latest
44+
needs: build
45+
steps:
46+
- name: Deploy to GitHub Pages
47+
id: deployment
48+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,5 @@ target/
7474
# Node
7575
node_modules
7676

77+
# mkdocs site
78+
site/

docs/index.md

Lines changed: 1 addition & 0 deletions

docs/reference/account.md

Lines changed: 3 additions & 0 deletions

docs/reference/account_models.md

Lines changed: 3 additions & 0 deletions

docs/reference/achievements.md

Lines changed: 3 additions & 0 deletions
Lines changed: 3 additions & 0 deletions

docs/reference/catalog.md

Lines changed: 3 additions & 0 deletions

docs/reference/catalog_models.md

Lines changed: 3 additions & 0 deletions

docs/reference/client.md

Lines changed: 3 additions & 0 deletions

0 commit comments

Comments
 (0)