Skip to content

Commit

Permalink
🔧 Sphinx documentation configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Senja20 committed Sep 27, 2024
1 parent 5487bdf commit 8663c24
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 22 deletions.
41 changes: 19 additions & 22 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,37 +1,34 @@
import os
import sys

# Add project directory to sys.path for autodoc to find your modules
sys.path.insert(0, os.path.abspath("../YOLO-detect_buoys"))
# 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 information
project = "vortex image build"
copyright = "2024, Yauhen Yavorski"
author = "Yauhen Yavorski"

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
# General configuration
extensions = [
"sphinx.ext.autodoc", # Automatically document docstrings
"sphinx.ext.napoleon", # Support for Google-style and NumPy-style docstrings
"sphinx.ext.viewcode", # Link to source code in the docs
"sphinx.ext.autosummary", # Generate summaries of functions/classes
"myst_parser", # Support for Markdown files (optional)
]

extensions = []
# Automatically generate autosummary pages
autosummary_generate = True

# Napoleon settings (optional)
napoleon_google_docstring = True
napoleon_numpy_docstring = True

# Templates and exclude patterns
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 = "alabaster"
# Options for HTML output (theme and static paths)
html_theme = "sphinx_rtd_theme" # Change to ReadTheDocs theme
html_static_path = ["_static"]

extensions = [
"sphinx.ext.autodoc", # To automatically document docstrings
"sphinx.ext.napoleon", # To support Google-style and NumPy-style docstrings
"sphinx.ext.viewcode", # To link to the source code
"sphinx.ext.autosummary", # To create summaries of your code
]
9 changes: 9 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,12 @@ documentation for details.
:maxdepth: 2
:caption: Contents:

installation
usage
examples
api

Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`

0 comments on commit 8663c24

Please sign in to comment.