From d9b62a373d441be630c833b738f9272445bea1ab Mon Sep 17 00:00:00 2001 From: irl Date: Sat, 16 Nov 2024 19:07:31 +0000 Subject: [PATCH] docs: fix build after removal of json schemas --- .gitlab-ci.yml | 1 - docs/admin/install.rst | 5 +---- docs/conf.py | 5 ++--- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 89c6cdd..112cfe8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,7 +20,6 @@ test:docs: - apt update && apt install build-essential - pip install -r requirements.txt - pip install -U sphinx sphinx-press-theme sphinx-jsonschema - - pushd scripts && DISABLE_METRICS=true python update_schemas.py && popd - pushd docs && DISABLE_METRICS=true sphinx-build -b html . ../public && popd rules: - if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH diff --git a/docs/admin/install.rst b/docs/admin/install.rst index f40aa0b..367786a 100644 --- a/docs/admin/install.rst +++ b/docs/admin/install.rst @@ -17,9 +17,6 @@ Create and activate a virtual environment with: python -m venv env . env/bin/activate -You will need to install an entry into the portal user's crontab: - -.. code-block:: crontab +You will need to install an entry into the portal user's crontab:: */1 * * * * (cd /path/to/portal ; /path/to/env/bin/python -m app.cli automate --all) &>/dev/null - diff --git a/docs/conf.py b/docs/conf.py index 325712e..b141ed6 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -8,7 +8,7 @@ builtins.__sphinx_build__ = True # -- Project information ----------------------------------------------------- project = 'Bypass Censorship Portal' -copyright = '2021-2022 SR2 Communications Limited' +copyright = '2021-202r SR2 Communications Limited' author = 'Bypass Censorship' @@ -19,7 +19,6 @@ author = 'Bypass Censorship' # ones. extensions = [ 'sphinx.ext.autodoc', - 'sphinx-jsonschema' ] # Add any paths that contain templates here, relative to this directory. @@ -36,7 +35,7 @@ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -html_theme = 'press' +html_theme = 'alabaster' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files,