Skip to content

Commit ba0aa54

Browse files
authored
Bugfix/update doc dependencies (#365)
* update doc dependencies * fix sphinx * update myst-parser
1 parent d44f583 commit ba0aa54

5 files changed

Lines changed: 39 additions & 9 deletions

File tree

.readthedocs.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# .readthedocs.yml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Build documentation in the docs/ directory with Sphinx
9+
sphinx:
10+
configuration: docs/conf.py
11+
12+
# Optionally build your docs in additional formats such as PDF and ePub
13+
formats: all
14+
15+
python:
16+
version: 3.7
17+
install:
18+
- method: pip
19+
path: .
20+
extra_requirements:
21+
- dev
22+
- docs

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ eval "$(pyenv virtualenv-init -)"
4545
Then, create your virtual environment.
4646

4747
```bash
48-
pyenv install 3.6.10
49-
pyenv virtualenv 3.6.10 code42cli
48+
pyenv install 3.9.10
49+
pyenv virtualenv 3.9.10 code42cli
5050
pyenv activate code42cli
5151
```
5252

53-
**Note**: The CLI supports pythons versions 3.6 through 3.9 - any versions within that range should work for your virtual environment. Use `pyenv --versions` to see all versions available for install. There are some known issues installing python 3.6 with pyenv on certain OS.
53+
**Note**: The CLI supports pythons versions 3.6 through 3.9 for end users. However due to some of the build dependencies, you'll need a version >=3.7 for your virtual environment. Use `pyenv --versions` to see all versions available for install. There are some known issues installing python 3.6 with pyenv on certain OS.
5454

5555
Use `source deactivate` to exit the virtual environment and `pyenv activate code42cli` to reactivate it.
5656

@@ -174,7 +174,7 @@ tox -e docs
174174
To build and run the documentation locally, run the following from the `docs` directory:
175175

176176
```bash
177-
pip install sphinx myst_parser sphinx_rtd_theme
177+
pip install sphinx myst-parser sphinx_rtd_theme
178178
make html
179179
```
180180

docs/conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# -- Project information -----------------------------------------------------
1818

1919
project = "code42cli"
20-
copyright = "2020, Code42 Software"
20+
copyright = "2022, Code42 Software"
2121
author = "Code42 Software"
2222

2323
# The short X.Y version
@@ -30,7 +30,7 @@
3030

3131
# If your documentation needs a minimal Sphinx version, state it here.
3232
#
33-
# needs_sphinx = '1.0'
33+
needs_sphinx = "4.4.0"
3434

3535
# Add any Sphinx extension module names here, as strings. They can be
3636
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
@@ -71,6 +71,8 @@
7171
# The name of the Pygments (syntax highlighting) style to use.
7272
pygments_style = None
7373

74+
# generate header anchors
75+
myst_heading_anchors = 4
7476

7577
# -- Options for HTML output -------------------------------------------------
7678

setup.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,13 @@
4848
"pytest-cov==2.10.0",
4949
"pytest-mock==2.0.0",
5050
"tox>=3.17.1",
51-
]
51+
],
52+
"docs": [
53+
"sphinx==4.4.0",
54+
"myst-parser==0.16",
55+
"sphinx_rtd_theme==1.0.0",
56+
"sphinx-click",
57+
],
5258
},
5359
classifiers=[
5460
"Intended Audience :: Developers",

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ commands =
2525
[testenv:docs]
2626
deps =
2727
sphinx == 4.4.0
28-
myst_parser == 0.16
29-
sphinx_rtd_theme == 0.5.2
28+
myst-parser == 0.17.2
29+
sphinx_rtd_theme == 1.0.0
3030
sphinx-click
3131
whitelist_externals = bash
3232

0 commit comments

Comments
 (0)