← Back to issue list

`charmcraft init` tree of files and directories styling issue

View original Github issue

Metadata

Project
charmcraft
Number
#2344
Type
issue
State
closed
Author
migueldivo
Labels
—
Created
Updated
Closed

Current evaluation

Fixed and deployed the charmcraft init file-tree documentation in merged PR #2347 (commit a8da011a), improving tree styling and preventing description line breaks.

Resolution: closed resolved

Reason: PR #2347 corrected the init command docstring tree rendering and whitespace handling in commit a8da011a. The maintainer confirmed the fix was deployed before closing the issue.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### Request type Fix ### What needs to get done The following tree diagram of files and directories created using `charmcraft init` requires some CSS to make it readable. Currently, there is not styling applied to the block therefore a user would not be able to recognise that this is supposed to be a tree of files. ![Image](https://github.com/user-attachments/assets/daa8f68b-2462-4dd9-b612-fded72dcf06e) With appropriate styling, the block can display the tree in a recognisable way ![Image](https://github.com/user-attachments/assets/84c501e4-a52f-496e-8c1b-7300463368c2) Applying `white-space: pre` provides a temporary solution, but as you can see in the images, the description causes line breaks. This needs to be addressed as well. ![Image](https://github.com/user-attachments/assets/82428a21-d81e-40ae-ba3a-871c152da7f6) ### Documentation location https://canonical-charmcraft.readthedocs-hosted.com/latest/reference/commands/init/#ref-commands-init ### Additional information UX Issue

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed and deployed the charmcraft init file-tree documentation in merged PR #2347 (commit a8da011a), improving tree styling and preventing description line breaks.
stealth/space-bunny-alpha — closed resolved Fixed charmcraft init’s file-tree documentation in PR #2347, including whitespace and line-break handling; the fix was deployed and the issue closed.
qwen3.6-35b-a3b-mtp-q6 — — CSS styling for the charmcraft init file tree output was fixed and deployed via PR #2347. Adjustments resolve formatting and line break issues, ensuring the directory structure displays correctly. The issue is closed.
qwen/qwen3.6-35b-a3b — — Fixed CSS styling for the charmcraft init file tree to ensure proper readability. The resolution was merged via PR 2347 and deployed, closing the issue.
qwen/qwen3.6-35b-a3b — — The charmcraft init file tree lacked CSS styling, causing unreadable output. A fix was implemented via pull request 2347 and deployed, resolving the styling issue and closing the report.
qwen3.6-35b-a3b-mtp-q6 — — Fixed and deployed via PR 2347. Applied CSS styling to properly format the charmcraft init file tree output, resolving the readability issue.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/charmcraft#2347 (confidence 100%)

    Merged as commit a8da011a with the title "docs: fix tree in init command docstring".

Related issues

Issue Project State Summary Similarity
#2347 docs: fix tree in init command docstring charmcraft merged Merged in canonical/charmcraft#2347 (a8da011a), fixing Sphinx rendering of the init command file tree and removing a dead Juju link; 80-column line length remains unchanged.
79%
#471 config: add charm part to documentation (CRAFT-356) charmcraft merged Merged PR #471 via commit e0b18661, documenting the charm part in the configuration schema for CRAFT-356.
74%
#2299 docs: fix formatting issues charmcraft merged Merged docs formatting fixes for local documentation builds in charmcraft#2299 via commit 5ffb80fe; two files changed (+3/-1).
72%
#91 First pass at 'charmcraft init' charmcraft merged Merged PR #91 delivered the first non-interactive charmcraft init scaffolding implementation; README improvements, extra options, and prompts were deferred (commit 0ebd9f87).
72%
#2748 docs: improve charm naming docs, with links to detailed guidance charmcraft merged Docs PR #2748 merged (commit 0389aeb4): rewrote charm naming guidance in the charmcraft.yaml reference and manage-charms how-to, replacing inline best-practice notes with links to the Ops docs. Fixes #2582; relied on canonical/operator#2610.
71%
#188 Small text cleanups for README and charmcraft help charmcraft merged Merged README and charmcraft help-text cleanups in ffc44697, updating 13 files after approval by two reviewers.
70%