Skip to content

Commit a79f1e1

Browse files
authored
Merge pull request #4832 from github/docs/add-favicon
[docs] Add GitHub favicon to CodeQL docs
2 parents 58f17d7 + 1a7ca1d commit a79f1e1

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

docs/codeql/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,7 @@ def setup(sphinx):
9494
# Copy the static landing page for codeql.github.com/docs when building this sphinx project
9595
html_extra_path = ['index.html']
9696

97+
html_favicon = 'images/site/favicon.ico'
98+
9799
# Exclude these paths from being built by Sphinx
98100
exclude_patterns = ['vale*', '_static', '_templates', 'reusables', 'images', 'support', 'ql-training', 'query-help', '_build', '*.py*', 'README.rst']
6.37 KB
Binary file not shown.

docs/codeql/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<title>CodeQL documentation</title>
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
77
<link rel="stylesheet" href="_static/primer.css" />
8+
<link rel="shortcut icon" href="_static/favicon.ico"/>
89
</head>
910

1011
<body>

docs/codeql/query-help/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@
5454
# so a file named "default.css" will overwrite the builtin "default.css".
5555
html_static_path = ['../_static']
5656

57+
html_favicon = '../images/site/favicon.ico'
58+
5759
# List of patterns, relative to source directory, that match files and
5860
# directories to ignore when looking for source files.
5961

docs/codeql/support/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@
7171
'nosidebar':True,
7272
}
7373

74+
html_favicon = '../images/site/favicon.ico'
75+
7476
# -- Currently unused, but potentially useful, configs--------------------------------------
7577

7678
# Add any paths that contain custom themes here, relative to this directory.

0 commit comments

Comments
 (0)