Skip to content

Commit

Permalink
Merge pull request #76 from GeotrekCE/vitepress_build
Browse files Browse the repository at this point in the history
Add read the docs build config
  • Loading branch information
bastyen authored Feb 13, 2024
2 parents d4bfdc8 + ebcbfc3 commit 01a5a73
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ jobs:
echo "Tag name from github.ref_name: ${{ github.ref_name }}"
- name: Build
run : npm run build

- name: Test doc build
run: npm run docs:build

13 changes: 13 additions & 0 deletions docs/.readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

version: 2

build:
os: ubuntu-22.04
tools:
nodejs: "20"
commands:
- mkdir --parents $READTHEDOCS_OUTPUT/html/
- npm ci
- npm run docs:build -- --base "/$READTHEDOCS_VERSION/"
- cp --recursive docs/.vitepress/dist/* $READTHEDOCS_OUTPUT/html/

0 comments on commit 01a5a73

Please sign in to comment.