From b153049cbf290cfa6d8495b8599bc7074d89019d Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Fri, 12 Jul 2024 15:13:22 +0530 Subject: [PATCH] Fix Read the Docs --- docs/environment.yml | 1 + docs/source/conf.py | 4 ++-- docs/source/index.rst | 2 +- readthedocs.yml | 9 ++++++++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/docs/environment.yml b/docs/environment.yml index 33526d4..3e97922 100644 --- a/docs/environment.yml +++ b/docs/environment.yml @@ -5,3 +5,4 @@ channels: dependencies: - breathe + - sphinx_rtd_theme diff --git a/docs/source/conf.py b/docs/source/conf.py index 0f82205..47be153 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -16,9 +16,9 @@ html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] def setup(app): - app.add_stylesheet("main_stylesheet.css") + app.add_css_file("main_stylesheet.css") -extensions = ['breathe'] +extensions = ['breathe', "sphinx_rtd_theme"] breathe_projects = { 'xeus-nelson': '../xml' } templates_path = ['_templates'] html_static_path = ['_static'] diff --git a/docs/source/index.rst b/docs/source/index.rst index 2ac3372..65d8395 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -4,7 +4,7 @@ The full license is in the file LICENSE, distributed with this software. -.. image:: xeus-nelson.svg +.. image:: xeus-logo.svg :alt: xeus-nelson diff --git a/readthedocs.yml b/readthedocs.yml index 004a03a..38f414b 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -1,2 +1,9 @@ +version: 2 + +build: + os: "ubuntu-22.04" + tools: + python: "mambaforge-22.9" + conda: - file: docs/environment.yml + environment: docs/environment.yml