From 266a7282be796c6245d8dfe3bba7144dd7c232e7 Mon Sep 17 00:00:00 2001 From: gubaidulinvadim <gubaidulinvadim@gmail.com> Date: Sun, 28 Apr 2024 22:07:44 +0200 Subject: [PATCH] changing theme to rtd and adding rtd build requirements --- docs/requirements.txt | 4 ++++ docs/source/conf.py | 2 +- readthedocs.yaml | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 docs/requirements.txt diff --git a/docs/requirements.txt b/docs/requirements.txt new file mode 100644 index 0000000..1ee13a2 --- /dev/null +++ b/docs/requirements.txt @@ -0,0 +1,4 @@ +# Defining the exact version will make sure things don't break +sphinx==5.3.0 +sphinx_rtd_theme==1.1.1 +readthedocs-sphinx-search==0.1.1 \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index 5f8704b..a0611d2 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -51,7 +51,7 @@ exclude_patterns = [] # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -html_theme = 'nature' +html_theme = 'sphinx_rtd_theme' # 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, diff --git a/readthedocs.yaml b/readthedocs.yaml index f8db799..952007c 100644 --- a/readthedocs.yaml +++ b/readthedocs.yaml @@ -5,9 +5,9 @@ build: tools: python: "3.9" -# python: - # install: - # - requirements: mbtrack2.yml +python: + install: + - requirements: docs/requirements.txt sphinx: configuration: docs/source/conf.py -- GitLab