Skip to content

Commit

Permalink
mkdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
scrungus committed Nov 21, 2024
1 parent c2cc68f commit b4caa64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 0 additions & 5 deletions docs/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ def generate_schema(config, **kwargs):
check=True
)

if schema_path.exists():
print("Schema contents:")
with open(schema_path) as f:
print(f.read())

except subprocess.CalledProcessError as e:
print(f"Error generating schema: {e}")
return
7 changes: 6 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,19 @@ theme:

plugins:
- search
- mkdocstrings
- swagger-ui-tag
- mkdocs-simple-hooks:
hooks:
on_pre_build: "docs.hooks:generate_schema"

markdown_extensions:
- pymdownx.snippets
- pymdownx.snippets:
check_paths: true
- pymdownx.superfences
- admonition
- attr_list
- md_in_html

# Configuration for API documentation
extra:
Expand Down

0 comments on commit b4caa64

Please sign in to comment.