Skip to content

docs: improve Configuration File page readability - #2690

Merged
rhatdan merged 4 commits into
containers:mainfrom
amkr6207:issue-111-docs-page-formatting
Apr 27, 2026
Merged

rhatdan merged 4 commits into
containers:mainfrom
amkr6207:issue-111-docs-page-formatting

Conversation

@amkr6207

@amkr6207 amkr6207 commented Apr 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Improves readability of the Configuration File docs page (ramalama.conf.5.md) by restructuring and clarifying option formatting.

What Changed

  • Improved formatting in the RAMALAMA TABLE section to make it easier to read.
  • Made option lines more consistent so settings are easier to scan.
  • Cleaned up long option/value text (including quantization values) for better readability.

Validation

make man-check
make lint
pytest -q test/unit/test_config_documentation.py
make -C docsite convert
cd docsite && npm run build

Tracking

Related Fedora Outreachy task: https://forge.fedoraproject.org/commops/interns/issues/111

After the fixes

cinnamon-2026-04-26T172405+0530.webm

@coderabbitai

coderabbitai Bot commented Apr 26, 2026 •

Copy link
Copy Markdown

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Man page docs/ramalama.conf.5.md substantially rewritten: clarifies config discovery and precedence (later files override earlier), consolidates .d snippet loading, updates RAMALAMA_CONFIG to load only the specified file, reformats TOML examples, and reorganizes the ramalama table into grouped option sections with condensed field descriptions.

Changes

Cohort / File(s) Summary
Configuration Manual Restructuring
docs/ramalama.conf.5.md
Full rewrite of the ramalama.conf(5) man page: clarifies search paths and merge order (later files override earlier), documents RAMALAMA_CONFIG semantics (only the specified file is loaded), consolidates .d snippet rules, modernizes TOML examples, and reorganizes the ramalama table into grouped option sections (core runtime, model conversion, container/engine, serving, RAG/storage, transport/HTTP, provider key override, benchmarks/storage flags, and user.no_missing_gpu_prompt). Many field descriptions condensed and reformatted.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • jhjaggars
  • olliewalsh
  • maxamillion
  • engelmi
  • mikebonnet
  • bmahabirbu
  • cgruver

Poem

🐰 I hopped through docs with nibbling cheer,

TOML lines trimmed, and paths made clear,
Snippets settled in tidy rows,
Keys aligned where the config grows,
A carrot-coded thank-you here! 🥕

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The pull request title directly and clearly summarizes the main change: improving the readability of the Configuration File documentation page.
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.
Description check ✅ Passed The PR description clearly describes restructuring and improving readability of the ramalama.conf.5.md documentation file, which directly aligns with the changes shown in the raw summary.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request refactors the ramalama.conf documentation to improve clarity and formatting. The feedback focuses on correcting TOML syntax by replacing array-of-tables brackets ([[ ]]) with standard table brackets ([ ]) to ensure compatibility with the internal parser. Additionally, it is recommended to quote string values like "warning" and maintain consistent formatting for configuration options like storage_folder.

Comment thread docs/ramalama.conf.5.md
Comment thread docs/ramalama.conf.5.md
Comment thread docs/ramalama.conf.5.md
Comment thread docs/ramalama.conf.5.md

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

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 the current code and only fix it if needed.

Inline comments:
In `@docs/ramalama.conf.5.md`:
- Around line 10-28: Update the docs/ramalama.conf.5.md configuration paths: in
the global paths table replace the malformed pipx entry
`$HOME/.local/.pipx/venvs/usr/share/ramalama/ramalama.conf` with the correct
pipx path `$HOME/.local/pipx/venvs/ramalama/share/ramalama/ramalama.conf`, and
in the user configuration table add the missing XDG_DATA_HOME entries
(`$XDG_DATA_HOME/ramalama/ramalama.conf` and
`$XDG_DATA_HOME/ramalama/ramalama.conf.d/*.conf` with a note that
`$XDG_DATA_HOME` defaults to `$HOME/.local/share`) so the docs match the code's
lookup behavior.
🪄 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: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 415914e2-be07-428b-8a69-f059b9376428

📥 Commits

Reviewing files that changed from the base of the PR and between 3122cbf and fd27367.

📒 Files selected for processing (1)
  • docs/ramalama.conf.5.md

Comment thread docs/ramalama.conf.5.md
Signed-off-by: Aman <amkr6207@gmail.com>
@amkr6207
amkr6207 force-pushed the issue-111-docs-page-formatting branch from fd27367 to 5eb31ee Compare April 26, 2026 08:20
@amkr6207
amkr6207 temporarily deployed to macos-installer April 26, 2026 08:20 — with GitHub Actions Inactive

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
docs/ramalama.conf.5.md (1)

61-62: Optional: Add subject to continuation sentences for grammatical completeness.

The static analysis tool flags two minor style issues where continuation sentences lack an explicit subject. While the meaning is perfectly clear in context, you could make them grammatically complete by adding "This" or "It":

  • Line 62: "This can also be set via RAMALAMA_API_KEY."
  • Line 248: "This can also be set via RAMALAMA_USER__NO_MISSING_GPU_PROMPT."

This is purely stylistic and doesn't affect comprehension.

✍️ Optional grammar fix
 **api_key**="": OpenAI-compatible API key.
-Can also be set via `RAMALAMA_API_KEY`.
+This can also be set via `RAMALAMA_API_KEY`.
 When `no_missing_gpu_prompt = true`, RamaLama suppresses the interactive prompt on macOS Podman VMs without GPU acceleration (for example, `applehv`).
-Can also be set via `RAMALAMA_USER__NO_MISSING_GPU_PROMPT`.
+This can also be set via `RAMALAMA_USER__NO_MISSING_GPU_PROMPT`.

Also applies to: 247-248

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/ramalama.conf.5.md` around lines 61 - 62, Update the two continuation
sentences to include an explicit subject for grammatical completeness: change
the sentence after **api_key**="" to "This can also be set via
`RAMALAMA_API_KEY`." and change the sentence near
`RAMALAMA_USER__NO_MISSING_GPU_PROMPT` to "This can also be set via
`RAMALAMA_USER__NO_MISSING_GPU_PROMPT`."; locate these by the `api_key` config
entry and the `RAMALAMA_USER__NO_MISSING_GPU_PROMPT` config entry in the
markdown and replace the trailing fragment sentences with the full "This can
also be set via ..." wording.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@docs/ramalama.conf.5.md`:
- Around line 61-62: Update the two continuation sentences to include an
explicit subject for grammatical completeness: change the sentence after
**api_key**="" to "This can also be set via `RAMALAMA_API_KEY`." and change the
sentence near `RAMALAMA_USER__NO_MISSING_GPU_PROMPT` to "This can also be set
via `RAMALAMA_USER__NO_MISSING_GPU_PROMPT`."; locate these by the `api_key`
config entry and the `RAMALAMA_USER__NO_MISSING_GPU_PROMPT` config entry in the
markdown and replace the trailing fragment sentences with the full "This can
also be set via ..." wording.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: c3b68eab-b626-4549-a5a0-94492c0725eb

📥 Commits

Reviewing files that changed from the base of the PR and between fd27367 and 5eb31ee.

📒 Files selected for processing (1)
  • docs/ramalama.conf.5.md

Signed-off-by: Aman <amkr6207@gmail.com>
@amkr6207
amkr6207 force-pushed the issue-111-docs-page-formatting branch from 5eb31ee to 1e7fc31 Compare April 26, 2026 08:23
@amkr6207
amkr6207 temporarily deployed to macos-installer April 26, 2026 08:23 — with GitHub Actions Inactive

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

♻️ Duplicate comments (1)
docs/ramalama.conf.5.md (1)

10-27: ⚠️ Potential issue | 🟠 Major

Configuration path tables still contain two mismatches with actual lookup behavior.

The global/user path docs still appear incorrect in two places:

  1. Line 18 has a malformed pipx path (.pipx + usr segment).
  2. The user path table omits the $XDG_DATA_HOME/ramalama/... locations (and their $HOME/.local/share/... fallback when unset), which are part of documented/expected discovery order.
Suggested doc fix
 | Path | Notes |
 | --- | --- |
 | `/usr/share/ramalama/ramalama.conf` | Linux |
 | `/usr/local/share/ramalama/ramalama.conf` | Linux |
 | `/etc/ramalama/ramalama.conf` | Linux |
 | `/etc/ramalama/ramalama.conf.d/*.conf` | Linux |
-| `$HOME/.local/.pipx/venvs/usr/share/ramalama/ramalama.conf` | pipx install on macOS |
+| `$HOME/.local/pipx/venvs/ramalama/share/ramalama/ramalama.conf` | pipx install |

 RamaLama reads the following user configuration paths:

 | Path | Notes |
 | --- | --- |
+| `$XDG_DATA_HOME/ramalama/ramalama.conf` | Preferred data path |
+| `$XDG_DATA_HOME/ramalama/ramalama.conf.d/*.conf` | Additional data snippets |
+| `$HOME/.local/share/ramalama/ramalama.conf` | Used when `$XDG_DATA_HOME` is unset |
+| `$HOME/.local/share/ramalama/ramalama.conf.d/*.conf` | Used when `$XDG_DATA_HOME` is unset |
 | `$XDG_CONFIG_HOME/ramalama/ramalama.conf` | Preferred user path |
 | `$XDG_CONFIG_HOME/ramalama/ramalama.conf.d/*.conf` | Additional user snippets |
 | `$HOME/.config/ramalama/ramalama.conf` | Used when `$XDG_CONFIG_HOME` is unset |
 | `$HOME/.config/ramalama/ramalama.conf.d/*.conf` | Used when `$XDG_CONFIG_HOME` is unset |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/ramalama.conf.5.md` around lines 10 - 27, The docs list
incorrect/missing config discovery entries: fix the malformed pipx global path
by replacing `$HOME/.local/.pipx/venvs/usr/share/ramalama/ramalama.conf` with
the correct pipx-installed path (remove the spurious `.pipx`/extra `usr`
segment) and update the user configuration table to include the data-directory
discovery entries by adding `$XDG_DATA_HOME/ramalama/ramalama.conf` and
`$XDG_DATA_HOME/ramalama/ramalama.conf.d/*.conf` plus their fallback
`$HOME/.local/share/ramalama/ramalama.conf` and
`$HOME/.local/share/ramalama/ramalama.conf.d/*.conf` so the documented lookup
order matches the actual lookup behavior for `$XDG_CONFIG_HOME` vs
`$XDG_DATA_HOME`.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@docs/ramalama.conf.5.md`:
- Around line 10-27: The docs list incorrect/missing config discovery entries:
fix the malformed pipx global path by replacing
`$HOME/.local/.pipx/venvs/usr/share/ramalama/ramalama.conf` with the correct
pipx-installed path (remove the spurious `.pipx`/extra `usr` segment) and update
the user configuration table to include the data-directory discovery entries by
adding `$XDG_DATA_HOME/ramalama/ramalama.conf` and
`$XDG_DATA_HOME/ramalama/ramalama.conf.d/*.conf` plus their fallback
`$HOME/.local/share/ramalama/ramalama.conf` and
`$HOME/.local/share/ramalama/ramalama.conf.d/*.conf` so the documented lookup
order matches the actual lookup behavior for `$XDG_CONFIG_HOME` vs
`$XDG_DATA_HOME`.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 9671bb81-4bad-4909-9a09-e6099b3deb07

📥 Commits

Reviewing files that changed from the base of the PR and between 5eb31ee and 1e7fc31.

📒 Files selected for processing (1)
  • docs/ramalama.conf.5.md

Signed-off-by: Aman <amkr6207@gmail.com>
@amkr6207
amkr6207 temporarily deployed to macos-installer April 26, 2026 11:14 — with GitHub Actions Inactive

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/ramalama.conf.5.md`:
- Around line 65-67: The env-var override note for the **api_key** entry is a
sentence fragment; update the text so it is a complete sentence (e.g., "This can
also be set via the RAMALAMA_API_KEY environment variable.") and apply the same
change to the other occurrence referenced (lines 251-252) so both override notes
read as full sentences; locate and edit the **api_key** documentation entries
and replace the fragment "Can also be set via `RAMALAMA_API_KEY`" with a full
sentence mentioning the RAMALAMA_API_KEY environment variable.
- Around line 163-165: The docs and example config are inconsistent about
quoting numeric config values: config.py defines port and temp as strings (port:
str, temp: str) so update the documentation (docs/ramalama.conf.5.md) and the
example config (docs/ramalama.conf) to use a consistent TOML format by quoting
both values (e.g., port = "8080", temp = "0.8") to match the type annotations in
config.py (port, temp) and avoid user confusion; ensure the prose describing the
port range still references the quoted form.
🪄 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: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: a239ed9f-6853-44c5-8e6d-ace31f722ba4

📥 Commits

Reviewing files that changed from the base of the PR and between 1e7fc31 and 97d74a4.

📒 Files selected for processing (1)
  • docs/ramalama.conf.5.md

Comment thread docs/ramalama.conf.5.md
Comment thread docs/ramalama.conf.5.md
Signed-off-by: Aman <amkr6207@gmail.com>
@amkr6207
amkr6207 temporarily deployed to macos-installer April 26, 2026 11:35 — with GitHub Actions Inactive

@rhatdan rhatdan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM
Thanks @amkr6207

@rhatdan
rhatdan merged commit 3a402e5 into containers:main Apr 27, 2026
35 of 36 checks passed
@amkr6207
amkr6207 deleted the issue-111-docs-page-formatting branch April 27, 2026 12:47
@amkr6207

Copy link
Copy Markdown
Contributor Author

Hi @dominikkawka, @cybette,

Quick update on Fedora interns issue:
https://forge.fedoraproject.org/commops/interns/issues/111

I had been reviewing the existing PR (#2605) since April 8 (when it was opened) and shared multiple suggestions, but the issue remained unresolved. I first tried to help on the existing PR before opening a new one. To unblock progress, I submitted a fix PR on April 26, which has now been merged:

#2690

Thanks!

This branch was previously deployed

1 inactive deployment
macos-installer — 0609c664 Deployed Apr 26, 2026 by amkr6207 via Build macOS installer #1215
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.

2 participants