-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Ceyron/main
Add Documentation with Mkdocs
- Loading branch information
Showing
5 changed files
with
144 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
permissions: | ||
contents: write | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Configure Git Credentials | ||
run: | | ||
git config user.name github-actions[bot] | ||
git config user.email 41898282+github-actions[bot]@users.noreply.github.com | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools | ||
bash install.sh | ||
python -m pip install -r docs/requirements.txt | ||
- uses: actions/cache@v4 | ||
with: | ||
key: mkdocs-material-${{ env.cache_id }} | ||
path: .cache | ||
restore-keys: | | ||
mkdocs-material- | ||
- run: pip install mkdocs-material | ||
- run: mkdocs gh-deploy --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Getting Started | ||
|
||
How to use ConvDO | ||
|
||
### Here is an example API documentation | ||
|
||
::: ConvDO.FieldOperations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
window.MathJax = { | ||
tex: { | ||
inlineMath: [["\\(", "\\)"]], | ||
displayMath: [["\\[", "\\]"]], | ||
processEscapes: true, | ||
processEnvironments: true | ||
}, | ||
options: { | ||
ignoreHtmlClass: ".*|", | ||
processHtmlClass: "arithmatex" | ||
} | ||
}; | ||
|
||
document$.subscribe(() => { | ||
MathJax.typesetPromise() | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
mkdocs==1.6.0 | ||
black==24.4.2 | ||
mkdocs-material==9.5.27 | ||
mkdocstrings==0.25.1 | ||
mkdocstrings-python==1.10.5 | ||
mknotebooks==0.8.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
site_name: ConvDO | ||
site_description: Convolutional Differential Operators with PyTorch. | ||
site_author: Qiang Liu | ||
site_url: https://qiauil.github.io/ConvDO | ||
|
||
repo_url: https://github.com/qiauil/ConvDO | ||
repo_name: qiail/ConvDO | ||
edit_uri: "" # No edit button, as some of our pages are in /docs and some in /examples via symlink, so it's impossible for them all to be accurate | ||
|
||
theme: | ||
name: material | ||
features: | ||
- navigation.sections # Sections are included in the navigation on the left. | ||
- toc.integrate # Table of contents is integrated on the left; does not appear separately on the right. | ||
- header.autohide # header disappears as you scroll | ||
palette: | ||
- scheme: default | ||
primary: indigo | ||
accent: amber | ||
toggle: | ||
icon: material/weather-night | ||
name: Switch to dark mode | ||
- scheme: slate | ||
primary: indigo | ||
accent: amber | ||
toggle: | ||
icon: material/weather-sunny | ||
name: Switch to light mode | ||
icon: | ||
repo: fontawesome/brands/github # GitHub logo in top right | ||
|
||
extra: | ||
social: | ||
- icon: fontawesome/brands/github | ||
link: https://github.com/qiauil | ||
|
||
|
||
strict: true # Don't allow warnings during the build process | ||
|
||
markdown_extensions: | ||
- pymdownx.arithmatex: # Render LaTeX via MathJax | ||
generic: true | ||
- pymdownx.superfences # Seems to enable syntax highlighting when used with the Material theme. | ||
- pymdownx.details # Allowing hidden expandable regions denoted by ??? | ||
- pymdownx.snippets: # Include one Markdown file into another | ||
base_path: docs | ||
- admonition | ||
- toc: | ||
permalink: "¤" # Adds a clickable permalink to each section heading | ||
toc_depth: 4 | ||
- pymdownx.arithmatex: | ||
generic: true | ||
|
||
extra_javascript: | ||
- javascripts/mathjax.js | ||
- https://polyfill.io/v3/polyfill.min.js?features=es6 | ||
- https://unpkg.com/mathjax@3/es5/tex-mml-chtml.js | ||
|
||
plugins: | ||
- search # default search plugin; needs manually re-enabling when using any other plugins | ||
- autorefs # Cross-links to headings | ||
- mknotebooks # Jupyter notebooks | ||
- mkdocstrings: | ||
handlers: | ||
python: | ||
options: | ||
inherited_members: true # Allow looking up inherited methods | ||
show_root_heading: true # actually display anything at all... | ||
show_root_full_path: true # display full path | ||
show_if_no_docstring: true | ||
show_signature_annotations: true | ||
separate_signature: true | ||
show_source: true # don't include source code | ||
members_order: source # order methods according to their order of definition in the source code, not alphabetical order | ||
heading_level: 4 | ||
show_symbol_type_heading: true | ||
docstring_style: null | ||
|
||
nav: | ||
- 'index.md' |