Skip to content

Commit 8fca439

Browse files
committed
Do not copy docs source to html build
1 parent 50ed1ec commit 8fca439

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Doc/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,9 @@
306306
# Path to find HTML templates to override theme
307307
templates_path = ['tools/templates']
308308

309+
# Link to sources on GitHub instead of copying them into the HTML output.
310+
html_copy_source = False
311+
309312
# Custom sidebar templates, filenames relative to this file.
310313
html_sidebars = {
311314
# Defaults taken from https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_sidebars

Doc/tools/templates/customsourcelink.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{%- if show_source and has_source and sourcename %}
1+
{%- if show_source and page_source_suffix is defined %}
22
<script>
33
document.addEventListener('DOMContentLoaded', () => {
44
const title = document.querySelector('meta[property="og:title"]').content;

0 commit comments

Comments
 (0)