Skip to content

Commit 6e1d398

Browse files
author
Florian Maas
authored
Mkdocs (#30)
* converted docs to mkdocs
1 parent 65d6dfe commit 6e1d398

38 files changed

+756
-489
lines changed

.github/workflows/on-merge-to-main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Documentation Test
2525
run: |
2626
source .venv/bin/activate
27-
make docs-test
27+
make docs-verify
2828
2929
tox:
3030
runs-on: ubuntu-latest

.github/workflows/on-pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Documentation Test
2222
run: |
2323
source .venv/bin/activate
24-
make docs-test
24+
make docs-verify
2525
2626
tox:
2727
runs-on: ubuntu-latest

.github/workflows/on-release-main.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Documentation Test
2323
run: |
2424
source .venv/bin/activate
25-
make docs-test
25+
make docs-verify
2626
2727
tox:
2828
runs-on: ubuntu-latest
@@ -83,10 +83,4 @@ jobs:
8383
- name: Generate documentation
8484
run: |
8585
source .venv/bin/activate
86-
make docs-build
87-
88-
- name: Deploy documentation to GitHub pages
89-
uses: peaceiris/actions-gh-pages@v3
90-
with:
91-
github_token: ${{ secrets.GITHUB_TOKEN }}
92-
publish_dir: ./docs/_build
86+
mkdocs gh-deploy

Makefile

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,11 @@ publish: ## publish a release to pypi.
4141

4242
build-and-publish: build publish ## Build and publish.
4343

44-
docs-test: ## Test Sphinx documentation.
45-
@sphinx-build docs docs/_build -W --keep-going
44+
docs-verify: ## Check if MkDocs build does not return warnings or errors
45+
@mkdocs build -s
4646

47-
docs-clean: ## Clean the docs/_build folder
48-
@rm -rf docs/_build/*
49-
50-
docs-build: ## Build the documentation
51-
@sphinx-build docs docs/_build
52-
53-
docs-open: ## Open the documentation
54-
@open docs/_build/index.html
55-
56-
docs: docs-clean docs-build docs-open ## Build and open the documentation
47+
docs-serve: ## Build and serve the MkDocs documentation
48+
@mkdocs serve
5749

5850
.PHONY: help
5951

README.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ Cookiecutter Poetry
3636

3737
This is a `cookiecutter <https://github.com/cookiecutter/cookiecutter>`_ repository to generate the file structure for a Python project that uses `Poetry <https://python-poetry.org/>`_ for its dependency management.
3838

39-
+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
40-
| **Github repository** | `https://github.com/fpgmaas/cookiecutter-poetry/ <https://github.com/fpgmaas/cookiecutter-poetry/>`_ |
4139
+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
4240
| **Documentation** | `https://fpgmaas.github.io/cookiecutter-poetry/ <https://fpgmaas.github.io/cookiecutter-poetry/>`_ |
4341
+-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+

docs/.DS_Store

-6 KB
Binary file not shown.

docs/conf.py

Lines changed: 0 additions & 56 deletions
This file was deleted.

docs/contents.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/contributing.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/feature_details.rst

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)