Blob Blame History Raw
From 116e9272965094260e056437ca494fc726ba300a Mon Sep 17 00:00:00 2001
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date: Sun, 11 Jul 2021 19:22:19 -0400
Subject: [PATCH 1/2] Fix build with Sphinx 4.

`add_stylesheet` was deprecated in 1.8 and removed in 4.0 [1]. The
replacement, `add_css_file` was added in 1.0, which is older than any
version required by `breathe`.

[1] https://www.sphinx-doc.org/en/master/extdev/deprecated.html?highlight=add_stylesheet

Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
---
 docs/source/conf.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/docs/source/conf.py b/docs/source/conf.py
index 58386c6..f67e96e 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -15,8 +15,10 @@ html_theme = "sphinx_rtd_theme"
 
 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']
 breathe_projects = { 'xeus': '../xml' }
@@ -35,4 +37,3 @@ highlight_language = 'c++'
 pygments_style = 'sphinx'
 todo_include_todos = False
 htmlhelp_basename = 'xeusdoc'
-
-- 
2.31.1