Skip to content

Commit

Permalink
Move docs sources to docs/ folder instead of docs/sources/
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef-Friedrich committed Aug 8, 2023
1 parent 28031c4 commit 1d4593c
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 112 deletions.
110 changes: 6 additions & 104 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,125 +1,27 @@
# Based on https://github.com/github/gitignore/blob/main/Python.gitignore

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt
*.egg-info/
*.venv/

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
#.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don’t work, or not
# install all needed dependencies.
#Pipfile.lock

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site
# .python-version

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

debug.txt
*.pickle
10 changes: 8 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html

# https://docs.readthedocs.io/en/stable/config-file/v2.html
version: 2

# https://docs.readthedocs.io/en/stable/config-file/v2.html#build
build:
os: "ubuntu-22.04"
tools:
python: "3.10"

# https://docs.readthedocs.io/en/stable/config-file/v2.html#sphinx
sphinx:
configuration: docs/source/conf.py
configuration: docs/conf.py

# https://docs.readthedocs.io/en/stable/config-file/v2.html#python
python:
install:
- requirements: docs/source/requirements.txt
- requirements: docs/requirements.txt
- method: pip
path: .
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ test_38:

docs:
poetry run tox -e docs
xdg-open .tox/docs/tmp/html/index.html
xdg-open docs/_build/index.html

.PHONY: build upload test readme docs
File renamed without changes.
File renamed without changes.
4 changes: 0 additions & 4 deletions docs/source/requirements.txt → docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@
Sphinx==6.2.1
sphinx-rtd-theme==1.2.2
sphinx-autodoc-typehints==1.22.0

pgi==0.0.11.2
nagiosplugin==1.3.3
check_systemd
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ deps =
Sphinx==6.2.1
sphinx-rtd-theme==1.2.2
sphinx-autodoc-typehints==1.22.0
commands = sphinx-build -q -b html docs/source {envtmpdir}/html
commands =
sphinx-build -W -q docs docs/_build

[testenv:lint]
deps =
Expand Down

0 comments on commit 1d4593c

Please sign in to comment.