|
| 1 | +# Configuration file for the Sphinx documentation builder. |
| 2 | +importos |
| 3 | +importsys |
| 4 | + |
| 5 | +# Add project root to sys.path for autodoc |
| 6 | +sys.path.insert(0,os.path.abspath('..')) |
| 7 | + |
| 8 | +project='tensorflow-riemopt' |
| 9 | +author='Oleg Smirnov' |
| 10 | +# The full version, including alpha/beta/rc tags |
| 11 | +release='0.3.0' |
| 12 | + |
| 13 | +extensions= [ |
| 14 | +'sphinx.ext.autodoc', |
| 15 | +'sphinx.ext.napoleon', |
| 16 | +'sphinx.ext.viewcode', |
| 17 | +'sphinx.ext.mathjax', |
| 18 | +'sphinx_autodoc_typehints', |
| 19 | +'myst_parser', |
| 20 | +] |
| 21 | + |
| 22 | +templates_path= ['_templates'] |
| 23 | +# Exclude Jupyter checkpoints |
| 24 | +exclude_patterns= ['**.ipynb_checkpoints'] |
| 25 | + |
| 26 | +# HTML output |
| 27 | +html_title="tensorflow-riemopt documentation" |
| 28 | +html_theme='pydata_sphinx_theme' |
| 29 | +html_static_path= ['_static'] |
| 30 | +html_theme_options= { |
| 31 | +"primary_sidebar_end": [], |
| 32 | +"icon_links": [ |
| 33 | + { |
| 34 | +"name":"GitHub", |
| 35 | +"url":"https://github.com/master/tensorflow-riemopt", |
| 36 | +"icon":"fa-brands fa-square-github", |
| 37 | +"type":"fontawesome", |
| 38 | + } |
| 39 | + ], |
| 40 | +"use_edit_page_button":False, |
| 41 | +"collapse_navigation":True, |
| 42 | +} |
| 43 | +html_context= { |
| 44 | +"github_user":"master", |
| 45 | +"github_repo":"tensorflow-riemopt", |
| 46 | +"doc_path":"docs", |
| 47 | +"default_mode":"light", |
| 48 | +} |
| 49 | + |
| 50 | +# Autodoc settings |
| 51 | +autodoc_member_order='bysource' |
| 52 | +autoclass_content='both' |
| 53 | + |
| 54 | +# Source suffix and master doc |
| 55 | +source_suffix= { |
| 56 | +'.rst':'restructuredtext', |
| 57 | +'.md':'markdown', |
| 58 | +} |
| 59 | +master_doc='index' |