Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ccmao1130 committed Jan 17, 2025
1 parent 33ee19b commit 6775f14
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
sphinx/source/_build
site
mkdocs/api_docs
mkdocs/api_docs
2 changes: 1 addition & 1 deletion docs/hooks.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import shutil
import subprocess


def make_api_docs(*args, **kwargs):
subprocess.run(["make", "html"])
shutil.copytree("sphinx/_build/html", "mkdocs/api_docs", dirs_exist_ok=True)

4 changes: 2 additions & 2 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ extra:
api_path: api_docs/doc_gen

extra_css:
- /css/extra.css
- /css/extra.css

# Extensions
markdown_extensions:
Expand Down Expand Up @@ -149,4 +149,4 @@ plugins:
- macros
- mkdocs-simple-hooks:
hooks:
on_pre_build: "docs.hooks:make_api_docs"
on_pre_build: "docs.hooks:make_api_docs"
2 changes: 1 addition & 1 deletion docs/mkdocs/css/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
border: .05rem solid var(--md-default-bg-color--lighter);
border-radius: .1rem;
content: "/";
}
}

0 comments on commit 6775f14

Please sign in to comment.