Fix .readthedocs.yaml configuration

This commit is contained in:
google-labs-jules[bot]
2025-08-19 04:28:45 +00:00
parent 94728e459b
commit 3bc7b2f8f2
6 changed files with 100 additions and 9 deletions
+10
View File
@@ -51,3 +51,13 @@
*.njsproj *.njsproj
*.sln *.sln
*.vsproj *.vsproj
# Python
/.venv/
# Sphinx
/docs/_build/
# Doxygen
/docs/xml/
/docs/latex/
+25
View File
@@ -0,0 +1,25 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
version: 2
# Set the OS, Python version and other tools
build:
os: ubuntu-22.04
tools:
python: "3.9"
jobs:
pre_build:
- sudo apt-get update
- sudo apt-get install -y doxygen
- doxygen Doxyfile
# Build from the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py
# Install python dependencies
python:
install:
- requirements: docs/requirements.txt
+8 -9
View File
@@ -16,17 +16,16 @@ FILE_PATTERNS = *.h *.cpp
RECURSIVE = YES RECURSIVE = YES
EXCLUDE_PATTERNS = EXCLUDE_PATTERNS =
EXCLUDE_SYMBOLS = EXCLUDE_SYMBOLS =
MACRO_EXPANSION = YES
PREDEFINED = MEDICAL_LIB_API=
# HTML # HTML
GENERATE_HTML = YES GENERATE_HTML = NO
HTML_OUTPUT = html
HTML_FILE_EXTENSION = .html # XML
HTML_HEADER = GENERATE_XML = YES
HTML_FOOTER = XML_OUTPUT = xml
HTML_STYLESHEET = XML_PROGRAMLISTING = YES
HTML_COLORSTYLE_HUE = 220
HTML_COLORSTYLE_SAT = 100
HTML_COLORSTYLE_GAMMA = 80
# Diagrams # Diagrams
HAVE_DOT = YES HAVE_DOT = YES
+37
View File
@@ -0,0 +1,37 @@
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
project = 'MedicalLib'
copyright = '2024, MedicalLib'
author = 'MedicalLib'
release = '1.0'
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [
'breathe',
]
templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = 'furo'
# -- Breathe configuration ---------------------------------------------------
breathe_projects = {
"MedicalLib": "xml/",
}
breathe_default_project = "MedicalLib"
+17
View File
@@ -0,0 +1,17 @@
.. MedicalLib documentation master file, created by
sphinx-quickstart on Mon Aug 19 15:21:55 2024.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to MedicalLib's documentation!
======================================
.. toctree::
:maxdepth: 2
:caption: Contents:
API Reference
-------------
.. doxygenfile:: MedicalLib/Patient.h
:project: MedicalLib
+3
View File
@@ -0,0 +1,3 @@
sphinx
breathe
furo