Repository navigation
docs: split running queries from Cypher reference and organize sidebar - #219
Merged
Merged
Conversation
Deploying lance-csr with
|
| Latest commit: |
973e2a6
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://5dc79a2f.lance-csr.pages.dev |
| Branch Preview URL: | https://docs-phase-1-cypher-split-an.lance-csr.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase 1 of making the Zensical docs more readable and conceptually structured for human readers while keeping full technical detail and runnable snippets available for agents and power users:
docs/cypher.mdinto two focused pages: Running queries (docs/running-queries.md) for PythonCypherEngine/CypherQueryruntime usage and Cypher reference (docs/cypher.md) for the language-agnostic openCypher surface.zensical.tomlso all 7 core capabilities remain visible under Guide, while Rust & TypeScript, API reference, and DataFusion internals sit in collapsible directories under Reference and How it works.docs/lance.mdintodocs/running-queries.md, and cleaned up spliced-in prose indocs/cypher.mdanddocs/execution.md.Problem and why it matters
Incremental PR additions had turned
docs/cypher.mdinto a 5,700-word page mixing Python engine API usage, dense 18-line pattern edge-case bullets, internal Arrow path struct fields, and stitched-in paragraphs (such as duplicate openings in Case sensitivity and an aggregate-comparison note under Ordered reduce). Meanwhile, engine-wide topics (Repeated queries and Query parallelism) lived ondocs/lance.md, andUsing from Rust/Using from TypeScriptsat as loose top-level links in the sidebar.Newcomers and graph practitioners had to wade through low-level edge-case specs to learn how to run and inspect queries, while Rust and TypeScript users had to read past Python engine docs to reach the Cypher reference.
Change
docs/running-queries.md: CoversCypherEnginevsCypherQuery,execute(),$parameters, streaming (execute_batches()), deadlines (timeout), an annotatedexplain(..., analyze=True)walkthrough (registered indocs/explain_plans.py), plan template caching (Repeated queries),target_partitions(Query parallelism),CypherQuery, and errors. Detailed parameter coercion/limits, template-cache rules, and pre-planning type-check rules are tucked into collapsible??? noteblocks so agents and search still index every detail without interrupting narrative flow.docs/cypher.md(Cypher reference): Preserves existing URL anchors (#supported-cypher,#path-values,#functions). Breaks Patterns into scannable subsections (Variable-length paths,Alternation and untyped relationships,Relationship uniqueness and reuse,Shortest paths), removes historical bug phrasing, moves Arrow struct metadata (__lance_csr_*) and exhaustive function/reduce edge cases into collapsible??? info/??? noteblocks, moves the aggregate-comparison note into Expressions and predicates, and fixes the stitched Case sensitivity paragraphs.docs/lance.mdanddocs/execution.md: Moved Repeated queries and Query parallelism todocs/running-queries.md, tightened the LanceDB bundled-version warning indocs/lance.md, and trimmed low-levelApplyExec/CsrQueryPlannerparagraphs out ofdocs/execution.md(already covered indocs/internals/).zensical.toml): GroupedCypher reference, collapsibleRust & TypeScript, and collapsibleAPI referenceunder Reference, keeping Guide focused on the 7 core practitioner topics.docs/, Python docstrings (python/python/lance_csr/cypher.py,sql.py), and TypeScript TSDoc (nodejs/src/cypher.ts, regeneratednodejs/typedoc/api.md).Validation
Documentation-only changes (plus docstring/TSDoc cross-link updates); no engine code or benchmarks changed.
uv run --project docs --locked zensical build --strict— passed (No issues found)cd python && uv run --no-sync python ../docs/check_snippets.py— passed (all runnable blocks across every page, including 10 blocks inrunning-queries.md, 9 incypher.md, 5 inlance.md)cd python && uv run --no-sync python ../docs/explain_plans.py— verifiedrunning-queries.md: explain(analyze=True)matches pasted plancd python && make lint— passed (ruff check,ruff format --check,pyright0 errors)cd nodejs && npm run docs:api && npm run lint— regeneratednodejs/typedoc/api.md;tsc --noEmitandprettier --checkpasseduvx typos@1.52.0 .— passed with zero issuesUser impact
Documentation reorganization only. Existing links to
cypher/#supported-cypher,cypher/#path-values, andcypher/#functionsremain valid; engine runtime usage now lives atrunning-queries/. No API or runtime behaviour changed.