Skip to content

Commit

Permalink
Merge pull request #655 from DHI/quarto
Browse files Browse the repository at this point in the history
Change documentation from Sphinx to Quartodoc / Quarto
  • Loading branch information
ecomodeller authored Feb 23, 2024
2 parents ea727b2 + 7f89044 commit b556f3c
Show file tree
Hide file tree
Showing 87 changed files with 10,558 additions and 1,324 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ jobs:
run: |
pip install .[dev]
- name: Sphinx Build
- name: Build documentation
run: |
cd docs
make html
make docs
- name: Upload documentation
uses: actions/upload-artifact@v2
with:
name: html
path: docs/_build/html
path: docs/_site/
7 changes: 3 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@ jobs:
run: |
pip install .[dev]
- name: Sphinx Build
- name: Build documentation
run: |
cd docs
make html
make docs
- name: Publish to GitHub Pages
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html
publish_dir: docs/_site/
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ cov_html
cov_annotate
htmlcov

docs/_build
docs/_site

# generated by quartodoc
docs/api/

\tmp
.venv/

Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ perftest:
pytest tests/performance/ --durations=0

docs: FORCE
cd docs; make html ;cd -
cd docs && quarto add --no-prompt .
cd docs && quartodoc build
cd docs && quartodoc interlinks
quarto render docs

FORCE:

Expand Down
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.quarto/
Binary file added docs/MIKE-IO-Icon-Pos-RGB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions docs/MIKE-IO-Logo-Pos-RGB.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 0 additions & 20 deletions docs/Makefile

This file was deleted.

7 changes: 7 additions & 0 deletions docs/_extensions/fontawesome/_extension.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
title: Font Awesome support
author: Carlos Scheidegger
version: 1.1.0
quarto-required: ">=1.2.269"
contributes:
shortcodes:
- fontawesome.lua
Loading

0 comments on commit b556f3c

Please sign in to comment.