Skip to content

Commit

Permalink
Merge pull request #123 from sudlab/ns-rse/122-mkdocs-how-to-add-func…
Browse files Browse the repository at this point in the history
…tions

docs: Switches to mkdocs for building and deploying documentation
  • Loading branch information
ns-rse authored Dec 19, 2024
2 parents bc4879c + 39c46c8 commit c2dd5cf
Show file tree
Hide file tree
Showing 28 changed files with 397 additions and 349 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/mkdocs-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish docs via GitHub Pages
on:
push:
branches:
- main

jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v1

- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46 changes: 0 additions & 46 deletions .github/workflows/sphinx_docs_to_gh_pages.yaml

This file was deleted.

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,6 @@ cython_debug/
.dir-locals.el

# pytest-testmon
.testmon*
.testmon*

tmp/
1 change: 1 addition & 0 deletions .markdownlint-cli2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ globs:

ignores:
- "tmp/**/*.md"
- "docs/api/**/*.md"

# Fix any fixable errors
fix: true
20 changes: 0 additions & 20 deletions docs/Makefile

This file was deleted.

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

- [`io`](api/io.md)
- [`isoslam`](api/isoslam.md)
- [`logging`](api/logging.md)
- [`processing`](api/processing.md)
- [`summary`](api/summary.md)
- [`utils`](api/utils.md)
9 changes: 9 additions & 0 deletions docs/api/io.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# IO Modules

::: isoslam.io
handler: python
options:
docstring_style:
numpy
rendering:
show_signature_annotations: true
11 changes: 11 additions & 0 deletions docs/api/isoslam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# IsoSLAM

This module contains the main functions that constitute the IsoSLAM package.

::: isoslam.isoslam
handler: python
options:
docstring_style:
numpy
rendering:
show_signature_annotations: true
11 changes: 11 additions & 0 deletions docs/api/logging.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Logging

This module handles logging setup.

::: isoslam.logging
handler: python
options:
docstring_style:
numpy
rendering:
show_signature_annotations: true
9 changes: 9 additions & 0 deletions docs/api/processing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Processing

::: isoslam.processing
handler: python
options:
docstring_style:
numpy
rendering:
show_signature_annotations: true
9 changes: 9 additions & 0 deletions docs/api/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Summary

::: isoslam.summary
handler: python
options:
docstring_style:
numpy
rendering:
show_signature_annotations: true
11 changes: 11 additions & 0 deletions docs/api/utils.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Utils

This module contains various utilities used within the package.

::: isoslam.utils
handler: python
options:
docstring_style:
numpy
rendering:
show_signature_annotations: true
2 changes: 1 addition & 1 deletion docs/source/contributing.md → docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pip install --no-cache-dir -e .[docs,dev]
## Git

[Git][git] is used to version control development of the package. The `main` branch on GitHub and the [pre-commit
hooks](contributing#pre-commit) have protections in place that prevent committing/pushing directly to the `main`
hooks](#pre-commit) have protections in place that prevent committing/pushing directly to the `main`
branch. This means you should create a branch to undertake development or fix bugs.

### Issues
Expand Down
Loading

0 comments on commit c2dd5cf

Please sign in to comment.