Skip to content

Commit

Permalink
Move docs dependencies as part of extras
Browse files Browse the repository at this point in the history
  • Loading branch information
Armen Zambrano G committed May 15, 2020
1 parent 9c33508 commit 306d1a4
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 37 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@ coverage.xml
.coverage

# Ignore tox installation
.tox
.tox

# Docs generation
docs.egg-info
2 changes: 2 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ python:
install:
- method: pip
path: .
extra_requirements:
- docs
mkdocs:
configuration: mkdocs.yml
2 changes: 1 addition & 1 deletion docs/common_tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ that makes working on the docs locally much easier.

```console
% pip install poetry
% poetry install
% poetry install --extras "docs"
% poetry run mkdocs serve
```

Expand Down
65 changes: 34 additions & 31 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ authors = ["Mozilla"]
[tool.poetry.dependencies]
python = "^3.7"

[tool.poetry.dev-dependencies]
mkdocs = "1.0.4"
mkdocs-material = "==4.6.3"
mdx_truly_sane_lists = "1.2"
# A list of all of the optional dependencies, some of which are included in the
# below `extras`. They can be opted into by apps.
mkdocs = { version = "1.0.4", optional = true }
mkdocs-material = { version = "4.6.3", optional = true }
mdx_truly_sane_lists = { version = "1.2", optional = true }

[tool.poetry.extras]
docs = ["mkdocs", "mkdocs-material", "mdx_truly_sane_lists"]

[tool.black]
line-length = 100
Expand Down

0 comments on commit 306d1a4

Please sign in to comment.