Skip to content

Commit 6eb7ea8

Browse files
authored
Merge pull request #34 from switchbox-data/24-create-docs
Make model docs
2 parents 65cc073 + f5d1532 commit 6eb7ea8

File tree

9 files changed

+650
-18
lines changed

9 files changed

+650
-18
lines changed

.devcontainer/devcontainer.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
// Install just
99
"ghcr.io/guiyomh/features/just:0.1.0": {
1010
"version": "1.40.0"
11+
},
12+
"ghcr.io/rocker-org/devcontainer-features/quarto-cli:1": {
13+
"installChromium": true
14+
},
15+
"ghcr.io/rocker-org/devcontainer-features/apt-packages:1": {
16+
"packages": "chromium"
1117
}},
1218

1319
// Use 'postCreateCommand' to run commands after the container is created.

.github/workflows/docs.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy Documentation
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
jobs:
13+
deploy-docs:
14+
runs-on: ubuntu-latest
15+
environment:
16+
name: github-pages
17+
url: ${{ steps.deployment.outputs.page_url }}
18+
steps:
19+
- name: Check out
20+
uses: actions/checkout@v4
21+
22+
- name: Set up the environment
23+
uses: ./.github/actions/setup-python-env
24+
25+
- name: Install Quarto
26+
uses: quarto-dev/quarto-actions/setup@v2
27+
28+
- name: Install dev dependencies
29+
run: uv sync --group dev --group docs
30+
31+
- name: Build documentation
32+
run: uv run mkdocs build --strict
33+
34+
- name: Setup Pages
35+
uses: actions/configure-pages@v4
36+
37+
- name: Upload artifact
38+
uses: actions/upload-pages-artifact@v3
39+
with:
40+
path: site
41+
42+
- name: Deploy to GitHub Pages
43+
id: deployment
44+
uses: actions/deploy-pages@v4

.github/workflows/main.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,25 @@ jobs:
6767
- name: Set up the environment
6868
uses: ./.github/actions/setup-python-env
6969

70+
- name: Install docs dependencies
71+
run: uv sync --group docs
72+
7073
- name: Check if documentation can be built
7174
run: uv run mkdocs build -s
75+
76+
77+
deploy-docs:
78+
needs: check-docs
79+
runs-on: ubuntu-latest
80+
steps:
81+
- name: Check out
82+
uses: actions/checkout@v4
83+
84+
- name: Set up the environment
85+
uses: ./.github/actions/setup-python-env
86+
87+
- name: Install docs dependencies
88+
run: uv sync --group docs
89+
90+
- name: Deploy documentation
91+
run: uv run mkdocs gh-deploy --force

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,3 +211,13 @@ marimo/_lsp/
211211
__marimo__/
212212
.vscode/launch.json
213213
.DS_Store
214+
215+
outputs/
216+
/.quarto/
217+
*.html
218+
.DS_Store
219+
*_files/
220+
221+
# Explicitly include everything in docs directory
222+
!docs/
223+
!docs/**/*

0 commit comments

Comments
 (0)