Skip to content

Commit

Permalink
Add docs config
Browse files Browse the repository at this point in the history
  • Loading branch information
paddyroddy committed Sep 8, 2023
1 parent 8f2ef19 commit aa6cf8e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ repos:
rev: v3.0.3
hooks:
- id: prettier
exclude: docs/api.md
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
Expand Down
24 changes: 23 additions & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
# API Documentation

::: heracles.catalog.FitsCatalog
::: heracles
options:
# general
allow_inspection: false
show_bases: false
show_source: false
# headings
show_category_heading: true
show_object_full_path: false
show_root_toc_entry: false
# members
filters: ["!^__?"]
inherited_members: true
show_submodules: true
# docstrings
docstring_options:
ignore_init_summary: true
docstring_section_style: spacy
merge_init_into_class: true
show_if_no_docstring: true
# signatures
line_length: 80
show_signature_annotations: true
4 changes: 2 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ nav:
theme:
name: material
palette:
# Palette toggle for dark mode
# palette toggle for dark mode
- scheme: slate
toggle:
icon: material/brightness-4
name: Switch to light mode
# Palette toggle for light mode
# palette toggle for light mode
- scheme: default
toggle:
icon: material/brightness-7
Expand Down

0 comments on commit aa6cf8e

Please sign in to comment.