Skip to content

Commit 9baa373

Browse files
committed
Fix source links
1 parent a2fea40 commit 9baa373

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

docs/templates/python/material/attribute.html.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{% block heading scoped %}
44
{% block source_link scoped %}
5-
{% if config.link_source and attribute.source_link %}
5+
{% if config.extra.link_source and attribute.source_link %}
66
<span style="float:right;font-size:.8rem;font-weight:400"><a href="{{ attribute.source_link }}">[source]</a></span>
77
{% endif %}
88
{% endblock source_link %}

docs/templates/python/material/class.html.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{% block heading scoped %}
44
{% block source_link scoped %}
5-
{% if config.link_source and class.source_link %}
5+
{% if config.extra.link_source and class.source_link %}
66
<span style="float:right;font-size:.8rem;font-weight:400"><a href="{{ class.source_link }}">[source]</a></span>
77
{% endif %}
88
{% endblock source_link %}

docs/templates/python/material/function.html.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{% block heading scoped %}
44
{% block source_link scoped %}
5-
{% if config.link_source and function.source_link %}
5+
{% if config.extra.link_source and function.source_link %}
66
<span style="float:right;font-size:.8rem;font-weight:400"><a href="{{ function.source_link }}">[source]</a></span>
77
{% endif %}
88
{% endblock source_link %}

docs/templates/python/material/module.html.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{% block heading scoped %}
44
{% block source_link scoped %}
5-
{% if config.link_source and module.source_link %}
5+
{% if config.extra.link_source and module.source_link %}
66
<span style="float:right;font-size:.8rem;font-weight:400"><a href="{{ module.source_link }}">[source]</a></span>
77
{% endif %}
88
{% endblock source_link %}

mkdocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,10 @@ plugins:
346346
show_symbol_type_heading: true
347347
show_symbol_type_toc: true
348348
show_source: false
349-
link_source: true
350349
docstring_section_style: spacy
351350
annotations_path: source
351+
extra:
352+
link_source: true
352353
inventories:
353354
- https://docs.python.org/3/objects.inv
354355
- https://pandas.pydata.org/docs/objects.inv

0 commit comments

Comments
 (0)