Skip to content

Commit 651cff9

Browse files
committed
feat: enable editing and feedback via GitHub
1 parent 3da8a8e commit 651cff9

File tree

3 files changed

+12
-21
lines changed

3 files changed

+12
-21
lines changed

components/Background.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,21 @@ export const Background = () => (
1010
cx={1}
1111
cy={1}
1212
cr={1}
13-
className={cn(
14-
"[mask-image:linear-gradient(to_bottom,white,transparent,transparent)]",
15-
"dark:opacity-30"
16-
)}
13+
className="[mask-image:linear-gradient(to_bottom,white,transparent,transparent)] dark:opacity-30"
1714
/>
1815
<LinearGradient
1916
to="rgba(120,119,198,0.15)"
2017
from="rgba(0,0,0,0.0)"
2118
direction="top"
22-
transitionPoint="50%"
23-
className="hidden dark:block"
19+
transitionPoint="60%"
20+
className="hidden dark:block max-h-56"
2421
/>
2522
<LinearGradient
2623
to="rgba(120,119,198,0.3)"
2724
from="rgba(0,0,0,0.0)"
2825
direction="top"
29-
transitionPoint="50%"
30-
className="dark:hidden"
26+
transitionPoint="60%"
27+
className="dark:hidden max-h-56"
3128
/>
3229
</div>
3330
);

src/overrides.css

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,8 @@
77
background: transparent !important;
88
}
99

10-
/* do not show edit/contact menu below the toc */
1110
.nextra-toc>div> :last-child {
12-
display: none;
13-
}
14-
15-
:is(html[class~=dark] .nextra-steps h3):before {
16-
border-color: transparent;
17-
}
18-
19-
.nextra-steps h3:before {
20-
border-color: transparent;
11+
fill-opacity: 50;
2112
}
2213

2314
/* smaller search bar */

theme.config.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ const footerLegalNav = [
4848

4949
const config: DocsThemeConfig = {
5050
logo: <Logo />,
51-
feedback: {
52-
content: null,
53-
},
5451
main: MainContentWrapper,
5552
search: {
5653
placeholder: "Search...",
@@ -96,6 +93,12 @@ const config: DocsThemeConfig = {
9693
defaultMenuCollapseLevel: 1,
9794
toggleButton: true,
9895
},
96+
editLink: {
97+
text: "Edit this page on GitHub",
98+
},
99+
toc: {
100+
backToTop: true,
101+
},
99102
docsRepositoryBase: "https://github.com/langfuse/langfuse-docs/tree/main",
100103
footer: {
101104
text: (

0 commit comments

Comments
 (0)