Skip to content

Commit c060651

Browse files
committed
add suggest changes link
1 parent dd56e41 commit c060651

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/observable.tmpl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,15 @@
4646
</div>
4747
</header>
4848
<main style="min-height: calc(100vh - 20rem);"></main>
49-
<footer style="width: 100vw; margin: 12rem calc((100% - 100vw) / 2) -16px; padding-bottom: 16px; background-color: var(--theme-foreground); color: var(--theme-background); font: 12px/normal var(--sans-serif);">
49+
<div style="margin: 12rem 0 2rem; font: 500 14px/normal var(--sans-serif);">
50+
<a id="edit-page" href="https://github.com/observablehq/notebook-kit">
51+
✎ Suggest changes to this page
52+
</a>
53+
</div>
54+
<script type="module">
55+
document.querySelector("#edit-page").href += `/edit/main/docs${location.pathname + (location.pathname.endsWith("/") ? "index" : "")}.html`;
56+
</script>
57+
<footer style="width: 100vw; margin: 2rem calc((100% - 100vw) / 2) -16px; padding-bottom: 16px; background-color: var(--theme-foreground); color: var(--theme-background); font: 12px/normal var(--sans-serif);">
5058
<div style="display: flex; flex-wrap: wrap; max-width: var(--max-width); padding: 2rem 1rem; margin: auto; gap: 2rem;">
5159
<div>
5260
<a title="Observable" target="_blank" href="https://observablehq.com/" style="color: inherit;">

0 commit comments

Comments
 (0)