Skip to content
Draft
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
22 changes: 19 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,23 @@ jobs:
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved')
runs-on: ubuntu-latest
steps:
- uses: compas-dev/compas-actions.docs@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
doc_url: https://compas.dev/compas
python-version: '3.11'

- name: Install dependencies
run: |
pip install -e .
pip install mkdocs mkdocs-material "mkdocstrings[python]"

- name: Build docs
run: mkdocs build --strict

- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
run: mkdocs gh-deploy --force
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17 changes: 17 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
repos
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8

- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort

- repo: https://github.com/ambv/black
rev: 23.3.0
hooks:
- id: black
language_version: python3.8

9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- MkDocs + Material theme based docs

### Changed

- update CI workflow for mkdocs gh-deploy
- update invoke tasks for mkdocs commands

### Removed

- replace Sphinx with MkDocs + Material theme
- use mkdocstrings for API docs from NumPy docstrings
- convert 73 RST files to Markdown
- remove RST directives from Python docstrings

## [2.15.0] 2025-11-12

Expand Down
Empty file removed docs/_static/PLACEHOLDER
Empty file.
6 changes: 0 additions & 6 deletions docs/api/compas.colors.html_colors.rst

This file was deleted.

7 changes: 7 additions & 0 deletions docs/api/compas.colors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# compas.colors

Color handling for COMPAS.

::: compas.colors
options:
show_submodules: true
24 changes: 0 additions & 24 deletions docs/api/compas.colors.rst

This file was deleted.

7 changes: 7 additions & 0 deletions docs/api/compas.data.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# compas.data

Data serialization and persistence for COMPAS.

::: compas.data
options:
show_submodules: true
44 changes: 0 additions & 44 deletions docs/api/compas.data.rst

This file was deleted.

109 changes: 0 additions & 109 deletions docs/api/compas.datastructures.Assembly.rst

This file was deleted.

Loading
Loading