Skip to content

Commit 0316c67

Browse files
author
james
committed
add docs landing page to sphinx project
1 parent ac2d621 commit 0316c67

File tree

3 files changed

+316
-33
lines changed

3 files changed

+316
-33
lines changed

docs/codeql/_templates/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
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">
4747
</path>
4848
</svg>
49-
<span class="hide-sm">{{ project }}</span>
49+
<span class="hide-sm">CodeQL documentation</span>
5050
</a>
5151
</div>
5252
<div class="Header-item hide-sm hide-md">

docs/codeql/conf.py

Lines changed: 17 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,20 @@
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']
2718
source_suffix = '.rst'
2819

2920
# The master toctree document.
@@ -42,10 +33,6 @@
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.
5037
source_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.
6955
version = 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.
9076
html_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.
9579
html_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
10589
templates_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
11092
html_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

Comments
 (0)