Skip to content

docs: fixed embeddings and sync config#180

Merged
parse merged 2 commits into
mainfrom
docs/doc-sync-corrections
May 13, 2026
Merged

docs: fixed embeddings and sync config#180
parse merged 2 commits into
mainfrom
docs/doc-sync-corrections

Conversation

@parse
Copy link
Copy Markdown
Contributor

@parse parse commented May 13, 2026

Summary by CodeRabbit

  • Documentation
    • Updated GitHub Actions workflow examples to explicitly include ai-provider: gemini input.
    • Clarified token usage across GitHub and Bitbucket integrations for source PRs versus model repositories.
    • Added documentation for new ERODE_LIKEC4_FORMAT_AFTER_PATCH environment variable.
    • Updated diagram embeds throughout documentation for improved rendering consistency.

Review Change Stack

@parse parse requested a review from a team as a code owner May 13, 2026 07:41
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 13, 2026

📝 Walkthrough

Walkthrough

Documentation updates systematize AI provider configuration in GitHub Actions workflows, remove browser rendering attributes from LikeC4 embeds, clarify token usage for source PRs versus model repositories across integrations, document a new LikeC4 formatting configuration variable, and restructure publish action documentation.

Changes

Documentation Configuration and Integration Updates

Layer / File(s) Summary
AI Provider Configuration in Workflow Examples
README.md, packages/web/src/content/docs/docs/integrations/github-actions.md
Multiple GitHub Actions workflow examples and README quickstart are updated to include the explicit ai-provider: gemini input for the erode-app/erode@0 action across basic, remote model repository, outputs, on-demand, and GitHub App token workflows.
Token Usage Clarifications
packages/web/src/content/docs/docs/integrations/github-actions.md, packages/web/src/content/docs/docs/reference/authentication.md
GitHub Actions documentation for private model repositories clarifies that model-repo-token is used for cloning and model update PRs while github-token is used for source PR operations. Bitbucket authentication docs distinguish ERODE_BITBUCKET_TOKEN for source PR operations from ERODE_MODEL_REPO_TOKEN for external model repositories with fallback behavior.
LikeC4 Embed Rendering Configuration
packages/web/src/content/docs/docs/contributing/index.md, packages/web/src/content/docs/docs/how-it-works.md, packages/web/src/content/docs/docs/integrations/index.md, packages/web/src/content/docs/docs/models/index.mdx, packages/web/src/content/docs/docs/reference/ai-providers.md, packages/web/src/content/docs/docs/reference/analysis-pipeline.md
The browser="true" attribute is systematically removed from LikeC4 view embeds across documentation files, altering how interactive viewers are rendered while preserving all other embed parameters.
Documentation Content Enhancements
packages/web/src/content/docs/docs/reference/analysis-pipeline.md, packages/web/src/content/docs/docs/reference/configuration.md
The analysis-pipeline reference reformats the "Publish" section action list into a structured three-column markdown table. Configuration documentation adds the new ERODE_LIKEC4_FORMAT_AFTER_PATCH environment variable with its default value.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • erode-app/erode#76: Introduces the adapter.likec4.formatAfterPatch configuration that this PR documents as ERODE_LIKEC4_FORMAT_AFTER_PATCH.
  • erode-app/erode#23: Introduces the new dynamic pipeline-stages sequence view that this PR updates embeds for in how-it-works.md.
  • erode-app/erode#47: Reorganizes documentation paths; this PR updates links and references from /docs/ci/github-actions/ to /docs/integrations/github-actions/.

Poem

🐰 Workflows bloom with gemini light,
Browser attributes fade from sight,
Tokens dance in clarity's way,
LikeC4 views reshape each day! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'docs: fixed embeddings and sync config' is partially related to the changeset, covering some documentation updates but not capturing the main point of the changes comprehensively. Consider a more specific title like 'docs: remove browser attribute from LikeC4 embeds and add ai-provider config' to better capture the primary changes.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/doc-sync-corrections

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


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

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@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: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/web/src/content/docs/docs/integrations/github-actions.md`:
- Line 76: The table entry for the `ai-provider` option is inconsistent with the
README and workflow examples; change the default value shown from `anthropic` to
`gemini` so `ai-provider`'s default matches the README and the updated
workflows, and scan other docs mentioning `ai-provider` to ensure all defaults
are consistently `gemini`.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 2a326178-ad20-4b72-84e2-b795b89a792b

📥 Commits

Reviewing files that changed from the base of the PR and between e79a94b and 1b9a31b.

📒 Files selected for processing (10)
  • README.md
  • packages/web/src/content/docs/docs/contributing/index.md
  • packages/web/src/content/docs/docs/how-it-works.md
  • packages/web/src/content/docs/docs/integrations/github-actions.md
  • packages/web/src/content/docs/docs/integrations/index.md
  • packages/web/src/content/docs/docs/models/index.mdx
  • packages/web/src/content/docs/docs/reference/ai-providers.md
  • packages/web/src/content/docs/docs/reference/analysis-pipeline.md
  • packages/web/src/content/docs/docs/reference/authentication.md
  • packages/web/src/content/docs/docs/reference/configuration.md

| `model-path` | Path to the model within the model repository | No | `.` |
| `model-ref` | Git ref (branch/tag) of the model repository | No | `main` |
| `model-format` | Architecture model format | No | `likec4` |
| `ai-provider` | AI provider (`gemini`, `openai`, or `anthropic`) | No | `anthropic` |
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Inconsistency: Default AI provider mismatch with README.

The README states "Supported AI providers: Gemini (default)" (line 7), but this table shows anthropic as the default value for ai-provider. Since all workflow examples in this PR are being updated to explicitly set ai-provider: gemini, the table default should likely be updated to match.

📝 Proposed fix
-| `ai-provider`         | AI provider (`gemini`, `openai`, or `anthropic`)                   | No                   | `anthropic`         |
+| `ai-provider`         | AI provider (`gemini`, `openai`, or `anthropic`)                   | No                   | `gemini`            |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/web/src/content/docs/docs/integrations/github-actions.md` at line
76, The table entry for the `ai-provider` option is inconsistent with the README
and workflow examples; change the default value shown from `anthropic` to
`gemini` so `ai-provider`'s default matches the README and the updated
workflows, and scan other docs mentioning `ai-provider` to ensure all defaults
are consistently `gemini`.

@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented May 13, 2026

Greptile Summary

This PR updates the documentation to reflect the current recommended Gemini configuration and several new features across the action inputs, LikeC4 embeds, and Bitbucket authentication.

  • Removes browser="true" from all <likec4-view> embeds across six documentation pages, and adds explicit ai-provider: gemini to every GitHub Actions YAML example so the recommended provider is unambiguous.
  • Documents the new ERODE_LIKEC4_FORMAT_AFTER_PATCH configuration variable, adds model-format to the GH Actions outputs row in the analysis-pipeline reference, and expands Bitbucket authentication to cover ERODE_MODEL_REPO_TOKEN for external model repositories.

Confidence Score: 4/5

Safe to merge with the understanding that the action.yml default issue is a follow-up fix rather than a blocker; all examples correctly show gemini.

The action.yml default for ai-provider remains 'anthropic' while every example in this PR and the ai-providers.md page treat Gemini as the recommended default. A workflow author who skips the examples and relies only on the inputs table would silently get the experimental Anthropic provider. The rest of the changes are clean and consistent.

github-actions.md and action.yml (not changed in this PR) — the action input default and application default disagree, and the Bitbucket ERODE_MODEL_REPO_TOKEN addition in authentication.md has no corresponding entry in the configuration.md platform tokens table.

Important Files Changed

Filename Overview
packages/web/src/content/docs/docs/integrations/github-actions.md Adds ai-provider: gemini to all YAML examples and clarifies model-repo-token scope; the action input table still documents anthropic as the default (matching action.yml), which contradicts the application-level and ai-providers.md defaults.
packages/web/src/content/docs/docs/reference/authentication.md Extends Bitbucket section to document ERODE_MODEL_REPO_TOKEN for external model repos; the new variable is not reflected in the configuration.md platform tokens table.
packages/web/src/content/docs/docs/reference/configuration.md Adds ERODE_LIKEC4_FORMAT_AFTER_PATCH to the Architecture model table with default true; straightforward documentation addition.
packages/web/src/content/docs/docs/reference/analysis-pipeline.md Removes browser="true" from the LikeC4 embed and adds model-format to the GH Actions outputs row in the publish phase table; consistent with the outputs table in github-actions.md.
README.md Adds ai-provider: gemini to the quickstart example and corrects the GitHub Actions guide URL from /docs/ci/github-actions/ to /docs/integrations/github-actions/.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[User sets up GitHub Actions workflow] --> B{ai-provider specified?}
    B -- Yes, gemini --> C[Uses Gemini - recommended]
    B -- No / omitted --> D[action.yml default: anthropic]
    D --> E[Experimental Anthropic provider used]
    C --> F[Analysis runs with Gemini]

    subgraph Docs
        G[ai-providers.md: Gemini default]
        H[configuration.md: ERODE_AI_PROVIDER default = gemini]
        I[github-actions.md table: ai-provider default = anthropic]
        J[action.yml: default = anthropic]
    end

    I -.matches.-> J
    G -.conflicts with.-> J
    H -.conflicts with.-> J
Loading

Reviews (1): Last reviewed commit: "docs: fix embedded architecture views" | Re-trigger Greptile

| `model-path` | Path to the model within the model repository | No | `.` |
| `model-ref` | Git ref (branch/tag) of the model repository | No | `main` |
| `model-format` | Architecture model format | No | `likec4` |
| `ai-provider` | AI provider (`gemini`, `openai`, or `anthropic`) | No | `anthropic` |
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Action default still anthropic while all examples show gemini

The ai-provider action input in action.yml still has default: 'anthropic', meaning any workflow that omits this field (following the table's "No / anthropic" row) silently uses the experimental Anthropic provider rather than Gemini. This contradicts both the application-level default documented in configuration.md (ERODE_AI_PROVIDERgemini) and the ai-providers.md page which calls Gemini the default provider. Adding explicit ai-provider: gemini to every example is a good workaround, but the root fix is updating action.yml's default: from 'anthropic' to 'gemini' so the action input and the env-var default agree.

## Bitbucket (experimental)

`ERODE_BITBUCKET_TOKEN` handles all operations. There is no separate model-repo token. If the token contains `:` (e.g. `username:app_password`), Erode uses HTTP Basic auth; otherwise it uses Bearer auth.
`ERODE_BITBUCKET_TOKEN` handles source pull request operations. For external model repositories, the Bitbucket Pipelines entrypoint accepts `ERODE_MODEL_REPO_TOKEN` and falls back to `ERODE_BITBUCKET_TOKEN` when it is not set. If the token contains `:` (e.g. `username:app_password`), Erode uses HTTP Basic auth; otherwise it uses Bearer auth.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 ERODE_MODEL_REPO_TOKEN for Bitbucket not in the configuration reference

This line introduces ERODE_MODEL_REPO_TOKEN as a new Bitbucket feature, but the Platform tokens table in configuration.md doesn't list it (it only lists ERODE_MODEL_REPO_PR_TOKEN for GitHub). Users consulting the configuration reference to set up Bitbucket model-repo separation would find no mention of this variable. Adding a row for ERODE_MODEL_REPO_TOKEN alongside the GitLab/Bitbucket entries would complete the reference.

@parse parse merged commit 265d4af into main May 13, 2026
9 checks passed
@parse parse deleted the docs/doc-sync-corrections branch May 13, 2026 07:45
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