Skip to content

Commit dabdbdf

Browse files
committed
Templates from upstream gcovr. Numerous updates. gcovr 8.6+
1 parent 94223cd commit dabdbdf

File tree

9 files changed

+166
-38
lines changed

9 files changed

+166
-38
lines changed

gcovr-templates/html/base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<aside class="sidebar" id="sidebar"><script>if(localStorage.getItem('sidebar-collapsed')==='true'){document.currentScript.parentElement.classList.add('collapsed');}else{var sw=localStorage.getItem('gcovr-sidebar-width');if(sw)document.documentElement.style.setProperty('--sidebar-width',sw+'px');}</script>
4848
<div class="sidebar-header">
4949
<div class="sidebar-header-row">
50-
<a href="index.html" class="sidebar-logo" title="Back to index">
50+
<a href="{{ROOT_FNAME}}" class="sidebar-logo" title="Back to index">
5151
<svg viewBox="150 150 700 160" class="boost-wordmark"><path fill="#ffa000" d="M292.45,152.89h-93.18l-46.59,80,12.63,21.69,46.57-79.99h47.07c20.07,0,36.38,16.18,36.38,36.07,0,8.46-3.54,18.29-10.84,22.4,7.11,5.3,10.54,13.73,10.54,22.01,0,19.88-16.32,36.06-36.38,36.06h-61.71l16.12-27.7h45.59c4.66,0,8.45-3.75,8.45-8.36s-3.57-8.16-8.05-8.35c-.13-.02-36.25,0-36.25,0l16.14-27.71s20.22.02,20.31,0c1.9-.06,3.63-.74,5-1.85,1.93-1.53,3.15-3.87,3.15-6.5,0-4.62-3.79-8.37-8.45-8.37h-30.03l-47.04,80.75,17.39,29.85h93.18l46.59-80-46.59-80h0Z"/><path fill="currentColor" d="M550.81,291.93c-9.23,0-17.31-2.01-24.23-6.04s-12.29-9.63-16.1-16.83c-3.81-7.19-5.72-15.4-5.72-24.63s1.9-17.6,5.72-24.79c3.81-7.19,9.18-12.82,16.1-16.91,6.92-4.08,15-6.12,24.23-6.12s17.44,2.04,24.31,6.12,12.21,9.72,16.02,16.91,5.72,15.46,5.72,24.79-1.91,17.44-5.72,24.63-9.15,12.8-16.02,16.83c-6.87,4.02-14.97,6.04-24.31,6.04ZM550.81,272.45c5.37,0,9.79-1.23,13.28-3.7,3.49-2.47,6.12-5.82,7.89-10.06s2.66-8.99,2.66-14.25-.89-10.2-2.66-14.49c-1.77-4.29-4.4-7.7-7.89-10.22-3.49-2.52-7.92-3.78-13.28-3.78s-9.82,1.26-13.36,3.78c-3.54,2.52-6.2,5.93-7.97,10.22-1.77,4.29-2.66,9.12-2.66,14.49s.89,10.01,2.66,14.25c1.77,4.24,4.43,7.59,7.97,10.06s7.99,3.7,13.36,3.7Z"/><path fill="currentColor" d="M648.53,291.93c-9.23,0-17.31-2.01-24.23-6.04s-12.29-9.63-16.1-16.83c-3.81-7.19-5.72-15.4-5.72-24.63s1.9-17.6,5.72-24.79c3.81-7.19,9.18-12.82,16.1-16.91,6.92-4.08,15-6.12,24.23-6.12s17.44,2.04,24.31,6.12,12.21,9.72,16.02,16.91,5.72,15.46,5.72,24.79-1.91,17.44-5.72,24.63-9.15,12.8-16.02,16.83c-6.87,4.02-14.97,6.04-24.31,6.04ZM648.53,272.45c5.37,0,9.79-1.23,13.28-3.7,3.49-2.47,6.12-5.82,7.89-10.06s2.66-8.99,2.66-14.25-.89-10.2-2.66-14.49c-1.77-4.29-4.4-7.7-7.89-10.22-3.49-2.52-7.92-3.78-13.28-3.78s-9.82,1.26-13.36,3.78c-3.54,2.52-6.2,5.93-7.97,10.22-1.77,4.29-2.66,9.12-2.66,14.49s.89,10.01,2.66,14.25c1.77,4.24,4.43,7.59,7.97,10.06s7.99,3.7,13.36,3.7Z"/><path fill="currentColor" d="M722.75,260.85c.54,4.62,2.55,7.86,6.04,9.74s7.49,2.82,11.99,2.82,8.21-.8,11.11-2.41c2.9-1.61,4.35-4.24,4.35-7.89,0-2.25-.99-4-2.98-5.23s-4.56-2.2-7.73-2.9c-3.17-.7-6.66-1.37-10.46-2.01-3.81-.64-7.65-1.5-11.51-2.58-3.86-1.07-7.41-2.58-10.63-4.51-3.22-1.93-5.8-4.53-7.73-7.81-1.93-3.27-2.9-7.49-2.9-12.64,0-4.83,1.55-9.47,4.67-13.93,3.11-4.45,7.49-8.05,13.12-10.79,5.63-2.74,12.1-4.11,19.4-4.11,6.55,0,12.61,1.32,18.19,3.95,5.58,2.63,10.06,6.25,13.44,10.87s5.07,9.98,5.07,16.1h-21.41c-.43-4.61-2.15-7.86-5.15-9.74-3.01-1.88-6.6-2.82-10.79-2.82-4.94,0-8.69.99-11.27,2.98s-3.86,4.48-3.86,7.49c0,2.47.99,4.4,2.98,5.8,1.98,1.4,4.56,2.47,7.73,3.22,3.16.75,6.68,1.42,10.55,2.01,3.86.59,7.7,1.4,11.51,2.42,3.81,1.02,7.33,2.47,10.55,4.35s5.8,4.4,7.73,7.57,2.9,7.27,2.9,12.32c0,5.69-1.56,10.71-4.67,15.05-3.11,4.35-7.49,7.73-13.12,10.14-5.64,2.42-12.26,3.62-19.88,3.62-7.08,0-13.52-1.37-19.32-4.11s-10.44-6.44-13.93-11.11c-3.49-4.67-5.34-9.95-5.55-15.86h21.57,0Z"/><path fill="currentColor" d="M815.48,264.84v-47.29h17.55v-18.35h-17.55v-21.78l-34.42,40.14h12.84v51.81c0,11.05,8.95,20,20,20h21.7v-18.52h-14.12c-3.31,0-6-2.69-6-6h0Z"/><path fill="currentColor" d="M494.62,242.26c-2.36-3.92-5.58-7.03-9.66-9.34-1.08-.61-2.19-1.14-3.33-1.61.7-.44,1.36-.91,1.96-1.45,2.95-2.63,5.1-5.82,6.44-9.58,1.34-3.76,2.01-7.35,2.01-10.79,0-8.69-1.99-15.4-5.96-20.12s-9.31-8.02-16.02-9.9c-6.71-1.88-14.14-2.82-22.3-2.82h-34.29v112.7h40.41c8.16,0,15.59-.99,22.3-2.98,6.71-1.98,12.05-5.45,16.02-10.38,3.97-4.94,5.96-11.7,5.96-20.29,0-5.04-1.18-9.53-3.54-13.44ZM472.48,264.8c-1.88,2.09-4.46,3.52-7.73,4.27-3.28.75-6.9,1.13-10.87,1.13h-18.51v-74.54h12.4c4.08,0,7.73.32,10.95.97,3.22.64,5.77,1.96,7.65,3.95,1.88,1.99,2.82,4.91,2.82,8.77s-.94,6.79-2.82,8.78c-1.88,1.99-4.46,3.3-7.73,3.94-1.87.37-3.86.62-5.96.78l-11.25,19.19h12.46c4.08,0,7.73.35,10.95,1.05,3.22.7,5.77,2.01,7.65,3.94s2.82,4.83,2.82,8.69-.94,7-2.82,9.1v-.02Z"/></svg>
5252
</a>
5353
<button class="sidebar-toggle" id="sidebar-toggle" title="Toggle sidebar">
@@ -91,7 +91,7 @@
9191
<svg viewBox="0 0 16 16" fill="currentColor"><path d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"/></svg>
9292
</button>
9393
<div class="breadcrumb">
94-
{% block breadcrumb %}{% if relative_path %}<a href="index.html" class="breadcrumb-home">{{info.head}}</a><span class="separator">/</span><span class="current">{{relative_path | replace("/", " / ")}}</span>{% else %}<span class="breadcrumb-title">{{info.head}}</span><span class="breadcrumb-label">GCC Code Coverage</span>{% endif %}{% endblock %}
94+
{% block breadcrumb %}{% if relative_path %}<a href="{{ROOT_FNAME}}" class="breadcrumb-home">{{info.head}}</a><span class="separator">/</span><span class="current">{{relative_path | replace("/", " / ")}}</span>{% else %}<span class="breadcrumb-title">{{info.head}}</span><span class="breadcrumb-label">GCC Code Coverage</span>{% endif %}{% endblock %}
9595
</div>
9696
<div class="header-actions">
9797
{% block navigation %}{% endblock %}

gcovr-templates/html/directory_page.content.html

Lines changed: 57 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@
22
{# Check if we have any function or branch data #}
33
{% set has_functions = entries | selectattr('functions.coverage', 'ne', '-') | list | length > 0 %}
44
{% set has_branches = entries | selectattr('branches.coverage', 'ne', '-') | list | length > 0 %}
5-
<div class="file-list-container{% if not has_functions %} no-functions{% endif %}{% if not has_branches %} no-branches{% endif %}">
5+
{% set has_conditions = SHOW_CONDITION_COVERAGE and (entries | selectattr('conditions.coverage', 'ne', '-') | list | length > 0) %}
6+
{% set has_decisions = SHOW_DECISION and (entries | selectattr('decisions.coverage', 'ne', '-') | list | length > 0) %}
7+
{% set has_calls = SHOW_CALLS and (entries | selectattr('calls.coverage', 'ne', '-') | list | length > 0) %}
8+
<div class="file-list-container{% if not has_functions %} no-functions{% endif %}{% if not has_branches %} no-branches{% endif %}{% if not has_conditions %} no-conditions{% endif %}{% if not has_decisions %} no-decisions{% endif %}{% if not has_calls %} no-calls{% endif %}">
69
<div class="file-list-header">
710
<div class="col-name sortable{% if info.sort_by == 'filename' %} {{info.sorted}}{% endif %}" data-sort="filename">
811
Name
912
</div>
10-
<div class="col-coverage sortable{% if info.sort_by == 'lines' %} {{info.sorted}}{% endif %}" data-sort="lines">
13+
<div class="col-coverage sortable" data-sort="coverage">
1114
Coverage
1215
</div>
13-
<div class="col-lines sortable" data-sort="lines">
16+
<div class="col-lines sortable{% if info.sort_by == 'lines' %} {{info.sorted}}{% endif %}" data-sort="lines">
1417
Lines
1518
</div>
1619
{% if has_functions %}
@@ -23,6 +26,26 @@
2326
Branches
2427
</div>
2528
{% endif %}
29+
{% if has_conditions %}
30+
<div class="col-conditions sortable" data-sort="conditions">
31+
Conditions
32+
</div>
33+
{% endif %}
34+
{% if has_decisions %}
35+
<div class="col-decisions sortable" data-sort="decisions">
36+
Decisions
37+
</div>
38+
{% endif %}
39+
{% if has_calls %}
40+
<div class="col-calls sortable" data-sort="calls">
41+
Calls
42+
</div>
43+
{% endif %}
44+
{% if info.diff_report %}
45+
<div class="col-diff sortable" data-sort="diff">
46+
Diff
47+
</div>
48+
{% endif %}
2649
</div>
2750

2851
<div class="file-list-body" id="file-list">
@@ -44,7 +67,17 @@
4467
data-functions-class="{{row.functions.class}}"
4568
data-branches="{{row.branches.sort}}"
4669
data-branches-coverage="{{row.branches.coverage}}"
47-
data-branches-class="{{row.branches.class}}">
70+
data-branches-class="{{row.branches.class}}"
71+
data-conditions="{{row.conditions.sort}}"
72+
data-conditions-coverage="{{row.conditions.coverage}}"
73+
data-conditions-class="{{row.conditions.class}}"
74+
data-decisions="{{row.decisions.sort}}"
75+
data-decisions-coverage="{{row.decisions.coverage}}"
76+
data-decisions-class="{{row.decisions.class}}"
77+
data-calls="{{row.calls.sort}}"
78+
data-calls-coverage="{{row.calls.coverage}}"
79+
data-calls-class="{{row.calls.class}}"
80+
data-diff="{{row.diff}}">
4881
<div class="col-name">
4982
<span class="file-icon">
5083
{% if row.link is none %}
@@ -74,18 +107,36 @@
74107
<span class="stat-separator">/</span>
75108
<span class="stat-total">{{row.lines.total}}</span>
76109
</div>
77-
78110
{% if has_functions %}
79111
<div class="col-functions">
80112
<span class="stat-value {{row.functions.class}}">{% if row.functions.coverage != '-' %}{{row.functions.coverage}}%{% else %}-{% endif %}</span>
81113
</div>
82114
{% endif %}
83-
84115
{% if has_branches %}
85116
<div class="col-branches">
86117
<span class="stat-value {{row.branches.class}}">{% if row.branches.coverage != '-' %}{{row.branches.coverage}}%{% else %}-{% endif %}</span>
87118
</div>
88119
{% endif %}
120+
{% if has_conditions %}
121+
<div class="col-conditions">
122+
<span class="stat-value {{row.conditions.class}}">{% if row.conditions.coverage != '-' %}{{row.conditions.coverage}}%{% else %}-{% endif %}</span>
123+
</div>
124+
{% endif %}
125+
{% if has_decisions %}
126+
<div class="col-decisions">
127+
<span class="stat-value {{row.decisions.class}}">{% if row.decisions.coverage != '-' %}{{row.decisions.coverage}}%{% else %}-{% endif %}</span>
128+
</div>
129+
{% endif %}
130+
{% if has_calls %}
131+
<div class="col-calls">
132+
<span class="stat-value {{row.calls.class}}">{% if row.calls.coverage != '-' %}{{row.calls.coverage}}%{% else %}-{% endif %}</span>
133+
</div>
134+
{% endif %}
135+
{% if info.diff_report %}
136+
<div class="col-diff">
137+
<span class="stat-value">{{row.diff.replace('_', ' ').capitalize()}}</span>
138+
</div>
139+
{% endif %}
89140
</div>
90141
{% endfor %}
91142
</div>

gcovr-templates/html/functions_page.content.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@
66
<div class="col-calls{{class_sortable}}" data-sort="calls">Calls</div>
77
<div class="col-lines{{class_sortable}}" data-sort="lines">Lines</div>
88
<div class="col-branches{{class_sortable}}" data-sort="branches">Branches</div>
9+
{% if SHOW_CONDITION_COVERAGE %}
10+
<div class="col-conditions{{class_sortable}}" data-sort="conditions">Conditions</div>
11+
{% endif %}
912
</div>
1013

1114
<div class="functions-body">
1215
{% for entry in function_list %}
13-
<div class="function-row" data-name="{{entry.name}}" data-calls="{{'-' if entry['excluded'] else entry['count']}}" data-lines="{{entry.line_coverage}}" data-branches="{{entry.branch_coverage}}">
16+
<div class="function-row" data-name="{{entry.name}}" data-calls="{{'-' if entry['excluded'] else entry['execution_count']}}" data-lines="{{entry.line_coverage}}" data-branches="{{entry.branch_coverage}}" data-conditions="{{entry.condition_coverage}}">
1417
<div class="col-function">
1518
<a href="{%- if info.single_page %}#{{ entry['html_filename'] }}|
1619
{%- elif (html_filename != entry['html_filename']) %}{{ entry['html_filename'] }}#
@@ -23,13 +26,16 @@
2326
<div class="col-calls">
2427
{%- if entry["excluded"] %}<span class="excluded">excluded</span>
2528
{%- else %}
26-
{%- if entry["count"] == 0 %}<span class="not-called">not called</span>
27-
{%- else %}<span class="called">{{ entry["count"] }}x</span>
29+
{%- if entry["execution_count"] == 0 %}<span class="not-called">not called</span>
30+
{%- else %}<span class="called">{{ entry["execution_count"] }}x</span>
2831
{%- endif -%}
2932
{%- endif -%}
3033
</div>
3134
<div class="col-lines">{{ entry["line_coverage"] }}%</div>
3235
<div class="col-branches">{{ entry["branch_coverage"] }}%</div>
36+
{% if SHOW_CONDITION_COVERAGE %}
37+
<div class="col-conditions">{{ entry["condition_coverage"] }}%</div>
38+
{% endif %}
3339
</div>
3440
{% endfor %}
3541
</div>

gcovr-templates/html/functions_page.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33

44
{% block html_title %}Functions - {{info.head}}{% endblock %}
55

6-
{% block breadcrumb %}<a href="index.html" class="breadcrumb-home">Index</a><span class="separator"> / </span><span class="current">Functions</span>{% endblock %}
6+
{% block breadcrumb %}<a href="{{ROOT_FNAME}}" class="breadcrumb-home">Index</a><span class="separator"> / </span><span class="current">Functions</span>{% endblock %}
77

88
{% block sidebar_tree %}
99
<div class="tree-item">
1010
<div class="tree-item-header">
11-
<a href="index.html" class="tree-toggle" title="Back to directory">
11+
<a href="{{ROOT_FNAME}}" class="tree-toggle" title="Back to directory">
1212
<span class="toggle-icon">&larr;</span>
1313
</a>
1414
<span class="tree-icon folder">
1515
<svg viewBox="0 0 16 16" width="16" height="16"><path fill="currentColor" d="M1.75 1A1.75 1.75 0 000 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0016 13.25v-8.5A1.75 1.75 0 0014.25 3H7.5a.25.25 0 01-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75z"></path></svg>
1616
</span>
17-
<a class="tree-label" href="index.html">Back to Index</a>
17+
<a class="tree-label" href="{{ROOT_FNAME}}">Back to Index</a>
1818
</div>
1919
</div>
2020
<div class="tree-item active">

gcovr-templates/html/gcovr.js

Lines changed: 55 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
// Find current page in tree by its HTML filename — this is unambiguous
6666
// since each page only appears once in the tree.
67-
var currentPage = window.location.pathname.split('/').pop() || 'index.html';
67+
var currentPage = window.location.pathname.split('/').pop() || '{{ROOT_FNAME}}';
6868
var treePath = findPathInTree(window.GCOVR_TREE_DATA, currentPage);
6969

7070
if (!treePath || treePath.length === 0) {
@@ -567,7 +567,7 @@
567567

568568
function expandToCurrentFile(container) {
569569
// Get current page filename
570-
var currentPage = window.location.pathname.split('/').pop() || 'index.html';
570+
var currentPage = window.location.pathname.split('/').pop() || '{{ROOT_FNAME}}';
571571

572572
// Find the link matching current page
573573
var currentLink = container.querySelector('a[href="' + currentPage + '"]');
@@ -1282,6 +1282,9 @@
12821282
var container = fileList.closest('.file-list-container');
12831283
var hasFunctions = !container || !container.classList.contains('no-functions');
12841284
var hasBranches = !container || !container.classList.contains('no-branches');
1285+
var hasConditions = !container || !container.classList.contains('no-conditions');
1286+
var hasDecision = !container || !container.classList.contains('no-decision');
1287+
var hasCalls = !container || !container.classList.contains('no-calls');
12851288

12861289
if (hasFunctions) {
12871290
var colFunc = document.createElement('div');
@@ -1307,6 +1310,55 @@
13071310
row.appendChild(colBr);
13081311
}
13091312

1313+
if (hasConditions) {
1314+
var colCond = document.createElement('div');
1315+
colCond.className = 'col-conditions';
1316+
var condVal = document.createElement('span');
1317+
var condCov = file.conditionsCoverage || '';
1318+
var condClass = file.conditionsClass || '';
1319+
condVal.className = 'stat-value ' + condClass;
1320+
condVal.textContent = (condCov && condCov !== '-') ? condCov + '%' : '-';
1321+
colCond.appendChild(condVal);
1322+
row.appendChild(colCond);
1323+
}
1324+
1325+
if (hasDecision) {
1326+
var colDec = document.createElement('div');
1327+
colDec.className = 'col-decision';
1328+
var decVal = document.createElement('span');
1329+
var decCov = file.decisionCoverage || '';
1330+
var decClass = file.decisionClass || '';
1331+
decVal.className = 'stat-value ' + decClass;
1332+
decVal.textContent = (decCov && decCov !== '-') ? decCov + '%' : '-';
1333+
colDec.appendChild(decVal);
1334+
row.appendChild(colDec);
1335+
}
1336+
1337+
if (hasCalls) {
1338+
var colCalls = document.createElement('div');
1339+
colCalls.className = 'col-calls';
1340+
var callsVal = document.createElement('span');
1341+
var callsCov = file.callsCoverage || '';
1342+
var callsClass = file.callsClass || '';
1343+
callsVal.className = 'stat-value ' + callsClass;
1344+
callsVal.textContent = (callsCov && callsCov !== '-') ? callsCov + '%' : '-';
1345+
colCalls.appendChild(callsVal);
1346+
row.appendChild(colCalls);
1347+
}
1348+
1349+
{% if info.diff_report %}
1350+
{
1351+
var colDiff = document.createElement('div');
1352+
colDiff.className = 'col-diff';
1353+
var diffVal = document.createElement('span');
1354+
var diffText = file.diff || '';
1355+
diffVal.className = 'stat-value';
1356+
diffVal.textContent = diffText;
1357+
colDiff.appendChild(diffVal);
1358+
row.appendChild(colDiff);
1359+
}
1360+
{% endif %}
1361+
13101362
return row;
13111363
}
13121364

@@ -1505,7 +1557,7 @@
15051557
var fileLinks = collectLinks(window.GCOVR_TREE_DATA);
15061558
if (fileLinks.length === 0) return;
15071559

1508-
var currentPage = window.location.pathname.split('/').pop() || 'index.html';
1560+
var currentPage = window.location.pathname.split('/').pop() || '{{ROOT_FNAME}}';
15091561
var idx = fileLinks.indexOf(currentPage);
15101562
if (idx === -1) return;
15111563

gcovr-templates/html/source_page.content.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@
9292
<th class="col-tla">TLA</th>
9393
<th class="col-count">Hits</th>
9494
<th class="col-source">Source Code</th>
95+
{% if USE_BLOCK_IDS %}
96+
<th class="col-blockids">Block IDs</th>
97+
{% endif %}
9598
</tr>
9699
</thead>
97100
<tbody>
@@ -219,6 +222,9 @@
219222
{% if row.covclass == 'uncoveredLine' %}<span class="hit-miss">&cross;</span>{% elif row.covclass == 'excludedLine' %}<span class="hit-excluded">&minus;</span>{% elif row.linecount %}{{row.linecount}}x{% endif %}
220223
</td>
221224
<td class="col-source">{{row.source}}</td>
225+
{% if USE_BLOCK_IDS %}
226+
<td class="col-blockids">{% if row.block_ids %}{{row.block_ids | join(', ')}}{% endif %}</td>
227+
{% endif %}
222228
</tr>
223229
{% endfor %}
224230
</tbody>

gcovr-templates/html/source_page.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33

44
{% block html_title %}{{filename}} - {{info.head}}{% endblock %}
55

6-
{% block breadcrumb %}<a href="index.html" class="breadcrumb-home">Index</a><span class="separator">/</span><span class="current">{{filename | replace("/", " / ")}}</span>{% endblock %}
6+
{% block breadcrumb %}<a href="{{ROOT_FNAME}}" class="breadcrumb-home">Index</a><span class="separator">/</span><span class="current">{{filename | replace("/", " / ")}}</span>{% endblock %}
77

88
{% block sidebar_tree %}
99
{# Show current file in sidebar #}
1010
<div class="tree-item">
1111
<div class="tree-item-header">
12-
<a href="index.html" class="tree-toggle" title="Back to directory">
12+
<a href="{{ROOT_FNAME}}" class="tree-toggle" title="Back to directory">
1313
<span class="toggle-icon">&larr;</span>
1414
</a>
1515
<span class="tree-icon folder">
1616
<svg viewBox="0 0 16 16" width="16" height="16"><path fill="currentColor" d="M1.75 1A1.75 1.75 0 000 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0016 13.25v-8.5A1.75 1.75 0 0014.25 3H7.5a.25.25 0 01-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75z"></path></svg>
1717
</span>
18-
<a class="tree-label" href="index.html">Back to Index</a>
18+
<a class="tree-label" href="{{ROOT_FNAME}}">Back to Index</a>
1919
</div>
2020
</div>
2121
<div class="tree-item active">

0 commit comments

Comments
 (0)