Fix: Footer fix for docs section pages, and Centralized defaultTheme in siteConfig.ts

This commit is contained in:
Wayne Sutton
2026-01-03 16:09:30 -08:00
parent 83265d5e52
commit cb2875a830
18 changed files with 115 additions and 27 deletions

15
TASK.md
View File

@@ -2,17 +2,19 @@
## To Do
- [ ] docs pages
- [ ] fix site confg link
- [ ] npm package
## Current Status
v2.8.1 ready. Centralized defaultTheme in siteConfig.ts.
v2.8.2 ready. Fixed footer not displaying on docs section pages.
## Completed
- [x] Fix footer not displaying on docs section pages with showFooter: true
- [x] Added footer.md content query to Post.tsx (matching Home.tsx and Blog.tsx pattern)
- [x] Updated all 4 Footer component calls to use `post.footer || footerPage?.content` pattern
- [x] Footer now falls back to footer.md content when no per-post footer is specified
- [x] Priority order: per-post frontmatter `footer:` > synced footer.md content > siteConfig.footer.defaultContent
- [x] Updated docs.md, files.md, changelog.md, changelog-page.md with fix documentation
- [x] Centralize defaultTheme in siteConfig.ts
- [x] Added `defaultTheme` field to siteConfig.ts (type: `Theme`)
- [x] Added `Theme` type export to siteConfig.ts
@@ -25,7 +27,6 @@ v2.8.1 ready. Centralized defaultTheme in siteConfig.ts.
- [x] Updated fork-configuration-guide.md with siteConfig.ts reference
- [x] Backward compatible: falls back to "tan" if defaultTheme not set
- [x] Docs sidebar group icons via frontmatter
- [x] Added `docsSectionGroupIcon` frontmatter field for posts and pages
- [x] Icon appears left of the group title expand/collapse chevron