Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit dc05404

Browse files
Add readthedocs stuff
1 parent a7c7e43 commit dc05404

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

‎pyproject.toml‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ pytorch-lightning = "0.8.5"
2929
black = "^19.10b0"
3030
flake8 = "^3.8.3"
3131
mypy = "^0.782"
32-
sphinx = "^3.1.2"
33-
sphinx-argparse = "^0.2.5"
32+
sphinx = { version = "^3.2.0", optional = true }
33+
sphinx-argparse = { version = "^0.2.5", optional = true }
3434

3535
[tool.poetry.dev-dependencies]
3636
python-language-server = {version = "^0.34.1", allow-prereleases = true}
@@ -40,7 +40,9 @@ black = {version = "^19.10b0", allow-prereleases = true}
4040
isort = {version = "^5.2.2", allow-prereleases = true}
4141
neovim = {version = "^0.3.1", allow-prereleases = true}
4242
pynvim = {version = "^0.4.1", allow-prereleases = true}
43-
sphinx = "^3.2.0"
43+
44+
[tool.poetry.extras]
45+
docs = ["sphinx", "sphinx-argparse"]
4446

4547
[tool.poetry.scripts]
4648
train = "pytorch_adaptive_computation_time.training:main"

‎readthedocs.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# See: https://github.com/iamishalkin/cyrtd
2+
3+
python:
4+
install:
5+
- method: pip
6+
path: .
7+
extra_requirements:
8+
- docs
9+
10+
sphinx:
11+
configuration: docs/conf.py

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /