11# -*- coding: utf-8 -*-
22#
3- # Global configuration file, created on 29th April 2019.
4- #
5- # The config values below are used across all of the sphinx projects
3+ # The Sphinx config values used in the CodeQL documentation that is published
4+ # at codeql.github.com/docs
65#
76# Note that not all possible configuration values are present in this file.
87#
98# All configuration values have a default; values that are commented out
109# serve to show the default.
11-
10+ #
1211# For details of all possible config values,
1312# see https://www.sphinx-doc.org/en/master/usage/configuration.html
14-
15- ##################################################################################
16- #
17- # Project-specific values are configured in the relevant conf.py file.
18- # See individual projects for details
1913#
20- ##################################################################################
21-
22- # -- GLOBAL GENERAL CONFIG VALUES ------------------------------------------------
14+ # -- GENERAL CONFIG VALUES ------------------------------------------------
2315
2416# The suffix(es) of source filenames.
2517# You can specify multiple suffix as a list of string:
26- # source_suffix = ['.rst', '.md']
2718source_suffix = '.rst'
2819
2920# The master toctree document.
4233# If your documentation needs a minimal Sphinx version, state it here.
4334#needs_sphinx = '1.0'
4435
45- # Add any Sphinx extension module names here, as strings. They can be
46- # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
47- # ones.
48-
4936# The encoding of source files.
5037source_encoding = 'utf-8-sig'
5138
@@ -61,10 +48,9 @@ def setup(sphinx):
6148 from qllexer import QLLexer
6249 sphinx .add_lexer ("ql" , QLLexer ())
6350
64- # The Semmle version info for the current release you're documenting, acts as replacement for
65- # |version| and |release|, also used in various other places throughout the
66- # built documents.
67- #
51+ # The version of CodeQL for the current release you're documenting, acts as replacement for
52+ # |version| and |release|
53+
6854# The short X.Y version.
6955version = u'3.0'
7056# The full version, including alpha/beta/rc tags.
@@ -85,13 +71,11 @@ def setup(sphinx):
8571
8672# -- Global HTML configuration -------------------------------------
8773
88- # The theme to use for HTML and HTML Help pages. See the documentation for
89- # a list of builtin themes .
74+ # The theme to use for HTML pages. See https://github.com/bitprophet/alabaster/blob/master/alabaster/static/alabaster.css_t
75+ # Many of the built-in theme styles are overridden by the static stylesheets in html_static_path .
9076html_theme = 'alabaster'
9177
92- # Theme options are theme-specific and customize the look and feel of a theme
93- # further. For a list of options available for each theme, see the
94- # documentation.
78+ # HTML theme options used to customize the look and feel of the docs.
9579html_theme_options = {'font_size' : '16px' ,
9680 'body_text' : '#333' ,
9781 'link' : '#2F1695' ,
@@ -101,13 +85,14 @@ def setup(sphinx):
10185 'head_font_family' : '-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"' ,
10286 }
10387
104- # Add any paths that contain templates here, relative to this directory.
88+ # Path to the folder that contains the project's HTML template
10589templates_path = ['_templates' ]
10690
107- # Add any paths that contain custom static files (such as style sheets) here,
108- # relative to this directory. They are copied after the builtin static files,
109- # so a file named "default.css" will overwrite the builtin "default.css".
91+ # Path to the folder that contains static stylesheets
11092html_static_path = ['_static' ]
11193
112- exclude_patterns = ['vale*' , '_static' , '_templates' , 'reusables' , 'images' , 'support' , 'ql-training' , 'query-help' ,'_build' , '*.py*' , 'README.rst' ]
113- ##############################################################################
94+ # Copy the static landing page for codeql.github.com/docs when building this sphinx project
95+ html_extra_path = ['index.html' ]
96+
97+ # Exclude these paths from being built by Sphinx
98+ exclude_patterns = ['vale*' , '_static' , '_templates' , 'reusables' , 'images' , 'support' , 'ql-training' , 'query-help' , '_build' , '*.py*' , 'README.rst' ]
0 commit comments