Skip to content

Update some docs for 0.2#879

Open
eemcmullan wants to merge 1 commit into
konveyor:mainfrom
eemcmullan:update-docs
Open

Update some docs for 0.2#879
eemcmullan wants to merge 1 commit into
konveyor:mainfrom
eemcmullan:update-docs

Conversation

@eemcmullan

@eemcmullan eemcmullan commented Sep 26, 2025

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Documentation
    • Overhauled configuration docs: simplified setup, clarified Kai settings, and added subsections for Auto Accept on Save, Analyze on Save, Agent Mode, Cache/Trace dirs, Trace Enabled, Demo Mode, Solution Server, and Debug: Webview.
    • Revamped Getting Started: restructured flow, added detailed guidance for Solution Server, Agent Mode, and Analysis settings with examples.
    • Rewrote Custom Ruleset guide for clearer steps, structure, and examples.
    • Updated Debugging: new “Helpful logs” section and command-palette access.
    • Demo Mode doc: updated cache key (konveyor.kai.cacheDir) and streamlined instructions.

Signed-off-by: Emily McMullan <emcmulla@redhat.com>
@coderabbitai

coderabbitai Bot commented Sep 26, 2025

Copy link
Copy Markdown
Contributor

Walkthrough

This PR updates multiple documentation pages: restructures Getting Started, overhauls Configuration with new settings (Solution Server, Agent Mode, logging/tracing), revises Debug logs guidance, updates Demo Mode cache key and instructions, and performs extensive editorial rewrites to the Custom Rules Integration guide.

Changes

Cohort / File(s) Summary of changes
Configuration overhaul
docs/configuration.md
Replaces initial setup flow with a reference to Getting Started; reorganizes advanced settings; adds/renames sections for Solution Server, Agent Mode, tracing, cache/trace dirs, analyze-on-save, auto-accept; removes legacy settings descriptions; updates wording for log level and analyzer path.
Getting Started restructure
docs/getting_started.md
Reorders and renames sections; adds detailed subsections for Kai/Analysis settings, Solution Server, Agent Mode; updates workflow and examples (including settings.json snippet); de-emphasizes deprecated options; standardizes titles and narrative.
Custom Rules guide editorial update
docs/custom_ruleset.md
Major editorial pass: reflowed text, clarified steps and UI references, updated examples and YAML context, reorganized sections and headings, revised action guidance; functional steps unchanged.
Debug logs guidance refresh
docs/debug.md
Introduces “Helpful logs” with new log file references and access instructions; consolidates analyzer/extension logs; updates failure note to reference the new section.
Demo Mode updates
docs/demo_mode.md
Changes cache key to konveyor.kai.cacheDir; removes images; adds textual navigation hints; streamlines demo mode selection instructions.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor User
  participant IDE as IDE Extension
  participant Analyzer
  participant Soln as Solution Server
  participant Model as GenAI Provider

  User->>IDE: Configure Kai & Analysis settings
  User->>IDE: Start RPC Server / Run Analysis
  IDE->>Analyzer: Invoke analysis (profiles, labels)
  Analyzer-->>IDE: Analysis results
  alt Agent Mode enabled
    IDE->>Soln: Send context & issues
    Soln->>Model: Prompt with traces (optional)
    Model-->>Soln: Proposed fixes/solutions
    Soln-->>IDE: Fix suggestions
  end
  IDE-->>User: Review diffs / auto-accept on save (optional)
  Note over IDE,Soln: Tracing/logging to cache/trace dirs if enabled
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested labels

solution-server

Suggested reviewers

  • jwmatthews
  • sshveta
  • fabianvf

Poem

I twitch my ears at settings new,
A Solution Server hops in view.
With traces neat and agents bright,
I nibble logs by moonlit night.
Flip a switch—demo mode delight—
Then bound through fixes, left and right.
Thump-thump: analysis done just right! 🐇✨

Pre-merge checks and finishing touches

❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title Check ❓ Inconclusive The title “Update some docs for 0.2” is vague and does not specify which documentation files or sections were updated, making it difficult to understand the main scope of the changes at a glance. Please revise the title to clearly summarize the scope of the updates, for example “Revise Kai 0.2 documentation: configuration, custom rulesets, debug, demo mode, and getting started guides.”
✅ Passed checks (2 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 changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 3

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
docs/debug.md (1)

24-27: Update the example log filenames

We now steer readers to analysis_<>.json, analyzer.log, and extension.log at the top of the page, but this bullet still references the retired kai-analyzer-server.log / kai-rpc-server.log. Please align the example filenames so users look in the right place for diagnostics.

- - Logs: Attach any relevant log files (e.g., `kai-analyzer-server.log` or `kai-rpc-server.log`) to help us identify the issue.
+ - Logs: Attach any relevant log files (e.g., `analyzer.log`, `extension.log`, or `analysis_<timestamp>.json`) to help us identify the issue.
🧹 Nitpick comments (3)
docs/custom_ruleset.md (2)

36-37: Fix the “Analysis” typo

“Konveyor Aanlysis View” should read “Konveyor Analysis View” for accuracy and polish. A quick correction prevents confusion in the UI instructions.

-Now you can return to the `Konveyor Aanlysis View` page and start the server.
+Now you can return to the `Konveyor Analysis View` page and start the server.

47-58: Correct heading spelling and stray quotes in the YAML example

The heading should be “Determining rules”, and the YAML snippets include stray closing quotes/tabs that will produce odd copy/paste results. Cleaning these up keeps the guide professional and copy-ready.

-### Determing rules
+### Determining rules
@@
-  This artifact was just an aggregator of some of the Kubernetes model artifacts and had no specific purpose. It is no longer published, the io.fabric8:kubernetes-client-api or io.fabric8:kubernetes-openshift-uberjar artifacts should be used instead."
+  This artifact was just an aggregator of some of the Kubernetes model artifacts and had no specific purpose. It is no longer published, so use the io.fabric8:kubernetes-client-api or io.fabric8:kubernetes-openshift-uberjar artifacts instead.
@@
-  	This artifact was just an aggregator of some of the Kubernetes model artifacts and had no specific purpose. It is no longer published, the io.fabric8:kubernetes-client-api or io.fabric8:kubernetes-openshift-uberjar artifacts should be used instead."
+    This artifact was just an aggregator of some of the Kubernetes model artifacts and had no specific purpose. It is no longer published, so use the io.fabric8:kubernetes-client-api or io.fabric8:kubernetes-openshift-uberjar artifacts instead.
docs/configuration.md (1)

58-60: Fix typo in Debug setting description

“handilng” should be “handling” to keep the setting description clear.

-#### **Debug: Webview**
-
-Debug logging for webview message handilng
+#### **Debug: Webview**
+
+Debug logging for webview message handling
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 39b3ca8 and 246e6b6.

⛔ Files ignored due to path filters (16)
  • docs/images/advanced_config.png is excluded by !**/*.png
  • docs/images/custom_rules/add_custom_ruleset.png is excluded by !**/*.png
  • docs/images/custom_rules/running_server.png is excluded by !**/*.png
  • docs/images/custom_rules/search_custom_rules.png is excluded by !**/*.png
  • docs/images/custom_rules/stopped_server.png is excluded by !**/*.png
  • docs/images/demo_mode/kai_demo_mode_search.png is excluded by !**/*.png
  • docs/images/open_settings.png is excluded by !**/*.png
  • docs/images/resolve-issues.png is excluded by !**/*.png
  • docs/images/setup-konveyor-2.png is excluded by !**/*.png
  • docs/images/setup-konveyor.png is excluded by !**/*.png
  • docs/images/start-rpc-server.png is excluded by !**/*.png
  • docs/images/start-server.png is excluded by !**/*.png
  • docs/images/walkthrough-1.png is excluded by !**/*.png
  • docs/images/walkthrough-2.png is excluded by !**/*.png
  • docs/images/walkthrough-3.png is excluded by !**/*.png
  • docs/images/walkthrough-4.png is excluded by !**/*.png
📒 Files selected for processing (5)
  • docs/configuration.md (2 hunks)
  • docs/custom_ruleset.md (5 hunks)
  • docs/debug.md (2 hunks)
  • docs/demo_mode.md (1 hunks)
  • docs/getting_started.md (4 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.18.1)
docs/configuration.md

35-35: Link text should be descriptive

(MD059, descriptive-link-text)


52-52: Link text should be descriptive

(MD059, descriptive-link-text)


56-56: Link text should be descriptive

(MD059, descriptive-link-text)

docs/custom_ruleset.md

21-21: Link text should be descriptive

(MD059, descriptive-link-text)


87-87: Blank line inside blockquote

(MD028, no-blanks-blockquote)


103-103: Hard tabs
Column: 3

(MD010, no-hard-tabs)


104-104: Hard tabs
Column: 3

(MD010, no-hard-tabs)

docs/getting_started.md

17-17: Heading levels should only increment by one level at a time
Expected: h3; Actual: h4

(MD001, heading-increment)


62-62: Link text should be descriptive

(MD059, descriptive-link-text)

Comment thread docs/demo_mode.md
![image](images/demo_mode/cache_dir_json_settings.png)

The key to use is `conveyor.kai.cacheDir`, and the value is an absolute path to a location on your hard drive. In the example, I am putting the cache to `/Users/shurley/repos/kai/cache,` but you can change this to wherever you would like to store it.
The key to use is `konveyor.kai.cacheDir`, and the value is an absolute path to a location on your hard drive. In the example, I am putting the cache to `/Users/shurley/repos/kai/cache,` but you can change this to wherever you would like to store it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Fix the cache path example punctuation.

The inline example path now includes a trailing comma inside the backticks (/Users/shurley/repos/kai/cache,), which makes the copied path invalid. Please move the comma outside the code span so users don’t accidentally paste an incorrect path.

Apply this diff to correct the example:

-The key to use is `konveyor.kai.cacheDir`, and the value is an absolute path to a location on your hard drive. In the example, I am putting the cache to `/Users/shurley/repos/kai/cache,` but you can change this to wherever you would like to store it.
+The key to use is `konveyor.kai.cacheDir`, and the value is an absolute path to a location on your hard drive. In the example, I am putting the cache to `/Users/shurley/repos/kai/cache`, but you can change this to wherever you would like to store it.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
The key to use is `konveyor.kai.cacheDir`, and the value is an absolute path to a location on your hard drive. In the example, I am putting the cache to `/Users/shurley/repos/kai/cache,` but you can change this to wherever you would like to store it.
The key to use is `konveyor.kai.cacheDir`, and the value is an absolute path to a location on your hard drive. In the example, I am putting the cache to `/Users/shurley/repos/kai/cache`, but you can change this to wherever you would like to store it.
🤖 Prompt for AI Agents
In docs/demo_mode.md around line 32, the inline example path includes a trailing
comma inside the backticks (`/Users/shurley/repos/kai/cache,`) which makes the
copied path invalid; edit the line to move the comma outside the code span so
the backticked path is `/Users/shurley/repos/kai/cache` and the comma follows
after the closing backtick.

Comment thread docs/getting_started.md
## Overview

Before you install Kai, you must:
#### Before you install Kai, you must:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Adjust heading levels to satisfy markdown linting.

Both “Before you install Kai, you must:” and “Running Kai consists of:” were promoted to ####, but the previous heading level is ##, so markdownlint (MD001) requires ###. Bumping them back up by one level keeps the hierarchy valid.

Apply this diff to fix the heading levels:

-#### Before you install Kai, you must:
+### Before you install Kai, you must:
@@
-#### Running Kai consists of:
+### Running Kai consists of:

Based on learnings

Also applies to: 30-30

🧰 Tools
🪛 markdownlint-cli2 (0.18.1)

17-17: Heading levels should only increment by one level at a time
Expected: h3; Actual: h4

(MD001, heading-increment)

🤖 Prompt for AI Agents
In docs/getting_started.md around lines 17 and 30, the headings "Before you
install Kai, you must:" and "Running Kai consists of:" are currently at level
#### but the previous heading is ##; change those two headings down one level to
### to satisfy markdownlint MD001 and restore proper heading hierarchy.

Comment thread docs/getting_started.md

- The **solution server**. See [MCP Solution Server setup](../kai_mcp_solution_server/README.md)
- **Agent mode** for automated analysis with manual review
- **Demo mode** to use cached responses from the LLM. More details can be found [here](demo_mode.md).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Use descriptive link text for demo mode reference.

Markdownlint (MD059) flags “here” as non-descriptive link text. Rename the link to reflect the destination so accessibility and lint checks pass.

Apply this diff to improve the link text:

-- **Demo mode** to use cached responses from the LLM. More details can be found [here](demo_mode.md).
+- **Demo mode** to use cached responses from the LLM. More details can be found in the [Demo Mode guide](demo_mode.md).

Based on learnings

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- **Demo mode** to use cached responses from the LLM. More details can be found [here](demo_mode.md).
- **Demo mode** to use cached responses from the LLM. More details can be found in the [Demo Mode guide](demo_mode.md).
🧰 Tools
🪛 markdownlint-cli2 (0.18.1)

62-62: Link text should be descriptive

(MD059, descriptive-link-text)

🤖 Prompt for AI Agents
In docs/getting_started.md around line 62, the link text "here" is
non-descriptive and triggers markdownlint MD059; replace the generic "here" link
with descriptive text like "demo mode documentation" (or similar) so the link
reads "**Demo mode** to use cached responses from the LLM. More details can be
found demo mode documentation." and update the link target to (demo_mode.md)
accordingly to satisfy accessibility and lint checks.

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