parrot-wtf/docs/source/conf.py

78 lines
2.1 KiB
Python

# Jeff Moe with Parrot and Phind-CodeLlama-34B-v2_q8.gguf
import sys, os
import sphinx.util.logging
logger = sphinx.util.logging.getLogger(__name__)
project = 'Parrot Libre AI IDE'
copyright = '2023, Jeff Moe'
author = 'Jeff Moe'
version = "0"
release = '0.1.0'
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'notfound.extension', 'sphinx.ext.intersphinx']
templates_path = ['_templates']
exclude_patterns = []
source_suffix = '.rst'
master_doc = 'index'
# Code syntax highlighting
pygments_style = 'sphinx'
# White background
#pygments_style = 'staroffice'
# Medium background
#pygments_style = 'gruvbox-light'
# Dark background
#pygments_style = 'dracula'
python_display_short_literal_types = True
todo_include_todos = False
html_show_copyright = False
html_static_path = ['_static']
html_favicon = '_static/favicon.ico'
html_logo = '_static/logo.png'
html_last_updated_fmt: None
html_show_sphinx = False
html_show_sourcelink = False
html_link_suffix = '.html'
html_theme = "sphinx_rtd_theme"
html_theme_options = {
'style_nav_header_background': '#4fb31f',
'display_version': False,
'prev_next_buttons_location': 'bottom',
'collapse_navigation': True,
'sticky_navigation': True,
'navigation_depth': 4,
'includehidden': True,
'titles_only': False,
}
html_css_files = [
'custom.css',
]
html_context = {
"display_lower_left": True,
}
locale_dirs = ['locale/']
gettext_compact = False
language = 'en'
languages = ('am', 'ar', 'bn', 'de', 'el', 'en', 'eo', 'es', 'eu', 'fil', 'fr', 'he', 'hi', 'id', 'it', 'ja', 'ko', 'mr', 'ms', 'nl', 'pl', 'pt', 'ru', 'see', 'ta', 'te', 'th', 'tr', 'ur', 'vi', 'zh')
html_search_language = 'en'
sys.path.insert(0, os.path.abspath('datasets'))
sys.path.insert(0, os.path.abspath('models'))
sys.path.insert(0, os.path.abspath('ide'))
sys.path.insert(0, os.path.abspath('extension'))
latex_engine = 'xelatex'
latex_elements = {
'extraclassoptions': 'openany,oneside',
'sphinxsetup': 'hmargin={1in,1in}, vmargin={1in,1in}',
'inputenc': '',
'utf8extra': '',
'preamble': r'''
\usepackage{xcolor}
\usepackage{polyglossia}
''',
}
notfound_urls_prefix = '/en/'