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/")
|
||||
|
||||
Reference in New Issue
Block a user