on master help sign in
docs: add "edit page on github" link

Fixes #790

commitd0a63b7a7eeb36d2328f878841c605c9aaed6bbc authorMatilde Park <matilde.park@urbit.org> dateMon 2 May 2022, 17:59 (4 years ago) parentaacf853
1 file changed+10
pages/docs/[[...slug]].js+10
pages/docs/[[...slug]].js+10
@@ -121,6 +121,7 @@ export default function DocsLayout({
121121 "text-wall-600": !isSelected,
122122 });
123123 const rootClasses = "pl-0 text-base hover:text-green-400";
124+
124125 return (
125126 <>
126127 <Head>
@@ -176,6 +177,15 @@ export default function DocsLayout({
176177 />
177178 )}
178179 </div>
180+ <a
181+ className="font-semibold rounded-xl block p-2 text-center bg-wall-100 text-black mt-8"
182+ target="_blank"
183+ href={`https://github.com/urbit/urbit.org/blob/master/content/docs/${
184+ params.slug?.join("/") || "_index"
185+ }.md`}
186+ >
187+ Edit this page on GitHub
188+ </a>
179189 </ContentArea>
180190 </div>
181191 </>