Docs realignment — v0.x reality, correct imports, and new reference pages
· 3 min read
This post documents the corrections and additions made to align the quark-docs site
with the actual github.com/jcsvwinston/quark repository.
What was wrong
The initial site was written with incorrect module paths and an outdated version claim:
- Every import used
github.com/jcsvwinston/GoFrame/pkg/quark— the wrong module path. - The overview declared "v1.0 — production ready" when the repo is
v0.x. - Cache API used
memory.NewStore(10000)andWithCache(store)instead of the realmemory.New()andWithCacheStore(store). - The CLI page instructed
go build -o quark ./cmd/quark/main.goas the primary install path. - The footer "Getting Started" link pointed to
/docs/introinstead of/docs/guides/getting-started. - The comparison table omitted
sqlx.
Files modified
docusaurus.config.ts— updated tagline, addedAPI ↗navbar link to pkg.go.dev, fixed footer Getting Started link, replaced duplicate "More" items with Repo · Releases · Issues · pkg.go.dev · Apache 2.0, added@docusaurus/theme-mermaidand@easyops-cn/docusaurus-search-local.sidebars.ts— addedguides/installation,reference/sqlguard,reference/comparison,reference/configuration,reference/release-notes.docs/intro.mdx— replaced v1.0 claim with v0.x status, fixed install commands, added "Why I built this", expanded documentation map.docs/guides/getting-started.mdx— fixed import togithub.com/jcsvwinston/quark, added PostgreSQL switch example, addedUpsert,DeleteBy,HardDelete,UpdateMapexamples.docs/guides/cli.mdx— rewritten with correct install (go install github.com/jcsvwinston/quark/cmd/quark@latest), full command reference table from README.docs/guides/querying.mdx— addedMin/Maxexamples,Paginateresult field docs,Applyclarification.docs/guides/migrations.mdx— replacedgo buildwithmigrate.RegisterAPI, added CLI commands,SafeMigrationsandquark:"rename:..."docs.docs/advanced/multi-tenant.mdx— addedDatabasePerTenantexample, CLI tenant commands, link toMULTI-TENANT-CONSIDERATIONS.md.docs/advanced/caching-observability.mdx— fixed all imports togithub.com/jcsvwinston/quark/cache/memory,github.com/jcsvwinston/quark/otel; fixedmemory.NewStore→memory.New(),WithCache→WithCacheStore.docs/reference/architecture.mdx— added Mermaid request lifecycle diagram.docs/reference/dialects.mdx— expanded MariaDB row, addedDetectDialectByNameexplanation.docs/reference/benchmarks.mdx— added disclaimer and link tobenchmark_test.go.docs/reference/roadmap.mdx— replaced v1.0 claim with v0.x, fixed section labels, removed GoFrame reference, added canonical source link.src/pages/index.tsx— removed v1.0 badge (now "For Go · Open Source · Apache 2.0"), addedsqlxcolumn to comparison table, added footnotes, added "Why I built this" and "Try it locally" sections, expanded DocsNav with SQLGuard / Comparison / Configuration / CLI / Release Notes cards.
Files created
docs/guides/installation.mdx— requirements, drivers, CLI install, verification, test env vars.docs/reference/sqlguard.mdx— full SQLGuard documentation with injection comparison table.docs/reference/comparison.mdx— cell-by-cell comparison vs GORM, sqlx, Ent with code examples.docs/reference/configuration.mdx— fullquark.Limitsreference and allWith*options.docs/reference/release-notes.mdx— port ofdocs/RELEASE_NOTES_V1.md.