diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index fc0d0b7d78e311640a3441a74d3731c27f9c4b3b..b2b3bf5f9d68be99b6b67d37297e7c6bcc66e701 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -43,51 +43,9 @@ export default defineUserConfig({ ] }, ], - sidebar: { - '/team/': [ - { - text: 'Team', - children: [ - '/team/', // Corresponds to '/team/README.md' or '/team/index.md' - '/team/attributions', // Corresponds to '/team/attributions.md' - ], - }, - ], - '/project/': [ - { - text: 'Project', - children: [ - '/project/contribution', - '/project/description', - '/project/engineering', - '/project/parts', - ], - }, - ], - '/human-practices/': [ - { - text: 'Human Practices', - children: ['/human-practices/'], // Make sure file path exists - }, - ], - '/awards/': [ - { - text: 'Awards', - children: [ - '/awards/education', - '/awards/sustainable', - '/awards/new-basic-part', - ], - }, - ], - '/': [ - { - text: 'On This Page', - children: 'auto', - }, - ], - '/team': false, // Disable sidebar on /team path (if needed) - }, + sidebar: false, + },{ + custom: true }), bundler: viteBundler({ viteOptions: {}, diff --git a/docs/.vuepress/styles/index.scss b/docs/.vuepress/styles/index.scss index 24aaf34fed9ea4df66923256a00bcc8840f5c70b..01af508f3a4d5b6973ed63f46e3267e0c032af3d 100644 --- a/docs/.vuepress/styles/index.scss +++ b/docs/.vuepress/styles/index.scss @@ -37,67 +37,4 @@ background-position: center; border: none; /* Optional: Remove border */ width: 50px; /* Adjust based on your image size */ height: 50px; /* Adjust based on your image size */ -} - -/* Sidebar Styling */ -.theme-hope-sidebar { - position: sticky; /* Stick to the top when scrolling */ - top: 1rem; /* Space from the top of the page */ - max-height: calc(100vh - 2rem); /* Full height minus some margin */ - overflow-y: auto; /* Enable vertical scrolling */ - width: 18rem; /* Ensure sidebar width is explicitly defined */ - background-color: #f9f9f9; /* Optional: Background color */ - padding: 1rem; /* Sidebar padding */ - border: 1px solid #ddd; /* Optional: Border for the sidebar */ - border-radius: 8px; /* Optional: Rounded corners */ -} - -/* Sidebar Title */ -.theme-hope-sidebar::before { - content: 'On This Page'; /* Sidebar title */ - display: block; - font-size: 1.2rem; - font-weight: bold; - padding-bottom: 1rem; /* Space below title */ - border-bottom: 1px solid #ddd; /* Optional: Border under the title */ - margin-bottom: 1rem; /* Space below title */ -} - -/* Links in the sidebar */ -.theme-hope-sidebar a { - color: #333; /* Link color */ - text-decoration: none; /* No underline */ - display: block; - margin: 0.5rem 0; /* Space between links */ -} - -.theme-hope-sidebar a:hover { - text-decoration: underline; /* Underline on hover */ -} - -/* Layout and Footer */ -.theme-hope-layout { - display: flex; - flex-direction: column; - min-height: 100vh; /* Full viewport height */ -} - -.theme-hope-sidebar { - flex-shrink: 0; /* Prevent shrinking */ - margin-bottom: 2rem; /* Space from footer */ -} - -.theme-hope-main { - flex-grow: 1; /* Main content grows */ -} - -/* Footer Styling */ -.footer { - width: 100%; - background-color: #333; - color: #fff; - text-align: center; - padding: 10px; - position: relative; - bottom: 0; } \ No newline at end of file