Commit 7e3d1479 by alejandro77palacios

Configuración de documentación

parent 56f409e6
version: 2
sphinx:
configuration: docs/conf.py
formats:
- htmlzip
build:
os: ubuntu-20.04
tools:
python: "3.10"
python:
install:
- method: pip
path: .
\ No newline at end of file
# 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
import os
from importlib import metadata
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
project = 'redsem'
copyright = '2023, Alejandro Prieto Palacios'
author = 'Alejandro Prieto Palacios'
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.autodoc.typehints',
'sphinx.ext.napoleon',
'numpydoc'
]
templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
language = 'es'
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = 'alabaster'
html_static_path = ['_static']
if os.environ.get("READTHEDOCS") == "True":
from pathlib import Path
PROJECT_ROOT = Path(__file__).parent.parent
PACKAGE_ROOT = PROJECT_ROOT / "src" / "redsem"
def run_apidoc(_):
from sphinx.ext import apidoc
apidoc.main([
"--force",
"--implicit-namespaces",
"--module-first",
"--separate",
"-o",
str(PROJECT_ROOT / "docs" / "reference"),
str(PACKAGE_ROOT),
str(PACKAGE_ROOT / "*.c"),
str(PACKAGE_ROOT / "*.so"),
])
def setup(app):
app.connect('builder-inited', run_apidoc)
.. redsem documentation master file, created by
sphinx-quickstart on Wed Feb 8 21:36:49 2023.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to redsem's documentation!
==================================
.. toctree::
:maxdepth: 2
:caption: Contents:
reference/modules.rst
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment