style: add Tailwind Typography plugin for proper markdown rendering
Installed @tailwindcss/typography plugin to fix 'wall of text' issue in documentation. The prose classes now properly style markdown HTML elements with: - Proper margins and spacing for headings, paragraphs, lists - Line-height and typography improvements - Styled code blocks, blockquotes, tables, and links Changes: - Add @tailwindcss/typography to devDependencies - Configure plugin in tailwind.config.ts - Regenerate CSS with typography styles included
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/yuin/goldmark"
|
||||
"github.com/yuin/goldmark-highlighting"
|
||||
highlighting "github.com/yuin/goldmark-highlighting"
|
||||
"github.com/yuin/goldmark/extension"
|
||||
"github.com/yuin/goldmark/parser"
|
||||
"github.com/yuin/goldmark/renderer/html"
|
||||
@@ -57,7 +57,7 @@ func (h *DocsHandler) LoadDocument(docPath string) (*templates.Document, error)
|
||||
|
||||
// Default to INDEX.md if root
|
||||
if docPath == "" || docPath == "docs" {
|
||||
docPath = "INDEX.md"
|
||||
docPath = "index.md"
|
||||
} else {
|
||||
// Remove /docs prefix if present
|
||||
docPath = strings.TrimPrefix(docPath, "docs/")
|
||||
|
||||
@@ -30,7 +30,7 @@ func (h *DocsHandler) BuildNavigation() *templates.Navigation {
|
||||
for _, doc := range docs {
|
||||
// Skip INDEX.md files in subdirectories (they're section landing pages, not nav items)
|
||||
// Only show root INDEX.md, skip all others like user/INDEX.md, api/INDEX.md, etc.
|
||||
if strings.HasSuffix(doc, "INDEX.md") && doc != "INDEX.md" {
|
||||
if strings.HasSuffix(doc, "index.md") && doc != "index.md" {
|
||||
continue
|
||||
}
|
||||
|
||||
@@ -151,7 +151,7 @@ func (h *DocsHandler) getDocIcon(docPath string) string {
|
||||
if strings.Contains(docPath, "contributing") || strings.Contains(docPath, "DEVELOPMENT") {
|
||||
return "🛠️"
|
||||
}
|
||||
if strings.Contains(docPath, "INDEX") {
|
||||
if strings.Contains(docPath, "index") {
|
||||
return "📚"
|
||||
}
|
||||
if strings.Contains(docPath, "troubleshooting") {
|
||||
|
||||
Reference in New Issue
Block a user