Files
Martin Jäger 4568267288 Use Sphinx for documentation
This change makes the API documentation look much nicer.

Also build instructions were moved from README to docs.
2021-12-16 15:54:05 +01:00

41 lines
899 B
Python

from datetime import datetime
from pathlib import Path
import os
extensions = [
"breathe",
]
# Project
project = "Charge Controller"
author = "The Libre Solar Project"
year = datetime.now().year
copyright = f"{year} {author}"
version = os.popen("git describe --tags --abbrev=0").read()
# HTML output
html_theme = "sphinx_rtd_theme"
html_theme_options = {
"collapse_navigation": False,
"style_nav_header_background": "#005e83",
}
html_static_path = ["static"]
html_logo = "static/images/logo.png"
html_context = {
"display_github": True,
"github_user": "LibreSolar",
"github_repo": "charge-controller-firmware",
"github_version": "main/docs/",
}
html_favicon = "static/images/favicon.ico"
# Breathe
breathe_projects = {"app": "build/doxygen/xml"}
breathe_default_project = "app"
breathe_domain_by_extension = {"h": "cpp", "c": "c"}
breathe_default_members = ("members", )