Fix: Broken docs generation on readthedocs.org

This commit is contained in:
Erik Kalkoken 2022-06-06 10:48:16 +00:00 committed by Ariel Rin
parent dd42b807f0
commit bf1b4bb549
4 changed files with 25 additions and 7 deletions

View File

@ -168,6 +168,12 @@ test-3.11-all:
path: coverage.xml path: coverage.xml
allow_failure: true allow_failure: true
test-docs:
<<: *only-default
image: python:3.9-bullseye
script:
- tox -e docs
deploy_production: deploy_production:
stage: deploy stage: deploy
image: python:3.10-bullseye image: python:3.10-bullseye

View File

@ -150,12 +150,14 @@ sudo redis-server --daemonize yes
```eval_rst ```eval_rst
.. note:: .. note::
WSL does not have an init.d service, so it will not automatically start your services such as MySQL and Redis when you boot your Windows machine. For convenience we recommend putting the commands for starting these services in a bash script. Here is an example: :: WSL does not have an init.d service, so it will not automatically start your services such as MySQL and Redis when you boot your Windows machine. For convenience we recommend putting the commands for starting these services in a bash script. Here is an example:
#/bin/bash ::
# start services for AA dev
sudo service mysql start #/bin/bash
sudo redis-server --daemonize yes # start services for AA dev
sudo service mysql start
sudo redis-server --daemonize yes
In addition it is possible to configure Windows to automatically start WSL services, but that procedure goes beyond the scopes of this guide. In addition it is possible to configure Windows to automatically start WSL services, but that procedure goes beyond the scopes of this guide.
``` ```

View File

@ -2,13 +2,15 @@
sphinx>=3.2.1,<4.0.0 sphinx>=3.2.1,<4.0.0
sphinx_rtd_theme==0.5.0 sphinx_rtd_theme==0.5.0
recommonmark==0.6.0 recommonmark==0.6.0
Jinja2<3.1
# Autodoc dependencies # Autodoc dependencies
django>=3.2,<4.0.0 django>=3.2,<4.0.0
django-celery-beat>=2.0.0 django-celery-beat>=2.0.0
django-redis-cache
django-bootstrap-form django-bootstrap-form
django-sortedm2m django-sortedm2m
django-esi>=3,<4 django-esi>=3,<5
celery>5,<6 celery>5,<6
celery_once celery_once
passlib passlib

10
tox.ini
View File

@ -1,7 +1,7 @@
[tox] [tox]
skipsdist = true skipsdist = true
usedevelop = true usedevelop = true
envlist = py{37,38,39,310,311}-{all,core} envlist = py{37,38,39,310,311}-{all,core}, docs
[testenv] [testenv]
setenv = setenv =
@ -21,3 +21,11 @@ commands =
core: coverage run runtests.py allianceauth.authentication.tests.test_app_settings -v 2 --debug-mode core: coverage run runtests.py allianceauth.authentication.tests.test_app_settings -v 2 --debug-mode
all: coverage report -m all: coverage report -m
all: coverage xml all: coverage xml
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
basepython = python3.9
deps = -r{toxinidir}/docs/requirements.txt
install_command =
commands =
sphinx-build -T -E -b html -d "{toxworkdir}/docs_doctree" -D language=en docs "{toxworkdir}/docs_out" {posargs}