Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed _resource/.icons/edit_page.png
Binary file not shown.
1 change: 0 additions & 1 deletion _resource/.icons/file-document-edit-outline.svg

This file was deleted.

1 change: 0 additions & 1 deletion _resource/.icons/file-eye-outline.svg

This file was deleted.

3 changes: 3 additions & 0 deletions _resourcepdf/overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
<div class="md-sidebar__inner">
{% include "partials/banner.html" %}
</div>
<div class="md-sidebar__inner">
{% include "partials/edit.html" %}
</div>
</div>
</div>
{% endif %}
Expand Down
11 changes: 11 additions & 0 deletions _resourcepdf/overrides/partials/edit.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<div data-banner="data-banner">
<div class="actions">
<a href="{{ page.edit_url }}" title="Edit this page on GitHub" class="edit-page-link">
<span class="edit-page-icon">
{% set icon = config.theme.icon.edit or "material/file-edit-outline" %}
{% include ".icons/" ~ icon ~ ".svg" %}
</span>
<span class="edit-page-text">Edit this page on GitHub</span>
</a>
</div>
</div>
21 changes: 20 additions & 1 deletion docs/css/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,23 @@
.md-sidebar__inner {
font-size: 0.65rem; /* Font size */
line-height: 1.6;
}
}

.edit-page-link {
white-space: nowrap;
display: inline-flex;
align-items: center;
gap: 0.5em;
font-size: 1.1rem;
font-weight: normal;
color: var(--md-typeset-a-color);
text-decoration: underline;
}

.edit-page-icon svg {
width: 1.35em; /* Increase from 1em to 1.25em or more */
height: 1.35em;
fill: currentColor; /* Make the icon match text color */
vertical-align: middle;
}

5 changes: 1 addition & 4 deletions mkdocs-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ theme:
font:
text: Roboto
code: Roboto Mono
icon:
edit: material/file-edit-outline
view: material/file-eye-outline

palette:
- media: "(prefers-color-scheme)"
Expand Down Expand Up @@ -54,7 +51,7 @@ theme:
- navigation.indexes
- content.tooltips
- content.tabs.link
- content.action.edit
# - content.action.edit
- content.action.view
- content.code.copy
- content.code.annotate
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ extra:
name: This page could be improved
data: 0
note: >-
Thanks for your feedback! Help us improve by following this <a href="https://docs.google.com/forms/d/1bkWACehjqlwA0AKf-qTJcXvYbOSYgze8iTPXjntqmNo/edit" target="_blank" rel="noopener">feedback form</a>.
Thanks for your feedback! Want to improve this page? Click the <strong>Improve this page</strong> button above to submit a pull request!

Loading