1983afe33SPhil Shafer#!/usr/bin/env python3 2983afe33SPhil Shafer# -*- coding: utf-8 -*- 3983afe33SPhil Shafer# 4983afe33SPhil Shafer# JuniperStory documentation build configuration file, created by 5983afe33SPhil Shafer# sphinx-quickstart on Tue Oct 10 10:18:55 2017. 6983afe33SPhil Shafer# 7983afe33SPhil Shafer# This file is execfile()d with the current directory set to its 8983afe33SPhil Shafer# containing dir. 9983afe33SPhil Shafer# 10983afe33SPhil Shafer# Note that not all possible configuration values are present in this 11983afe33SPhil Shafer# autogenerated file. 12983afe33SPhil Shafer# 13983afe33SPhil Shafer# All configuration values have a default; values that are commented out 14983afe33SPhil Shafer# serve to show the default. 15983afe33SPhil Shafer 16983afe33SPhil Shafer# If extensions (or modules to document with autodoc) are in another directory, 17983afe33SPhil Shafer# add these directories to sys.path here. If the directory is relative to the 18983afe33SPhil Shafer# documentation root, use os.path.abspath to make it absolute, like shown here. 19983afe33SPhil Shafer# 20983afe33SPhil Shafer# import os 21983afe33SPhil Shafer# import sys 22983afe33SPhil Shafer# sys.path.insert(0, os.path.abspath('.')) 23983afe33SPhil Shafer 24*76afb20cSPhil Shaferimport subprocess 25*76afb20cSPhil Shafer 26*76afb20cSPhil Shafer# 27*76afb20cSPhil Shafer# Instead of hardcoding the version number here, we read it from the 28*76afb20cSPhil Shafer# project's configure script 29*76afb20cSPhil Shafer# 30*76afb20cSPhil Shafervers_cmd = "grep AC_INIT ../configure.ac | awk '{ print substr($2, 2, length($2) - 3);}'" 31*76afb20cSPhil Shaferversion = subprocess.check_output(vers_cmd, shell=True).decode("utf-8") 32983afe33SPhil Shafer 33983afe33SPhil Shafer# -- General configuration ------------------------------------------------ 34983afe33SPhil Shafer 35983afe33SPhil Shafer# If your documentation needs a minimal Sphinx version, state it here. 36983afe33SPhil Shafer# 37983afe33SPhil Shafer# needs_sphinx = '1.0' 38983afe33SPhil Shafer 39983afe33SPhil Shafer# Add any Sphinx extension module names here, as strings. They can be 40983afe33SPhil Shafer# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom 41983afe33SPhil Shafer# ones. 42983afe33SPhil Shaferextensions = [] 43983afe33SPhil Shafer 44983afe33SPhil Shafer# Add any paths that contain templates here, relative to this directory. 45983afe33SPhil Shafertemplates_path = ['_templates'] 46983afe33SPhil Shafer 47983afe33SPhil Shafer# The suffix(es) of source filenames. 48983afe33SPhil Shafer# You can specify multiple suffix as a list of string: 49983afe33SPhil Shafer# 50983afe33SPhil Shafer# source_suffix = ['.rst', '.md'] 51983afe33SPhil Shafersource_suffix = '.rst' 52983afe33SPhil Shafer 53983afe33SPhil Shafer# The master toctree document. 54983afe33SPhil Shafermaster_doc = 'index' 55983afe33SPhil Shafer 56983afe33SPhil Shafer# General information about the project. 57983afe33SPhil Shaferproject = 'libxo' 58*76afb20cSPhil Shafercopyright = '2017-2019, Juniper Networks Inc' 59983afe33SPhil Shaferauthor = 'Phil Shafer' 60983afe33SPhil Shaferdefault_role = 'code' 61983afe33SPhil Shaferprimary_domain = 'c' 62983afe33SPhil Shafersmart_quotes = False 63983afe33SPhil Shafer 64983afe33SPhil Shafer# The version info for the project you're documenting, acts as replacement for 65983afe33SPhil Shafer# |version| and |release|, also used in various other places throughout the 66983afe33SPhil Shafer# built documents. 67983afe33SPhil Shafer# 68983afe33SPhil Shafer# The short X.Y version. 69*76afb20cSPhil Shafer#version = 'develop' 70983afe33SPhil Shafer# The full version, including alpha/beta/rc tags. 71*76afb20cSPhil Shaferrelease = version 72983afe33SPhil Shafer 73983afe33SPhil Shafer# The language for content autogenerated by Sphinx. Refer to documentation 74983afe33SPhil Shafer# for a list of supported languages. 75983afe33SPhil Shafer# 76983afe33SPhil Shafer# This is also used if you do content translation via gettext catalogs. 77983afe33SPhil Shafer# Usually you set "language" from the command line for these cases. 78983afe33SPhil Shaferlanguage = None 79983afe33SPhil Shafer 80983afe33SPhil Shafer# List of patterns, relative to source directory, that match files and 81983afe33SPhil Shafer# directories to ignore when looking for source files. 82983afe33SPhil Shafer# This patterns also effect to html_static_path and html_extra_path 83983afe33SPhil Shaferexclude_patterns = [] 84983afe33SPhil Shafer 85983afe33SPhil Shafer# The name of the Pygments (syntax highlighting) style to use. 86983afe33SPhil Shaferpygments_style = 'sphinx' 87983afe33SPhil Shafer 88983afe33SPhil Shafer# If true, `todo` and `todoList` produce output, else they produce nothing. 89983afe33SPhil Shafertodo_include_todos = False 90983afe33SPhil Shafer 91983afe33SPhil Shafer 92983afe33SPhil Shafer# -- Options for HTML output ---------------------------------------------- 93983afe33SPhil Shafer 94983afe33SPhil Shafer# The theme to use for HTML and HTML Help pages. See the documentation for 95983afe33SPhil Shafer# a list of builtin themes. 96983afe33SPhil Shafer# 97983afe33SPhil Shaferhtml_theme = 'sphinxdoc' 98983afe33SPhil Shafer 99983afe33SPhil Shafer# Theme options are theme-specific and customize the look and feel of a theme 100983afe33SPhil Shafer# further. For a list of options available for each theme, see the 101983afe33SPhil Shafer# documentation. 102983afe33SPhil Shafer# 103983afe33SPhil Shafer# html_theme_options = {} 104983afe33SPhil Shaferhtml_theme_options = { 105983afe33SPhil Shafer "sidebarwidth": 320, 106983afe33SPhil Shafer} 107983afe33SPhil Shafer 108983afe33SPhil Shafer# Add any paths that contain custom static files (such as style sheets) here, 109983afe33SPhil Shafer# relative to this directory. They are copied after the builtin static files, 110983afe33SPhil Shafer# so a file named "default.css" will overwrite the builtin "default.css". 111983afe33SPhil Shaferhtml_static_path = ['_static'] 112983afe33SPhil Shafer 113983afe33SPhil Shafer# Custom sidebar templates, must be a dictionary that maps document names 114983afe33SPhil Shafer# to template names. 115983afe33SPhil Shafer# 116983afe33SPhil Shafer# This is required for the alabaster theme 117983afe33SPhil Shafer# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars 118983afe33SPhil Shaferalabaster_html_sidebars = { 119983afe33SPhil Shafer '**': [ 120983afe33SPhil Shafer 'about.html', 121983afe33SPhil Shafer 'navigation.html', 122983afe33SPhil Shafer 'relations.html', # needs 'show_related': True theme option to display 123983afe33SPhil Shafer 'searchbox.html', 124983afe33SPhil Shafer 'donate.html', 125983afe33SPhil Shafer ] 126983afe33SPhil Shafer} 127983afe33SPhil Shafer 128983afe33SPhil Shafer 129983afe33SPhil Shafer# -- Options for HTMLHelp output ------------------------------------------ 130983afe33SPhil Shafer 131983afe33SPhil Shafer# Output file base name for HTML help builder. 132983afe33SPhil Shaferhtmlhelp_basename = 'libxo-manual' 133983afe33SPhil Shafer 134983afe33SPhil Shafer 135983afe33SPhil Shafer# -- Options for LaTeX output --------------------------------------------- 136983afe33SPhil Shafer 137983afe33SPhil Shaferlatex_elements = { 138983afe33SPhil Shafer # The paper size ('letterpaper' or 'a4paper'). 139983afe33SPhil Shafer # 140983afe33SPhil Shafer # 'papersize': 'letterpaper', 141983afe33SPhil Shafer 142983afe33SPhil Shafer # The font size ('10pt', '11pt' or '12pt'). 143983afe33SPhil Shafer # 144983afe33SPhil Shafer # 'pointsize': '10pt', 145983afe33SPhil Shafer 146983afe33SPhil Shafer # Additional stuff for the LaTeX preamble. 147983afe33SPhil Shafer # 148983afe33SPhil Shafer # 'preamble': '', 149983afe33SPhil Shafer 150983afe33SPhil Shafer # Latex figure (float) alignment 151983afe33SPhil Shafer # 152983afe33SPhil Shafer # 'figure_align': 'htbp', 153983afe33SPhil Shafer} 154983afe33SPhil Shafer 155983afe33SPhil Shafer# Grouping the document tree into LaTeX files. List of tuples 156983afe33SPhil Shafer# (source start file, target name, title, 157983afe33SPhil Shafer# author, documentclass [howto, manual, or own class]). 158983afe33SPhil Shaferlatex_documents = [ 159983afe33SPhil Shafer (master_doc, 'libxo.tex', 'libxo Documentation', 160983afe33SPhil Shafer 'Phil Shafer', 'manual'), 161983afe33SPhil Shafer] 162983afe33SPhil Shafer 163983afe33SPhil Shafer 164983afe33SPhil Shafer# -- Options for manual page output --------------------------------------- 165983afe33SPhil Shafer 166983afe33SPhil Shafer# One entry per manual page. List of tuples 167983afe33SPhil Shafer# (source start file, name, description, authors, manual section). 168983afe33SPhil Shaferman_pages = [ 169983afe33SPhil Shafer (master_doc, 'libxo', 'libxo Documentation', 170983afe33SPhil Shafer [author], 1) 171983afe33SPhil Shafer] 172983afe33SPhil Shafer 173983afe33SPhil Shafer 174983afe33SPhil Shafer# -- Options for Texinfo output ------------------------------------------- 175983afe33SPhil Shafer 176983afe33SPhil Shafer# Grouping the document tree into Texinfo files. List of tuples 177983afe33SPhil Shafer# (source start file, target name, title, author, 178983afe33SPhil Shafer# dir menu entry, description, category) 179983afe33SPhil Shafertexinfo_documents = [ 180983afe33SPhil Shafer (master_doc, 'libxo', 'libxo Documentation', 181983afe33SPhil Shafer author, 'libxo', 'A Library for Generating Text, XML, JSON, and HTML Output', 182983afe33SPhil Shafer 'Miscellaneous'), 183983afe33SPhil Shafer] 184983afe33SPhil Shafer 185983afe33SPhil Shafer 186983afe33SPhil Shafer 187