Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,28 @@ jobs:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2

- name: Install mikeplus
run: pip install .[dev]
run: pip install .[docs]

- name: MkDocs
run: mkdocs build
- name: Build API docs
working-directory: docs
run: quartodoc build

- name: Render site
working-directory: docs
run: quarto render

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: site
publish_dir: docs/_site
6 changes: 1 addition & 5 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ When a new version of MIKE+ is released, the following needs to be done before r
9. Bump package version to match year of MIKE+ (e.g. 2026.0.0 for the first 2026 release)
10. Update CI runner to use the new MIKE+ version
11. Do other changes associated with a standard MIKE+Py release that does not involve bumping MIKE+ versions.
12. Update auto generated table documentation.
- `uv run .\docs\generate_table_docs.py`
- Review the diff in `docs/_table_generated_sections.yml`. It may be the same, or include new or removed tables.
Note that the above list is a guideline and may not be exaustive. Automation of these steps is welcome - consider the current process best efforts.

## Documentation
Expand All @@ -32,8 +29,7 @@ To build the documentation locally, follow these steps:

1. Install quarto
2. Run the following from `docs` as the root:
- `uv run quartodoc build` ... if this seems to hang, use the `--verbose` flag, it's just really slow due to auto generated tables.
- `uv run quartodoc build`
- `uv run quarto render`
... wip


Loading