From 0c7daa475da09e88c09b15d41dad8e45a941932e Mon Sep 17 00:00:00 2001
From: XargonWan <XargonWan@gmail.com>
Date: Mon, 28 Aug 2023 16:45:47 +0200
Subject: [PATCH] Initializing ReadTheDocs [skip ci]

---
 .readthedocs.yaml   | 14 ++++++++------
 readthedocs/conf.py |  3 +--
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/.readthedocs.yaml b/.readthedocs.yaml
index d0bed30d..e871ad56 100644
--- a/.readthedocs.yaml
+++ b/.readthedocs.yaml
@@ -19,13 +19,15 @@ sphinx:
    configuration: readthedocs/conf.py
 
 # Optionally build your docs in additional formats such as PDF and ePub
-# formats:
-#    - pdf
-#    - epub
+formats:
+   - pdf
+   - epub
 
 # Optional but recommended, declare the Python requirements required
 # to build your documentation
 # See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
-# python:
-#    install:
-#    - requirements: docs/requirements.txt
\ No newline at end of file
+python:
+   install:
+#    - requirements: docs/requirements.txt
+    - method: pip
+      path: sphinx-rtd-theme
\ No newline at end of file
diff --git a/readthedocs/conf.py b/readthedocs/conf.py
index feca3853..6ebd91a4 100644
--- a/readthedocs/conf.py
+++ b/readthedocs/conf.py
@@ -2,7 +2,6 @@ project = 'RetroDECK'
 author = 'RetroDECK Team'
 
 extensions = [
-    'sphinx_rtd_theme',
     'sphinx.ext.autodoc',
     'sphinx.ext.doctest',
     'sphinx.ext.intersphinx',
@@ -11,9 +10,9 @@ extensions = [
     'sphinx.ext.mathjax',
     'sphinx.ext.ifconfig',
     'sphinx.ext.viewcode',
+    'sphinx_rtd_theme',
 ]
 
-templates_path = ['_templates']
 source_suffix = '.rst'
 master_doc = 'index'
 language = 'English'