Skip to content

Commit

Permalink
mkdocs build to ./public by default
Browse files Browse the repository at this point in the history
  • Loading branch information
aljazs-flare committed Mar 16, 2024
1 parent 2d05ab2 commit ad4c31a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
with:
python-version: 3.x
- run: pip install -r requirements.txt
- run: mkdocs build --strict
- run: mkdocs build --verbose --strict
- uses: upload-pages-artifact
with:
path: public
path: ./public

deploy:
needs: build
Expand Down
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pages:
script:
- |
set -o pipefail
mkdocs build --verbose --strict --site-dir ./public 2>&1 | tee -a /tmp/mkdocs.build.log || { cat /tmp/mkdocs.build.log | grep "WARNING"; exit 1; }
mkdocs build --verbose --strict 2>&1 | tee -a /tmp/mkdocs.build.log || { cat /tmp/mkdocs.build.log | grep "WARNING"; exit 1; }
test -f public/index.html && echo "View the generated docs at $CI_ENVIRONMENT_URL"
artifacts:
expire_in: 3 days
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ copyright: >-
site_url: https://docs.flare.network
repo_url: https://github.com/flare-foundation/docs
edit_uri: edit/main/docs/
site_dir: public
nav:
- Home:
- index.md
Expand Down

0 comments on commit ad4c31a

Please sign in to comment.