Skip to content

Conversation

@amotl
Copy link
Member

@amotl amotl commented Aug 6, 2025

This patch mitigates a few hiccups after the recent migration into this repository.

@coderabbitai
Copy link

coderabbitai bot commented Aug 6, 2025

Walkthrough

This update adds three new markdown link references in a shared links include file, incorporates that include into the drivers documentation, and adjusts the Connect index documentation by reorganizing text and updating link formatting. No technical content or code logic was changed.

Changes

Cohort / File(s) Change Summary
Shared Link References
docs/_include/links.md
Added three new markdown link references for CrateDB BLOBs, Python DBAPI by example, and Python SQLAlchemy by example pointing to internal documentation anchors.
Drivers Documentation Updates
docs/connect/drivers.md
Added an include directive to incorporate the shared links file after the main heading without other content changes.
Connect Index Formatting
docs/connect/index.md
Moved introductory paragraph below the included links, converted "CrateDB BLOBs" to a markdown link, replaced plain BLOB references with link format, and removed two Python example reference links from the bottom list.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested reviewers

  • surister
  • hammerhead

Poem

In the docs, a rabbit hopped with glee,
Adding links for all to see.
BLOBs and drivers now connect,
With markdown magic, neat and correct.
Hop, hop, hooray—
The docs are clearer today! 🐇✨

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix-drivers

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (3)
docs/_include/links.md (1)

8-10: Consider consolidating “BLOB” link aliases to avoid duplication

[CrateDB BLOBs] points to the same target as [BLOBs] defined elsewhere (docs/connect/index.md). Having two distinct reference names for the identical anchor makes future maintenance harder and invites drift.

If both variants must stay, add an explicit alias in this central include so every document can reuse either form without redefining it locally:

+[BLOBs]: inv:crate-reference:*:label#blob_support   # alias → same target

Then drop any local re-definitions of [BLOBs].

docs/connect/drivers.md (1)

367-368: Move Python example link definitions into the shared links include

These two reference-style links are now only used in this file, but will very likely be referenced from other pages (e.g. language-specific guides). Relocating them to /_include/links.md keeps redundancy low and prevents copy-paste drift.

- [python-dbapi-by-example]: inv:crate-python:*:label#by-example
- [python-sqlalchemy-by-example]: inv:sqlalchemy-cratedb:*:label#by-example

(append the same lines to docs/_include/links.md instead).

docs/connect/index.md (1)

35-36: Two different link labels for BLOBs – unify for clarity

This page now uses [CrateDB BLOBs] while the reference list at the bottom still defines [BLOBs], both resolving to the same anchor. Pick one canonical label (see earlier comment in links.md) to minimise cognitive overhead and eliminate duplicate link maintenance.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5450da9 and 5670b35.

📒 Files selected for processing (3)
  • docs/_include/links.md (1 hunks)
  • docs/connect/drivers.md (2 hunks)
  • docs/connect/index.md (2 hunks)
🧰 Additional context used
🧠 Learnings (7)
📓 Common learnings
Learnt from: amotl
PR: crate/cratedb-guide#204
File: docs/integrate/mcp/community.md:22-33
Timestamp: 2025-05-18T12:50:36.393Z
Learning: In the CrateDB Guide repository, the prefix `ctk:` in documentation links (like `ctk:query/mcp/server`) is an intersphinx reference that points to external content in the CrateDB Toolkit documentation at https://cratedb-toolkit.readthedocs.io/. These references are intentionally not pointing to local files within the repository.
Learnt from: amotl
PR: crate/cratedb-guide#204
File: docs/integrate/mcp/community.md:8-20
Timestamp: 2025-05-18T12:50:38.681Z
Learning: In the CrateDB guide repository, references with the `ctk:` prefix (like `ctk:query/mcp/landscape`) are intersphinx references that link to resources in the cratedb-toolkit repository (https://github.com/crate/cratedb-toolkit/tree/main/doc), which are rendered at https://cratedb-toolkit.readthedocs.io/. These are valid cross-references between separate Sphinx documentation sets, not local file references.
Learnt from: amotl
PR: crate/cratedb-guide#204
File: docs/integrate/mcp/community.md:6-8
Timestamp: 2025-05-18T13:25:11.786Z
Learning: In the CrateDB Guide documentation, particularly for MCP-related pages, the author prefers a 1-column grid layout for multiple cards to stack them vertically rather than side by side, as this is an intentional design choice.
Learnt from: amotl
PR: crate/cratedb-guide#222
File: docs/integrate/powerbi/index.md:16-23
Timestamp: 2025-08-06T02:11:46.794Z
Learning: The `project:` role in MyST Markdown syntax like `[](project:#powerbi-desktop)` and `[](project:#powerbi-service)` is valid cross-reference syntax in the CrateDB Guide repository's MyST Markdown setup.
📚 Learning: in the cratedb guide repository, the prefix `ctk:` in documentation links (like `ctk:query/mcp/serve...
Learnt from: amotl
PR: crate/cratedb-guide#204
File: docs/integrate/mcp/community.md:22-33
Timestamp: 2025-05-18T12:50:36.393Z
Learning: In the CrateDB Guide repository, the prefix `ctk:` in documentation links (like `ctk:query/mcp/server`) is an intersphinx reference that points to external content in the CrateDB Toolkit documentation at https://cratedb-toolkit.readthedocs.io/. These references are intentionally not pointing to local files within the repository.

Applied to files:

  • docs/_include/links.md
  • docs/connect/index.md
  • docs/connect/drivers.md
📚 Learning: in the cratedb guide repository, references with the `ctk:` prefix (like `ctk:query/mcp/landscape`) ...
Learnt from: amotl
PR: crate/cratedb-guide#204
File: docs/integrate/mcp/community.md:8-20
Timestamp: 2025-05-18T12:50:38.681Z
Learning: In the CrateDB guide repository, references with the `ctk:` prefix (like `ctk:query/mcp/landscape`) are intersphinx references that link to resources in the cratedb-toolkit repository (https://github.com/crate/cratedb-toolkit/tree/main/doc), which are rendered at https://cratedb-toolkit.readthedocs.io/. These are valid cross-references between separate Sphinx documentation sets, not local file references.

Applied to files:

  • docs/_include/links.md
  • docs/connect/index.md
  • docs/connect/drivers.md
📚 Learning: the `project:` role in myst markdown syntax like `[](project:#powerbi-desktop)` and `[](project:#pow...
Learnt from: amotl
PR: crate/cratedb-guide#222
File: docs/integrate/powerbi/index.md:16-23
Timestamp: 2025-08-06T02:11:46.794Z
Learning: The `project:` role in MyST Markdown syntax like `[](project:#powerbi-desktop)` and `[](project:#powerbi-service)` is valid cross-reference syntax in the CrateDB Guide repository's MyST Markdown setup.

Applied to files:

  • docs/_include/links.md
📚 Learning: the `records.database("crate://", echo=true)` connection string for cratedb works with defaults: loc...
Learnt from: amotl
PR: crate/cratedb-guide#207
File: docs/integrate/etl/iceberg-risingwave.md:205-207
Timestamp: 2025-06-05T14:29:15.512Z
Learning: The `records.Database("crate://", echo=True)` connection string for CrateDB works with defaults: localhost as host, "crate" as user, and blank password. This is valid and functional code in the records library.

Applied to files:

  • docs/_include/links.md
  • docs/connect/index.md
  • docs/connect/drivers.md
📚 Learning: in cratedb connection strings, the user:password@ syntax is valid for http basic authentication on p...
Learnt from: hammerhead
PR: crate/cratedb-guide#221
File: docs/connect/configure.md:58-66
Timestamp: 2025-08-05T07:14:57.416Z
Learning: In CrateDB connection strings, the user:password@ syntax is valid for HTTP Basic authentication on port 4200, but PostgreSQL JDBC drivers do not support this format and require credentials as query parameters (?user=<user>&password=<password>) instead.

Applied to files:

  • docs/_include/links.md
  • docs/connect/index.md
📚 Learning: in the cratedb guide documentation, particularly for mcp-related pages, the author prefers a 1-colum...
Learnt from: amotl
PR: crate/cratedb-guide#204
File: docs/integrate/mcp/community.md:6-8
Timestamp: 2025-05-18T13:25:11.786Z
Learning: In the CrateDB Guide documentation, particularly for MCP-related pages, the author prefers a 1-column grid layout for multiple cards to stack them vertically rather than side by side, as this is an intentional design choice.

Applied to files:

  • docs/connect/index.md
🔇 Additional comments (2)
docs/connect/drivers.md (2)

4-5: include directive placement looks good – verify local link duplicates

The links snippet is now included right after the title, which is consistent with connect/index.md.
Just double-check the build for Sphinx “duplicate target name” warnings – especially for labels already provided by the include (e.g. [CrateDB PostgreSQL interface], [Bulk operations], etc.).


303-306: Link text reuses central definition correctly – nice

Using [CrateDB BLOBs] here removes the prior hard-coded URL and leverages the shared inventory entry.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (3)
docs/_include/links.md (1)

9-9: Consider silencing markdownlint MD053 for the shared include file.

markdownlint-cli2 flags these entries as “unused” because it analyses files in isolation and does not realise that every consumer does :::{include} /_include/links.md.
To avoid recurring noise in CI you could add a per-file .markdownlint-disable MD053 at the top of this include, or exclude the folder in the linter config.

Also applies to: 48-49

docs/connect/index.md (2)

33-36: Minor wording: shorten repeated product name.

[CrateDB BLOBs] already conveys the product; preceding “CrateDB bulk operations and” can read smoother as simply “bulk operations and [BLOBs]”.

- bulk operations and [CrateDB BLOBs], which are not supported by the PostgreSQL
+ bulk operations and [BLOBs][CrateDB BLOBs], which are not supported by the PostgreSQL

Your call—pure wording nit.


57-64: Reference list entry is now redundant with the inline link.

You now link to BLOB support in the body (Line 35). Keeping a second list entry is fine, but if you prefer brevity you could drop it:

- - [BLOB support][CrateDB BLOBs]
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5670b35 and 3baa814.

📒 Files selected for processing (3)
  • docs/_include/links.md (2 hunks)
  • docs/connect/drivers.md (1 hunks)
  • docs/connect/index.md (3 hunks)
✅ Files skipped from review due to trivial changes (1)
  • docs/connect/drivers.md
🧰 Additional context used
🧠 Learnings (6)
📓 Common learnings
Learnt from: amotl
PR: crate/cratedb-guide#204
File: docs/integrate/mcp/community.md:22-33
Timestamp: 2025-05-18T12:50:36.393Z
Learning: In the CrateDB Guide repository, the prefix `ctk:` in documentation links (like `ctk:query/mcp/server`) is an intersphinx reference that points to external content in the CrateDB Toolkit documentation at https://cratedb-toolkit.readthedocs.io/. These references are intentionally not pointing to local files within the repository.
📚 Learning: in the cratedb guide repository, references with the `ctk:` prefix (like `ctk:query/mcp/landscape`) ...
Learnt from: amotl
PR: crate/cratedb-guide#204
File: docs/integrate/mcp/community.md:8-20
Timestamp: 2025-05-18T12:50:38.681Z
Learning: In the CrateDB guide repository, references with the `ctk:` prefix (like `ctk:query/mcp/landscape`) are intersphinx references that link to resources in the cratedb-toolkit repository (https://github.com/crate/cratedb-toolkit/tree/main/doc), which are rendered at https://cratedb-toolkit.readthedocs.io/. These are valid cross-references between separate Sphinx documentation sets, not local file references.

Applied to files:

  • docs/_include/links.md
  • docs/connect/index.md
📚 Learning: in the cratedb guide repository, the prefix `ctk:` in documentation links (like `ctk:query/mcp/serve...
Learnt from: amotl
PR: crate/cratedb-guide#204
File: docs/integrate/mcp/community.md:22-33
Timestamp: 2025-05-18T12:50:36.393Z
Learning: In the CrateDB Guide repository, the prefix `ctk:` in documentation links (like `ctk:query/mcp/server`) is an intersphinx reference that points to external content in the CrateDB Toolkit documentation at https://cratedb-toolkit.readthedocs.io/. These references are intentionally not pointing to local files within the repository.

Applied to files:

  • docs/_include/links.md
  • docs/connect/index.md
📚 Learning: the `records.database("crate://", echo=true)` connection string for cratedb works with defaults: loc...
Learnt from: amotl
PR: crate/cratedb-guide#207
File: docs/integrate/etl/iceberg-risingwave.md:205-207
Timestamp: 2025-06-05T14:29:15.512Z
Learning: The `records.Database("crate://", echo=True)` connection string for CrateDB works with defaults: localhost as host, "crate" as user, and blank password. This is valid and functional code in the records library.

Applied to files:

  • docs/_include/links.md
  • docs/connect/index.md
📚 Learning: in cratedb connection strings, the user:password@ syntax is valid for http basic authentication on p...
Learnt from: hammerhead
PR: crate/cratedb-guide#221
File: docs/connect/configure.md:58-66
Timestamp: 2025-08-05T07:14:57.416Z
Learning: In CrateDB connection strings, the user:password@ syntax is valid for HTTP Basic authentication on port 4200, but PostgreSQL JDBC drivers do not support this format and require credentials as query parameters (?user=<user>&password=<password>) instead.

Applied to files:

  • docs/_include/links.md
  • docs/connect/index.md
📚 Learning: in the cratedb guide documentation, particularly for mcp-related pages, the author prefers a 1-colum...
Learnt from: amotl
PR: crate/cratedb-guide#204
File: docs/integrate/mcp/community.md:6-8
Timestamp: 2025-05-18T13:25:11.786Z
Learning: In the CrateDB Guide documentation, particularly for MCP-related pages, the author prefers a 1-column grid layout for multiple cards to stack them vertically rather than side by side, as this is an intentional design choice.

Applied to files:

  • docs/connect/index.md
🪛 markdownlint-cli2 (0.17.2)
docs/_include/links.md

9-9: Link and image reference definitions should be needed
Unused link or image reference definition: "cratedb blobs"

(MD053, link-image-reference-definitions)


48-48: Link and image reference definitions should be needed
Unused link or image reference definition: "python-dbapi-by-example"

(MD053, link-image-reference-definitions)


49-49: Link and image reference definitions should be needed
Unused link or image reference definition: "python-sqlalchemy-by-example"

(MD053, link-image-reference-definitions)

docs/connect/index.md

63-63: Reference links and images should use a label that is defined
Missing link or image reference definition: "cratedb blobs"

(MD052, reference-links-images)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Build docs
🔇 Additional comments (2)
docs/_include/links.md (1)

9-9: Verify intersphinx target IDs exist (blob_support, by-example).

The three new definitions use intersphinx targets. Please make sure that

  • crate-reference actually exposes a label blob_support, and
  • the two by-example pages are still published under the same labels in the crate-python and sqlalchemy-cratedb inventories.

If any of those labels disappeared or changed, we will get broken links at build time.

Also applies to: 48-49

docs/connect/index.md (1)

7-9: Good relocation of the intro paragraph.

Moving the text below the shared links include keeps link definitions in scope and solves the earlier MD052 warning.

@amotl amotl marked this pull request as ready for review August 6, 2025 23:01
@amotl amotl merged commit e4e6c3c into main Aug 6, 2025
3 checks passed
@amotl amotl deleted the fix-drivers branch August 6, 2025 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant