Skip to content

Commit

Permalink
Merge pull request #32 from tmayoff/docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tmayoff authored Oct 26, 2024
2 parents 3ec33f8 + ed71f57 commit 6a71c8c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 17 deletions.
32 changes: 20 additions & 12 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,37 @@ on:
- main
paths:
- docs/**
- mkdocs.yml
- Doxyfile
workflow_dispatch:

permissions:
contents: write
jobs:
deploy_docs:
runs-on: ubuntu-latest

permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

steps:
- uses: actions/checkout@v4

- uses: DeterminateSystems/nix-installer-action@v14
- uses: DeterminateSystems/magic-nix-cache-action@v8

- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
- name: build docs
run: |
mkdir -p build/docs
nix develop --command just build_docs
- name: upload artifacts
uses: actions/upload-pages-artifact@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material mkdocs-mermaid2-plugin
- run: mkdocs gh-deploy --force
path: 'build/docs/html'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
7 changes: 2 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
meson
cmake
ninja

# doxygen
# graphviz
];

rawBuildInputs = with pkgs; [
Expand Down Expand Up @@ -93,8 +90,8 @@

renderdoc

tracy-x11 # for the profiler
wayland
doxygen
graphviz
]
++ rawNativeBuildInputs;

Expand Down

0 comments on commit 6a71c8c

Please sign in to comment.