diff --git a/.gitignore b/.gitignore index df36112..cdbc8be 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,8 @@ docserver docs-linux docs-macos docs-server +docs-bin +docs/docs # Test binary *.test diff --git a/README.md b/README.md index 6fda010..f026839 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A lightweight, fast documentation server written in Go that converts Markdown fi ## Screenshots -![Documentation Homepage](https://github.com/user-attachments/assets/9ab3dab8-22d9-4d65-8110-2c32fb28e208) +![Documentation Homepage](https://github.com/user-attachments/assets/c815def6-dd53-4a1c-993f-6015b8f8214f) *The documentation server features a full-height sidebar navigation and clean, modern design* ## Features diff --git a/templates/theme.html b/templates/theme.html index e0ba102..f41ea8d 100644 --- a/templates/theme.html +++ b/templates/theme.html @@ -38,6 +38,9 @@ -moz-osx-font-smoothing: grayscale; background: #ffffff; color: var(--slate-700); + display: flex; + flex-direction: column; + min-height: 100vh; } header { @@ -57,6 +60,7 @@ display: flex; align-items: center; gap: 0.75rem; + color: white !important; } .menu-toggle { @@ -72,7 +76,7 @@ .main-layout { display: grid; grid-template-columns: 280px 1fr; - min-height: calc(100vh - 60px); + flex: 1; position: relative; } @@ -81,9 +85,6 @@ color: var(--slate-300); padding: 1.5rem 0; overflow-y: auto; - position: sticky; - top: 60px; - height: calc(100vh - 60px); transition: transform 0.3s ease; } @@ -372,6 +373,7 @@ top: 60px; left: 0; width: 280px; + height: calc(100vh - 60px); z-index: 50; box-shadow: 2px 0 8px rgba(0,0,0,0.2); }