Skip to content

Commit 40882a9

Browse files
authored
Merge pull request #206 from kozistr/docs/mkdocs
[Docs] Migrate to mkdocs
2 parents d736c25 + 40e4c43 commit 40882a9

23 files changed

+567
-1081
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ requirements:
2020
python -m poetry export -f requirements.txt --output requirements-dev.txt --without-hashes --with dev
2121

2222
docs:
23-
make -C docs html
23+
mkdocs serve

docs/.readthedocs.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ build:
55
tools:
66
python: "3.11"
77

8-
sphinx:
9-
configuration: docs/conf.py
8+
mkdocs:
9+
configuration: mkdocs.yml
10+
fail_on_warning: false
1011

1112
python:
1213
install:

docs/Makefile

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/base.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Base
2+
3+
::: pytorch_optimizer.base.optimizer.BaseOptimizer
4+
:docstring:
5+
:members:

docs/base_api.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/conf.py

Lines changed: 0 additions & 80 deletions
This file was deleted.

docs/index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Welcome to pytorch-optimizer
2+
3+
[base docs](base.md)
4+
5+
[optimizer docs](optimizer.md)
6+
7+
[lr_scheduler docs](lr_scheduler.md)
8+
9+
[loss docs](loss.md)
10+
11+
[util docs](util.md)

docs/index.rst

Lines changed: 0 additions & 30 deletions
This file was deleted.

docs/loss.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Loss Function
2+
3+
::: pytorch_optimizer.loss.bi_tempered.bi_tempered_logistic_loss
4+
:docstring:
5+
6+
::: pytorch_optimizer.BiTemperedLogisticLoss
7+
:docstring:
8+
:members:
9+
10+
::: pytorch_optimizer.BinaryBiTemperedLogisticLoss
11+
:docstring:
12+
:members:
13+
14+
::: pytorch_optimizer.BCELoss
15+
:docstring:
16+
:members:
17+
18+
::: pytorch_optimizer.SoftF1Loss
19+
:docstring:
20+
:members:
21+
22+
::: pytorch_optimizer.FocalLoss
23+
:docstring:
24+
:members:
25+
26+
::: pytorch_optimizer.FocalCosineLoss
27+
:docstring:
28+
:members:
29+
30+
::: pytorch_optimizer.BCEFocalLoss
31+
:docstring:
32+
:members:
33+
34+
::: pytorch_optimizer.FocalTverskyLoss
35+
:docstring:
36+
:members:
37+
38+
::: pytorch_optimizer.loss.jaccard.soft_jaccard_score
39+
:docstring:
40+
41+
::: pytorch_optimizer.JaccardLoss
42+
:docstring:
43+
:members:
44+
45+
::: pytorch_optimizer.LDAMLoss
46+
:docstring:
47+
:members:
48+
49+
::: pytorch_optimizer.LovaszHingeLoss
50+
:docstring:
51+
:members:
52+
53+
::: pytorch_optimizer.TverskyLoss
54+
:docstring:
55+
:members:

docs/loss_api.rst

Lines changed: 0 additions & 106 deletions
This file was deleted.

0 commit comments

Comments
 (0)