conf.py
1 # -- Path setup -------------------------------------------------------------- 2 3 # If extensions (or modules to document with autodoc) are in another directory, 4 # add these directories to sys.path here. If the directory is relative to the 5 # documentation root, use os.path.abspath to make it absolute, like shown here. 6 # 7 import os 8 import sys 9 sys.path.insert(0, os.path.abspath('../..')) 10 11 # -- Project information ----------------------------------------------------- 12 project = 'Reticulum Network Stack' 13 copyright = '2025, Mark Qvist' 14 author = 'Mark Qvist' 15 16 exec(open("../../RNS/_version.py", "r").read()) 17 version = __version__ 18 19 # The full version, including alpha/beta/rc tags 20 import RNS 21 release = RNS._version.__version__ 22 23 # -- General configuration --------------------------------------------------- 24 extensions = [ 25 "sphinx.ext.autodoc", 26 "sphinx_copybutton", 27 "sphinx_markdown_builder", 28 ] 29 30 autodoc_member_order = "bysource" 31 toc_object_entries_show_parents = "hide" 32 autodoc_preserve_defaults = True 33 # add_module_names = False 34 # latex_toplevel_sectioning = 'section' 35 36 # Add any paths that contain templates here, relative to this directory. 37 templates_path = ["_templates"] 38 39 # List of patterns, relative to source directory, that match files and 40 # directories to ignore when looking for source files. 41 # This pattern also affects html_static_path and html_extra_path. 42 exclude_patterns = [] 43 44 45 # -- Options for HTML output ------------------------------------------------- 46 html_show_sphinx = True 47 html_theme = "furo" 48 html_logo = "graphics/rns_logo_512.png" 49 html_theme_options = { 50 "top_of_page_button": None, 51 # "footer_icons": [ 52 # { 53 # "name": "GitHub", 54 # "url": "https://github.com/markqvist/reticulum", 55 # "html": """ 56 # <svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16"> 57 # <path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path> 58 # </svg> 59 # """, 60 # "class": "", 61 # }, 62 # ], 63 "dark_css_variables": { 64 "color-background-primary": "#202b38", 65 "color-background-secondary": "#161f27", 66 "color-foreground-primary": "#dbdbdb", 67 "color-foreground-secondary": "#a9b1ba", 68 "color-brand-primary": "#41adff", 69 "color-background-hover": "#161f27", 70 "color-api-name": "#ffbe85", 71 "color-api-pre-name": "#efae75", 72 }, 73 # "announcement": "Announcement content", 74 } 75 76 html_static_path = ["_static"] 77 html_css_files = [ 78 'custom.css', 79 ] 80 81 # html_theme = "pydata_sphinx_theme" 82 # html_theme_options = { 83 # "navbar_start": ["navbar-logo"], 84 # "navbar_center": ["navbar-nav"], 85 # "navbar_end": ["navbar-icon-links"], 86 # "navbar_align": "left", 87 # "left_sidebar_end": [], 88 # "show_nav_level": 5, 89 # "navigation_depth": 5, 90 # "collapse_navigation": True, 91 # } 92 # html_sidebars = { 93 # "**": ["sidebar-nav-bs"] 94 # } 95 # Add any paths that contain custom static files (such as style sheets) here, 96 # relative to this directory. They are copied after the builtin static files, 97 # so a file named "default.css" will overwrite the builtin "default.css". 98 99 # def check_skip_member(app, what, name, obj, skip, options): 100 # print(what, " | ", name, " | ", obj, " | ", skip, " | ", options) 101 # return False 102 103 # def setup(app): 104 # app.connect('autodoc-skip-member', check_skip_member)