Skip to content

Commit

Permalink
Use docs requirements and config file
Browse files Browse the repository at this point in the history
  • Loading branch information
Suor committed Nov 11, 2021
1 parent e72f1d7 commit ca8a696
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Build docs
working-directory: ./docs
run: |
pip install Sphinx>=1.4.8 sphinx-rtd-theme>=0.1.9
pip install -r docs/requirements.txt
sphinx-build -b html -W . _build/html
test:
Expand Down
13 changes: 13 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2

build:
os: "ubuntu-20.04"
tools:
python: "3.8"

sphinx:
configuration: docs/conf.py

python:
install:
- requirements: docs/requirements.txt
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

# General information about the project.
project = u'funcy'
copyright = u'2012-2018, Alexander Schepanovski'
copyright = u'2012-2021, Alexander Schepanovski'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down
2 changes: 2 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Sphinx==4.3.0
sphinx-rtd-theme==0.5.1
8 changes: 2 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@
envlist = py27, py34, py35, py36, py37, py38, py39, pypy, pypy3, docs, lint

[testenv]
deps =
pytest>=3.1
whatever==0.6
deps = -r test_requirements.txt
commands = py.test -W error {posargs}


[testenv:docs]
deps =
Sphinx>=1.4.8
sphinx-rtd-theme>=0.1.9
deps = -r docs/requirements.txt
changedir = docs
commands = sphinx-build -b html -W . _build/html

Expand Down

0 comments on commit ca8a696

Please sign in to comment.