File tree 5 files changed +10
-4
lines changed
5 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ All notable changes to this project will be documented in this file.
8
8
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.1.0/ ) ,
9
9
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) . See the [ Contributing Guide] ( contributing.md ) for details.
10
10
11
+ ## [ unreleased]
12
+
13
+ ### Fixed
14
+
15
+ * Fixed links to source code on GitHub from the documentation (#1453 ).
16
+
11
17
## [ 3.6] -- 2024-03-14
12
18
13
19
### Changed
Original file line number Diff line number Diff line change 1
1
{% extends "_base/attribute.html" %}
2
2
3
3
{% block heading scoped %}
4
- < a class ="doc-source-link " href ="{{ config.source.repo }}/tree/{{ config.source.tag }}/{{ attribute.filepath }}#L{{ attribute.lineno }}{% if attribute.endlineno > attribute.lineno %}-L{{ attribute.endlineno }}{% endif %} " title ='View source code on GitHub '> ‹›</ a >
4
+ < a class ="doc-source-link " href ="{{ config.source.repo }}/tree/{{ config.source.tag }}/{{ attribute.relative_filepath }}#L{{ attribute.lineno }}{% if attribute.endlineno > attribute.lineno %}-L{{ attribute.endlineno }}{% endif %} " title ='View source code on GitHub '> ‹›</ a >
5
5
{% if config.show_symbol_type_heading %}< code class ="doc-symbol doc-symbol-heading doc-symbol-attribute "> </ code > {% endif %}
6
6
{%+ filter highlight(language="python", inline=True) %}
7
7
{{ attribute_name }}{% if attribute.annotation %}: {{ attribute.annotation }}{% endif %}
Original file line number Diff line number Diff line change 1
1
{% extends "_base/class.html" %}
2
2
3
3
{% block heading scoped %}
4
- < a class ="doc-source-link " href ="{{ config.source.repo }}/tree/{{ config.source.tag }}/{{ class.filepath }}#L{{ class.lineno }} " title ="{{ config.source.title }} "> ‹›</ a >
4
+ < a class ="doc-source-link " href ="{{ config.source.repo }}/tree/{{ config.source.tag }}/{{ class.relative_filepath }}#L{{ class.lineno }} " title ="{{ config.source.title }} "> ‹›</ a >
5
5
{{ super() }}
6
6
{% endblock heading %}
Original file line number Diff line number Diff line change 1
1
{% extends "_base/function.html" %}
2
2
3
3
{% block heading scoped %}
4
- < a class ="doc-source-link " href ="{{ config.source.repo }}/tree/{{ config.source.tag }}/{{ function.filepath }}#L{{ function.lineno }}{% if function.endlineno > function.lineno %}-L{{ function.endlineno }}{% endif %} " title ="{{ config.source.title }} "> ‹›</ a >
4
+ < a class ="doc-source-link " href ="{{ config.source.repo }}/tree/{{ config.source.tag }}/{{ function.relative_filepath }}#L{{ function.lineno }}{% if function.endlineno > function.lineno %}-L{{ function.endlineno }}{% endif %} " title ="{{ config.source.title }} "> ‹›</ a >
5
5
{{ super() }}
6
6
{% endblock heading %}
Original file line number Diff line number Diff line change 1
1
{% extends "_base/module.html" %}
2
2
3
3
{% block heading scoped %}
4
- < a class ="doc-source-link " href ="{{ config.source.repo }}/tree/{{ config.source.tag }}/{{ module.filepath }} " title ="{{ config.source.title }} "> ‹›</ a >
4
+ < a class ="doc-source-link " href ="{{ config.source.repo }}/tree/{{ config.source.tag }}/{{ module.relative_filepath }} " title ="{{ config.source.title }} "> ‹›</ a >
5
5
{{ super() }}
6
6
{% endblock heading %}
You can’t perform that action at this time.
0 commit comments