Add renderer for Sphinx .rst files, for user manual previews

Ref infrastructure/blender-projects-platform#51

Pull Request: https://projects.blender.org/infrastructure/gitea-custom/pulls/2
This commit is contained in:
Brecht Van Lommel
2023-03-09 18:18:50 +01:00
parent 3913b53f29
commit c676b7b76c
7 changed files with 395 additions and 0 deletions

22
sphinx/template/conf.py Normal file
View File

@@ -0,0 +1,22 @@
# Configuration file for RST preview.
import os
import sys
# Extensions
sys.path.append(os.path.abspath('exts'))
extensions = [
'reference',
'peertube',
'sphinx.ext.mathjax',
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
]
# Project
project = 'projects.blender.org'
root_doc = 'contents'
# Theme: epub hides all navigation, sidebars, footers.
html_theme = 'epub'
html_permalinks = False