# -*- coding: utf-8 -*-1#2# Configuration file for the Sphinx documentation builder.3#4# This file does only contain a selection of the most common options. For a5# full list see the documentation:6# http://www.sphinx-doc.org/en/stable/config78# -- Path setup --------------------------------------------------------------910import datetime1112# If extensions (or modules to document with autodoc) are in another directory,13# add these directories to sys.path here. If the directory is relative to the14# documentation root, use os.path.abspath to make it absolute, like shown here.15#16import os17import sys1819sys.path.insert(0, os.path.abspath("../.."))2021from deepparse import __version__ as version2223year = str(datetime.datetime.now().year)2425# -- Project information -----------------------------------------------------2627project = "deepparse"28copyright = "2020-" + year + ", Marouane Yassine & David Beauchemin"29author = "Marouane Yassine & David Beauchemin"3031# The short X.Y version32version = version33# The full version, including alpha/beta/rc tags34release = version3536# -- General configuration ---------------------------------------------------3738# If your documentation needs a minimal Sphinx version, state it here.39#40# needs_sphinx = "1.0"4142# Add any Sphinx extension module names here, as strings. They can be43# extensions coming with Sphinx (named "sphinx.ext.*") or your custom44# ones.45extensions = [46"sphinx.ext.autodoc",47"sphinx.ext.doctest",48"sphinx.ext.todo",49"sphinx.ext.coverage",50"sphinx.ext.mathjax",51"sphinx.ext.ifconfig",52"sphinx.ext.viewcode",53"sphinx.ext.githubpages",54"sphinx.ext.napoleon",55"sphinx.ext.intersphinx",56]5758# Add any paths that contain templates here, relative to this directory.59templates_path = ["_templates"]6061# The suffix(es) of source filenames.62# You can specify multiple suffix as a list of string:63#64# source_suffix = [".rst", ".md"]65source_suffix = ".rst"6667# The master toctree document.68master_doc = "index"6970# The language for content autogenerated by Sphinx. Refer to documentation71# for a list of supported languages.72#73# This is also used if you do content translation via gettext catalogs.74# Usually you set "language" from the command line for these cases.75language = 'en'7677# List of patterns, relative to source directory, that match files and78# directories to ignore when looking for source files.79# This pattern also affects html_static_path and html_extra_path .80exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]8182# The name of the Pygments (syntax highlighting) style to use.83pygments_style = "sphinx"8485# -- Options for HTML output -------------------------------------------------8687# The theme to use for HTML and HTML Help pages. See the documentation for88# a list of builtin themes.89#90html_theme = "sphinx_rtd_theme"9192# Theme options are theme-specific and customize the look and feel of a theme93# further. For a list of options available for each theme, see the94# documentation.95#96html_theme_options = {97"logo_only": True,98}99100# Add any paths that contain custom static files (such as style sheets) here,101# relative to this directory. They are copied after the builtin static files,102# so a file named "default.css" will overwrite the builtin "default.css".103html_static_path = ["_static"]104105html_extra_path = ["CNAME", "favicon.ico"]106107# Custom sidebar templates, must be a dictionary that maps document names108# to template names.109#110# The default sidebars (for documents that don"t match any pattern) are111# defined by theme itself. Builtin themes are using these templates by112# default: ``["localtoc.html", "relations.html", "sourcelink.html",113# "searchbox.html"]``.114#115# html_sidebars = {}116117html_logo = "_static/logos/deepparse.png"118119# -- Options for HTMLHelp output ---------------------------------------------120121# Output file base name for HTML help builder.122htmlhelp_basename = "deepparsedoc"123124# -- Options for LaTeX output ------------------------------------------------125126latex_elements = {127# The paper size ("letterpaper" or "a4paper").128#129# "papersize": "letterpaper",130# The font size ("10pt", "11pt" or "12pt").131#132# "pointsize": "10pt",133# Additional stuff for the LaTeX preamble.134#135# "preamble": "",136# Latex figure (float) alignment137#138# "figure_align": "htbp",139}140141# Grouping the document tree into LaTeX files. List of tuples142# (source start file, target name, title,143# author, documentclass [howto, manual, or own class]).144latex_documents = [145(146master_doc,147"deepparse.tex",148"deepparse Documentation",149"Marouane Yassine & David Beauchemin",150"manual",151),152]153154# -- Options for manual page output ------------------------------------------155156# One entry per manual page. List of tuples157# (source start file, name, description, authors, manual section).158man_pages = [(master_doc, "deepparse", "deepparse Documentation", [author], 1)]159160# -- Options for Texinfo output ----------------------------------------------161162# Grouping the document tree into Texinfo files. List of tuples163# (source start file, target name, title, author,164# dir menu entry, description, category)165texinfo_documents = [166(167master_doc,168"deepparse",169"deepparse Documentation",170author,171"deepparse",172"One line description of project.",173"Miscellaneous",174)175]176177# -- Intersphinx mappings ----------------------------------------------------178179intersphinx_mapping = {180"PyTorch": ("https://pytorch.org/docs/stable/", None),181"python": ("https://docs.python.org/3.8", None),182"numpy": ("http://docs.scipy.org/doc/numpy/", None),183}184185# -- Extension configuration -------------------------------------------------186187autodoc_default_options = {"member-order": "bysource"}188189# -- Options for todo extension ----------------------------------------------190191# If true, `todo` and `todoList` produce output, else they produce nothing.192todo_include_todos = True193194195