Skip to content

Commit

Permalink
new library
Browse files Browse the repository at this point in the history
  • Loading branch information
rugonzs committed Jun 3, 2023
1 parent f05b2a9 commit 278f03d
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
47 changes: 47 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import os
import sys
sys.path.insert(0, os.path.abspath('../..')) # or "../../src
# 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 = 'FLAI'
copyright = '2023, Rubén González'
author = 'Rubén González'
release = '1.0.0'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = [
"sphinx.ext.autodoc", # automatically generate documentation for modules
"sphinx.ext.napoleon", # to read Google-style or Numpy-style docstrings
"sphinx.ext.viewcode", # to allow vieing the source code in the web page
"autodocsumm", # to generate tables of functions, attributes, methods, etc.
]

templates_path = ['_templates']
exclude_patterns = []

# don't include docstrings from the parent class
autodoc_inherit_docstrings = False
# Show types only in descriptions, not in signatures
autodoc_typehints = "description"

# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static']

def skip(app, what, name, obj, would_skip, options):
if name == "__init__":
return False
return would_skip

def setup(app):
app.connect("autodoc-skip-member", skip)
20 changes: 20 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.. FLAI documentation master file, created by
sphinx-quickstart on Sat Jun 3 18:11:14 2023.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to FLAI's documentation!
================================

.. toctree::
:maxdepth: 2
:caption: Contents:

modules.rst

Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

0 comments on commit 278f03d

Please sign in to comment.