Skip to content

Commit cdae1b0

Browse files
committed
refactor: Modify code for citation in header
1 parent 40129a9 commit cdae1b0

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ extra_css:
66
- stylesheets/extra.css
77

88
extra_javascript:
9-
- javascripts/citation-dialog.js
9+
- javascripts/extra.js
1010

1111
markdown_extensions:
1212
- tables

overrides/partials/header.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,17 @@
5757
{% include "partials/source.html" %}
5858
</div>
5959
{% endif %}
60-
<button id="export-button" class="md-header__button md-icon .md-clipboard" title="Export Citation"/>
60+
<a ref="#" id="export-button" class="md-header__button md-icon" title="Export Citation">
61+
Citation
62+
{% include "partials/citation-dialog.html" %}
63+
{% include ".icons/" ~ icon ~ ".svg" %}
64+
{% set icon = config.theme.icon.search or "material/magnify" %}
65+
</a>
66+
{% block scripts %}
67+
<script type="text/javascript">
68+
{% include "../docs/javascripts/extra.js" %}
69+
</script>
70+
{% endblock %}
6171
</nav>
6272
{% if "navigation.tabs.sticky" in features %}
6373
{% if "navigation.tabs" in features %}

0 commit comments

Comments
 (0)