Skip to content

Conversation

@samuelstroschein
Copy link
Member

@samuelstroschein samuelstroschein commented Nov 23, 2025

Note

Restructures and expands the Lix docs into a new flat, conversion‑focused site with updated navigation, examples, and API docs paths; also tweaks SDK docs/comments and tests.

  • Docs site overhaul:
    • Introduces new docs structure under src/docs/ with flat sections: Getting Started, Essentials, Guides, and API Reference.
    • Adds/rewrites major pages (e.g., how-lix-works, data-model, history, diffs, persistence, plugins, lix-for-ai-agents, etc.) and component components/code-snippet.tsx.
    • New landing page and multiple runnable examples added/updated; removes legacy example files.
    • Updates .gitignore for new docs paths.
  • Build/config:
    • Moves Rspress root to src/, regenerates API docs to src/docs/api, and updates sidebar/nav links to /docs/....
    • Enhances TypeDoc plugin (link patching, sidebar generation, index handling) and syncs React utils README to docs/react-integration.mdx.
  • SDK polish:
    • Clarifies openLix.toBlob() JSDoc with examples and .lix convention.
    • Documents file_history usage and scopes in applyFileDatabaseSchema; minor test/comment adjustments for history queries.

Written by Cursor Bugbot for commit e2f1f74. This will update automatically on new commits. Configure here.

- Clarified the restoration process in the restore example.
- Added a comprehensive "Getting Started" guide with installation and initialization steps.
- Enhanced the "History" section to explain how history works and how to query it effectively.
- Expanded the "How Lix Works" documentation to detail the storage layer, commit graph, and change control features.
- Introduced a new "Plugins" section explaining how to use and build plugins for different file formats.
- Created a "Querying Changes" guide to illustrate how to access current and historical data using SQL.
- Removed the outdated "Quick Start" guide and replaced it with a more structured overview of Lix.
- Added a new "What is Lix?" page summarizing the SDK's capabilities and features.
- Updated various sections for clarity, consistency, and improved user guidance.
@changeset-bot
Copy link

changeset-bot bot commented Nov 23, 2025

⚠️ No Changeset found

Latest commit: e2f1f74

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@nx-cloud
Copy link

nx-cloud bot commented Nov 23, 2025

🤖 Nx Cloud AI Fix

Ensure the fix-ci command is configured to always run in your CI pipeline to get automatic fixes in future runs. For more information, please see https://nx.dev/ci/features/self-healing-ci


View your CI Pipeline Execution ↗ for commit e2f1f74

Command Status Duration Result
nx run-many --nx-bail --target=build --parallel ✅ Succeeded 13s View ↗
nx run-many --target=test --parallel ✅ Succeeded 10s View ↗
nx run-many --target=lint --parallel ✅ Succeeded 1s View ↗

☁️ Nx Cloud last updated this comment at 2025-11-23 18:48:58 UTC

},
{ text: "JSON Plugin", link: "/docs/plugins/json" },
{ text: "CSV Plugin", link: "/docs/plugins/csv" },
{ text: "Markdown Plugin", link: "/docs/plugins/markdown" },
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Broken sidebar links to non-existent plugin pages

The sidebar configuration references plugin documentation pages under /docs/plugins/ (creating-plugins, json, csv, markdown), but the diff shows no corresponding files were created in src/docs/plugins/. The restructure moved files from docs/ to src/docs/, but these plugin pages appear to be missing entirely, causing broken navigation links.

Fix in Cursor Fix in Web

{ text: "Collaboration", link: "/examples/collaboration" },
{ text: "Building an App", link: "/examples/building-an-app" },
{ text: "Collaboration", link: "/docs/examples/collaboration" },
{ text: "Building an App", link: "/docs/examples/building-an-app" },
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Broken sidebar links to non-existent example pages

The sidebar configuration references example pages under /docs/examples/ (basic-usage, version-management, collaboration, building-an-app), but the diff shows no corresponding files were created in src/docs/examples/. These pages are referenced in the navigation but don't exist in the new structure, resulting in 404 errors when users click these links.

Fix in Cursor Fix in Web

@samuelstroschein samuelstroschein temporarily deployed to improve-lix-docs - lix-docs PR #3762 November 23, 2025 18:47 — with Render Destroyed
{ text: "Diffs", link: "/docs/diffs" },
{ text: "Attribution (Blame)", link: "/docs/attribution" },
{ text: "Change Proposals", link: "/docs/change-proposals" },
{ text: "Validation Rules", link: "/docs/validation-rules" },
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Broken link to missing validation-rules documentation

The sidebar configuration references validation-rules at /docs/validation-rules, and lix-for-ai-agents.md links to ./validation-rules, but the actual file packages/lix/docs/src/docs/validation-rules.md is not included in this commit. The documentation restructure moved files around but appears to have missed creating or moving the validation-rules documentation file, resulting in broken navigation links and internal documentation references.

Additional Locations (1)

Fix in Cursor Fix in Web

{ text: "Validation Rules", link: "/docs/validation-rules" },
{ text: "Undo/Redo", link: "/docs/undo-redo" },
{ text: "Restore", link: "/docs/restore" },
{ text: "Conversations", link: "/docs/conversations" },
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Missing conversations documentation file

The sidebar configuration references conversations at /docs/conversations, and multiple documentation files link to it (change-proposals.mdx at line 36 and 133, what-is-lix.md at line 14), but the file packages/lix/docs/src/docs/conversations.md is not included in this commit. This creates broken navigation links and internal documentation references throughout the restructured docs.

Additional Locations (2)

Fix in Cursor Fix in Web

{ text: "Testing", link: "/docs/testing" },
{ text: "React Integration", link: "/docs/react-integration" },
{ text: "Logging & Debugging", link: "/docs/logging" },
{ text: "Deterministic Mode", link: "/docs/deterministic-mode" },
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Missing deterministic-mode documentation file

The sidebar configuration references deterministic-mode at /docs/deterministic-mode, but the file packages/lix/docs/src/docs/deterministic-mode.md is not included in this commit. This creates a broken navigation link in the sidebar.

Fix in Cursor Fix in Web

{ text: "Logging & Debugging", link: "/docs/logging" },
{ text: "Deterministic Mode", link: "/docs/deterministic-mode" },
{ text: "Metadata", link: "/docs/metadata" },
{ text: "Writer Key", link: "/docs/writer-key" },
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Missing writer-key documentation file

The sidebar configuration references writer-key at /docs/writer-key, but the file packages/lix/docs/src/docs/writer-key.md is not included in this commit. This creates a broken navigation link in the sidebar.

Fix in Cursor Fix in Web


See the guide for the pattern, pitfalls, and a decision matrix:

- https://lix.dev/guide/writer-key
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Outdated absolute URL to old documentation structure

The react-integration documentation contains an absolute URL https://lix.dev/guide/writer-key that points to the old documentation structure at /guide/writer-key. After this restructure, the URL should point to /docs/writer-key instead. This link will be broken once the restructure is deployed, even if the writer-key.md file is eventually added.

Fix in Cursor Fix in Web

@samuelstroschein samuelstroschein merged commit d9ce2a3 into main Nov 23, 2025
3 checks passed
@samuelstroschein samuelstroschein deleted the improve-lix-docs branch November 23, 2025 18:52
@github-actions github-actions bot locked and limited conversation to collaborators Nov 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants