Skip to content

Commit 1c82216

Browse files
authored
Merge pull request #209 from kozistr/docs/configs
[Docs] Update documentation
2 parents ade80db + 75b00d3 commit 1c82216

File tree

4 files changed

+41
-7
lines changed

4 files changed

+41
-7
lines changed

docs/.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ mkdocs:
1111

1212
python:
1313
install:
14-
- requirements: docs/requirements.txt
14+
- requirements: requirements-docs.txt

docs/javascripts/tables.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
app.location$.subscribe(function() {
2+
var tables = document.querySelectorAll("article table")
3+
tables.forEach(function(table) {
4+
new Tablesort(table)
5+
})
6+
})

mkdocs.yml

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,25 @@
11
site_name: pytorch-optimizer
2+
site_description: 'optimizer & lr scheduler & loss function collections in PyTorch'
3+
repo_name: 'kozistr/pytorch-optimizer'
4+
repo_url: 'https://github.com/kozistr/pytorch_optimizer'
5+
nav:
6+
- index.md
7+
- base.md
8+
- optimizer.md
9+
- lr_scheduler.md
10+
- loss.md
11+
- util.md
12+
- ... | changelogs/*.md
213
theme:
314
name: material
415
highlightjs: true
16+
extra_javascript:
17+
- 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML'
18+
- https://cdnjs.cloudflare.com/ajax/libs/tablesort/5.2.1/tablesort.min.js
19+
- javascripts/tables.js
520
plugins:
621
- search
22+
- awesome-pages
723
- mkdocstrings:
824
handlers:
925
python:
@@ -19,12 +35,22 @@ plugins:
1935
docstring_style: sphinx
2036
markdown_extensions:
2137
- admonition
22-
- pymdownx.critic
38+
- pymdownx.arithmatex
39+
- pymdownx.betterem:
40+
smart_enable: all
2341
- pymdownx.caret
24-
- pymdownx.keys
42+
- pymdownx.critic
43+
- pymdownx.details
44+
- pymdownx.emoji:
45+
emoji_generator: !!python/name:pymdownx.emoji.to_svg
46+
- pymdownx.inlinehilite
47+
- pymdownx.magiclink
2548
- pymdownx.mark
49+
- pymdownx.smartsymbols
50+
- pymdownx.superfences
51+
- pymdownx.tasklist:
52+
custom_checkbox: true
2653
- pymdownx.tilde
27-
- pymdownx.arithmatex:
28-
generic: true
54+
- mdx_truly_sane_lists
2955
- markdown_include.include:
3056
base_path: .

docs/requirements.txt renamed to requirements-docs.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
numpy
44
torch==2.0.1
55
mkdocs==1.5.2
6-
mkdocs-material==9.2.8
6+
mkdocs-material==9.3.1
77
pymdown-extensions==10.3
8-
mkdocstrings-python==1.6.2
8+
mkdocstrings-python==1.7.0
99
markdown-include==0.8.1
10+
mdx_truly_sane_lists==1.3
11+
mkdocs-awesome-pages-plugin==2.9.2

0 commit comments

Comments
 (0)