on master help sign in
Merge pull request #1446 from urbit/mp/gh-callout
ded5500matildepark
components/ContentArea.js+3−3
@@ -44,7 +44,7 @@ export default function ContentArea(props) {
44 <div className="w-full min-w-0 flex flex-col items-center">
44 <div className="w-full min-w-0 flex flex-col items-center">
45 <div
45 <div
46 ref={scrollBox}
46 ref={scrollBox}
47− className="px-4 md:px-12 lg:px-24 pb-24 pt-8 md:pt-10 lg:pt-16 flex flex-col w-full max-w-screen-xl max-h-screen h-screen overflow-y-scroll"
47+ className="px-4 md:px-12 lg:px-24 pt-8 md:pt-10 lg:pt-16 flex flex-col w-full max-w-screen-xl max-h-screen h-screen overflow-y-scroll"
48 >
48 >
49 <div className="flex justify-between w-full items-center shrink-0">
49 <div className="flex justify-between w-full items-center shrink-0">
50 <div className="type-ui text-wall-500">{props.breadcrumbs}</div>
50 <div className="type-ui text-wall-500">{props.breadcrumbs}</div>
@@ -65,13 +65,13 @@ export default function ContentArea(props) {
65 <Section narrow className={""}>
65 <Section narrow className={""}>
66 <h2 className="mb-16 mt-24">{props.title}</h2>
66 <h2 className="mb-16 mt-24">{props.title}</h2>
67 {props.children}
67 {props.children}
68− <div className="pb-32" />
68+ <div className="pb-24" />
69 </Section>
69 </Section>
70 ) : (
70 ) : (
71 <div className="min-w-0">
71 <div className="min-w-0">
72 <h2 className="mb-16 mt-24">{props.title}</h2>
72 <h2 className="mb-16 mt-24">{props.title}</h2>
73 {props.children}
73 {props.children}
74− <div className="pb-32" />
74+ <div className="pb-24" />
75 </div>
75 </div>
76 )}
76 )}
77 <TableOfContents
77 <TableOfContents
pages/docs/[[...slug]].js+10
@@ -121,6 +121,7 @@ export default function DocsLayout({
121 "text-wall-600": !isSelected,
121 "text-wall-600": !isSelected,
122 });
122 });
123 const rootClasses = "pl-0 text-base hover:text-green-400";
123 const rootClasses = "pl-0 text-base hover:text-green-400";
124+
124 return (
125 return (
125 <>
126 <>
126 <Head>
127 <Head>
@@ -176,6 +177,15 @@ export default function DocsLayout({
176 />
177 />
177 )}
178 )}
178 </div>
179 </div>
180+ <a
181+ className="font-semibold rounded-xl block p-2 text-wall-400 hover:text-green-400 mt-16"
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>
179 </ContentArea>
189 </ContentArea>
180 </div>
190 </div>
181 </>
191 </>