feat(docs): create sukr documentation site with fixes
Self-documenting docs site built with sukr itself (dogfooding): Core changes: - Rename package from nrd-sh to sukr - Move personal site to sites/nrd.sh/ - Update AGENTS.md and README.md Documentation site (docs/): - Add site.toml with sukr.io base URL - Create docs-specific templates with sidebar navigation - Add dark theme CSS with syntax highlighting colors - Document all features: templates, sections, syntax highlighting, mermaid diagrams, and LaTeX math rendering Bug fixes: - Render individual pages for all sections (not just blog type) - Add #[source] error chaining for Tera template errors - Print full error chain in main() for better debugging
This commit is contained in:
70
docs/static/style.css
vendored
70
docs/static/style.css
vendored
@@ -150,6 +150,64 @@ pre code {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Syntax highlighting (tree-sitter classes) */
|
||||
.hl-keyword {
|
||||
color: #ff79c6;
|
||||
}
|
||||
|
||||
.hl-string {
|
||||
color: #f1fa8c;
|
||||
}
|
||||
|
||||
.hl-function {
|
||||
color: #50fa7b;
|
||||
}
|
||||
|
||||
.hl-comment {
|
||||
color: #6272a4;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hl-number {
|
||||
color: #bd93f9;
|
||||
}
|
||||
|
||||
.hl-operator {
|
||||
color: #ff79c6;
|
||||
}
|
||||
|
||||
.hl-punctuation {
|
||||
color: var(--fg-muted);
|
||||
}
|
||||
|
||||
.hl-punctuation-bracket {
|
||||
color: var(--fg-muted);
|
||||
}
|
||||
|
||||
.hl-variable {
|
||||
color: var(--fg);
|
||||
}
|
||||
|
||||
.hl-type {
|
||||
color: #8be9fd;
|
||||
}
|
||||
|
||||
.hl-constant {
|
||||
color: #bd93f9;
|
||||
}
|
||||
|
||||
.hl-attribute {
|
||||
color: #50fa7b;
|
||||
}
|
||||
|
||||
.hl-property {
|
||||
color: #66d9ef;
|
||||
}
|
||||
|
||||
.hl-tag {
|
||||
color: #ff79c6;
|
||||
}
|
||||
|
||||
/* Section navigation */
|
||||
.section-nav {
|
||||
display: flex;
|
||||
@@ -184,7 +242,8 @@ pre code {
|
||||
}
|
||||
|
||||
/* Lists */
|
||||
ul, ol {
|
||||
ul,
|
||||
ol {
|
||||
margin: 1rem 0;
|
||||
padding-left: 1.5rem;
|
||||
}
|
||||
@@ -200,7 +259,8 @@ table {
|
||||
margin: 1rem 0;
|
||||
}
|
||||
|
||||
th, td {
|
||||
th,
|
||||
td {
|
||||
padding: 0.75rem;
|
||||
text-align: left;
|
||||
border: 1px solid var(--border);
|
||||
@@ -215,15 +275,15 @@ th {
|
||||
body {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
|
||||
.sidebar {
|
||||
position: static;
|
||||
height: auto;
|
||||
border-right: none;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
|
||||
main {
|
||||
padding: 2rem 1.5rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user