Skip to content

Commit 06e3d63

Browse files
committed
Small updates
1 parent 6593b0b commit 06e3d63

2 files changed

Lines changed: 16 additions & 10 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
site

basic_theme/base.html

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,16 @@
6969
ga('send', 'pageview');
7070
</script>
7171
{% endif %}
72+
73+
{% block extrahead %}
74+
{% endblock %}
7275
</head>
7376

7477
<body>
7578

79+
<h1>This is an example theme.</h1>
80+
81+
<h2>Generate Navigation</h2>
7682
<!--
7783
Create the navigation for the documentation.
7884
-->
@@ -99,6 +105,7 @@
99105

100106
<hr/>
101107

108+
<h2>Support for search</h2>
102109
<!--
103110
Create a search form that sends the user to the search.html file - this is
104111
the other file in the template which adds search to the theme. The only
@@ -113,6 +120,7 @@
113120

114121
<hr/>
115122

123+
<h2>Next and previous links</h2>
116124
<!--
117125
Implement the previous and next links to cycle through the pages.
118126
-->
@@ -129,20 +137,23 @@
129137

130138
<hr/>
131139

132-
{% if current_page %}<li>{{ current_page.title }}</li>{% endif %}
133-
134-
<hr/>
135-
140+
<h2>Link to the source</h2>
141+
<!--
142+
Support repo URL
143+
-->
136144
{% if repo_url %}
137145
{% if repo_name == 'GitHub' %}
138146
<a href="{{ repo_url }}"> Edit on GitHub</a>
139147
{% elif repo_name == 'Bitbucket' %}
140148
<a href="{{ repo_url }}"> Edit on BitBucket</a>
149+
{% else %}
150+
<a href="{{ repo_url }}"> Edit in Repository</a>
141151
{% endif %}
142152
{% endif %}
143153

144154
<hr/>
145155

156+
<h2>Show the table of contents for the current page</h2>
146157
<ul>
147158
{% for toc_item in toc %}
148159
<li><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
@@ -160,12 +171,6 @@
160171

161172
<hr/>
162173

163-
<div role="contentinfo">
164-
<p>
165-
<!-- Copyright etc -->
166-
</p>
167-
</div>
168-
169174
Built with <a href="http://www.mkdocs.org">MkDocs</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
170175

171176
<!--

0 commit comments

Comments
 (0)