File tree Expand file tree Collapse file tree 4 files changed +21
-19
lines changed
examples/demo/src/components Expand file tree Collapse file tree 4 files changed +21
-19
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,17 @@ export function NavSidebar({
8080 </ div >
8181 </ div >
8282
83- < nav className = "p-3 overflow-y-auto h-[calc(100%-60px)]" >
83+ < div className = "px-3 pt-3" >
84+ < a
85+ href = "../"
86+ className = "flex items-center gap-1.5 px-2 py-1.5 rounded-md text-xs font-medium text-indigo-400 hover:bg-indigo-500/10 transition-colors"
87+ >
88+ < svg width = "14" height = "14" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" strokeWidth = "2" strokeLinecap = "round" strokeLinejoin = "round" > < path d = "M19 12H5M12 19l-7-7 7-7" /> </ svg >
89+ Back to Docs
90+ </ a >
91+ </ div >
92+
93+ < nav className = "p-3 overflow-y-auto h-[calc(100%-108px)]" >
8494 { navGroups . map ( ( group ) => (
8595 < div key = { group . label } className = "mb-4" >
8696 < div className = "text-[10px] font-semibold text-zinc-500 uppercase tracking-wider px-2 mb-1.5" >
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import {themes as prismThemes} from 'prism-react-renderer';
44
55// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
66
7+ const baseUrl = '/classy-store/' ;
8+
79const config : Config = {
810 title : 'Classy Store' ,
911 tagline : 'Class-based reactive state management for React' ,
@@ -14,7 +16,7 @@ const config: Config = {
1416 } ,
1517
1618 url : 'https://codebelt.github.io' ,
17- baseUrl : '/classy-store/' ,
19+ baseUrl,
1820
1921 organizationName : 'codebelt' ,
2022 projectName : 'classy-store' ,
@@ -72,9 +74,11 @@ const config: Config = {
7274 label : 'Docs' ,
7375 } ,
7476 {
75- to : '/examples' ,
77+ href : `pathname:// ${ baseUrl } demos/index.html` ,
7678 label : 'Examples' ,
7779 position : 'left' ,
80+ target : '_self' ,
81+ className : 'navbar-examples-link' ,
7882 } ,
7983 {
8084 href : 'https://github.com/codebelt/classy-store' ,
Original file line number Diff line number Diff line change 1818}
1919
2020/* For readability concerns, you should choose a lighter palette in dark mode. */
21+ .navbar-examples-link svg {
22+ display : none;
23+ }
24+
2125[data-theme = "dark" ] {
2226 --ifm-color-primary : # 25c2a0 ;
2327 --ifm-color-primary-dark : # 21af90 ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments