Commit 613b506
fix: update QuickStart guide and SSL config for local Postgres dev (#4)
* fix: improve mobile navigation and layouts on docs site
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat: replace mobile top nav with bottom navigation bar for better reachability
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: update QuickStart guide and SSL config for local Postgres dev
The default database URL used sslmode=require, but the docker-compose
Postgres has no SSL configured — causing mantle init to fail for users
following the QuickStart guide. Change the code default to sslmode=disable
(matching the docs and the localhost dev URL) and add SSL guidance to
the Getting Started guide. Production examples throughout the docs
already use sslmode=require.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: grpc CVE, copilot review feedback, sslmode default restored
- google.golang.org/grpc v1.79.1 → v1.79.3 (fixes CVE-2026-33186)
- Fix overlay cloneNode bug: closeSidebar referenced detached node
(use onclick assignment instead of cloneNode pattern)
- Safe-area-inset: bottom padding accounts for iOS home indicator
- Tables: display:block + overflow-x:auto directly (no wrapper needed)
- Remove overflow-x-hidden from docs container (was clipping tables)
- Restore sslmode=disable as default for local dev (sslmode=require
broke docker-compose dev workflow; warning still logs in production)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(ci): only trigger once per PR (push on main, pull_request on branches)
* fix: address all 6 Copilot review comments on PR #4
1. sslmode=disable → sslmode=prefer (tries TLS, graceful fallback for local dev)
2. grpc bump is intentional (CVE-2026-33186) — already noted in PR description
3. Table scroll comment updated to match unconditional behavior
4. isDocs derived from pathname (/docs prefix) not !isHome — fixes 404 page
5. 404 page gets pb-20 for mobile bottom nav clearance
6. Broken /configuration link → /docs/configuration in getting-started
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: address 2 new Copilot comments on PR #4
1. Table CSS: removed display:block (breaks border-collapse), use
:has(> table) for scrollable parent instead, preserving table layout
2. getting-started.md: sslmode=disable → sslmode=prefer to match code default
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: address 2 Copilot comments — md-lg nav gap and sidebar bottom offset
1. Bottom nav: md:hidden → lg:hidden so menu button is visible at
768-1023px (bridging the gap between mobile and desktop sidebar)
2. Bottom padding: md:pb-0 → lg:pb-0 on all pages to match
3. Sidebar mobile bottom: responsive class instead of inline style,
only reserves bottom-nav space below lg breakpoint
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: table :has selector and sidebar aria-expanded/aria-hidden
1. Table scroll: .prose :has(> table) → .prose:has(table) so it matches
when table is a direct child of the prose article
2. Sidebar toggle: aria-expanded on button, aria-hidden toggled on
overlay in sync with visibility state
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: aria-label on nav landmarks, reset aria state on sidebar close
1. Distinct aria-labels: "Main navigation" and "Mobile navigation"
2. closeSidebar() now resets aria-hidden on overlay and aria-expanded
on the menu button (fixes stuck state on overlay/link close)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: update site getting-started sslmode=disable → sslmode=prefer
* chore: remove redundant root docs, update URLs to mantle.dvflw.co
- Remove 12 docs/*.md files (content lives in site/src/content/docs/)
- Update all mantle.dev references → mantle.dvflw.co across:
internal/cli/root.go, site/src/layouts/Base.astro, astro.config.mjs,
site/src/pages/404.astro, marketing/*.md
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Update site/src/styles/global.css
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* fix: README links to mantle.dvflw.co, GitHub target="_blank", deprecated CSS
- README doc links now point to https://mantle.dvflw.co/docs/*
- GitHub external links get target="_blank" rel="noopener"
- word-break: break-word → overflow-wrap: anywhere (deprecated property)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: add target=_blank rel=noopener to sidebar GitHub link
* fix: address 4 review comments on PR #4
Verified each finding — all 4 needed fixes:
1. README: /docs/plugins → /docs/plugins-guide, /docs/contributing → CONTRIBUTING.md
2. Sidebar: aria-hidden="true" + inert on mobile drawer when closed,
synced on open/close in both Nav and DocsSidebar handlers
3. isDocs: strict check — pathname === '/docs' || startsWith('/docs/')
4. Nav script timing: deferred init via requestAnimationFrame loop
until sidebar DOM exists (Nav renders before DocsSidebar)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: bail out of deferInitNav after 10 frames on non-docs pages
* fix: sslmode=prefer warning for non-loopback hosts, prefix nav globals
- Warn at startup when database URL uses sslmode=prefer with a
non-loopback host (localhost/127.0.0.1/::1 are excluded)
- Prefix inline script globals in Nav.astro (_mantleNavRetries,
_mantleDeferInitNav) to avoid collisions
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Update internal/config/config.go
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* fix: add missing net and strings imports for sslmode check
The CodeRabbit suggestion (4b48827) replaced the simple string
comparison with net.ParseIP/strings.EqualFold but didn't add the
required imports, breaking CI.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>1 parent 1e04e15 commit 613b506
31 files changed
Lines changed: 211 additions & 5935 deletions
File tree
- .github/workflows
- docs
- internal
- cli
- config
- marketing
- site
- src
- components
- content/docs/getting-started
- layouts
- pages
- styles
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| |||
This file was deleted.
0 commit comments