Repository navigation
Conversation
Add a premium-only chapter describing the git-license-metrics tool, with screenshots of the Windows GUI. In the PDF, keep figures where they are placed in the text, and widen the number columns in the table of contents so that numbers such as "20" and "A.100" do not run into the titles. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
LGTM, though I wonder if it's necessary to have screenshots? Just a few sentences with instructions would take up less space without being less clear. |
dmcppcheck
left a comment
There was a problem hiding this comment.
AI review
This PR only changes documentation; no code changes. I found two new problems:
- The screenshots will be missing from the premium HTML manual that CI uploads. These are the first images that
manual.mduses.build-html.shdoesn't embed resources, so the HTML points toimages/*.png. But.github/workflows/buildman.ymlcopies onlyman/*.pdf man/*.html man/manual.csstooutput/, so the uploadedmanual-premium.htmlshows three broken images. The PDF is not affected because LaTeX embeds the images. The fix is to either copyman/imagesin the workflow or add--embed-resourcestobuild-html.sh. - The instructions contradict each other. The new chapter suggests
git clone --bare --filter=blob:none URLas an alternative. A few lines later it says that the selected folder "should contain the.gitfolder", but a bare clone has no.gitfolder; the repository data is at the top level of the folder. A user who followed the bare-clone advice won't find the folder they're told to look for.
The LaTeX changes look right: the documents use documentclass: report, where \l@chapter contains \setlength\@tempdima{1.5em}, so the \patchcmd matches.
Comments
| # | Comment | By | Where | Status |
|---|---|---|---|---|
| 1 | Asks whether screenshots are needed instead of a few sentences | @ludviggunne | general | |
| 2 | Images are missing from the premium HTML manual that CI uploads | AI review | man/manual.md:1646 |
🆕 New |
| 3 | The .git folder advice contradicts the bare clone suggested above |
AI review | man/manual.md:1649 |
🆕 New |
@danmar, please fix, resolve or reply to the open and new comments: #1, #2, #3.
Testing
- I didn't build cppcheck or testrunner, because the PR only touches
man/(Markdown, LaTeX style and PNG images). - I couldn't build the manuals: there is no pandoc, xelatex or TeX Live in the container and no network to install them. So the PDF layout (figures kept in place, wider TOC number columns) is untested.
- I checked by reading the files instead:
manual.mdfront matter setsdocumentclass: report, so the patched\l@chapterexists and the\patchcmdpattern matches it.- The three new PNG files are valid images (512x352, 924x478, 802x632).
grep -n "images/" man/manual.mdfinds only the three new references, so this is the first time the manual uses images.build-html.shrunspandoc ... -s --toc --css manual.csswithout--embed-resources, so the HTML links to the files inimages/..github/workflows/buildman.yml:39runscp man/*.pdf man/*.html man/manual.css output/, which leaves outman/images/. The uploadedmanual-premium.htmltherefore has broken images.
Automated review of aee1e3a by Claude. The pull request was built and tested locally.
|
|
||
| Start the tool: | ||
|
|
||
|  |
There was a problem hiding this comment.
AI review
These are the first images in manual.md. build-html.sh doesn't pass --embed-resources, so manual-premium.html links to images/git-license-metrics-*.png. But .github/workflows/buildman.yml copies only man/*.pdf man/*.html man/manual.css to output/, so the uploaded HTML shows three broken images. The PDF is fine.
Fix: either copy man/images in the workflow, or add --embed-resources to build-html.sh.
|  | ||
|
|
||
| Click on "Select repository" and select the folder that contains your project code. The folder | ||
| you choose should contain the `.git` folder. |
There was a problem hiding this comment.
AI review
The previous section suggests git clone --bare --filter=blob:none URL. A bare clone has no .git folder: the repository data (HEAD, objects/, ...) is at the top level of the folder. So "The folder you choose should contain the .git folder" is wrong for users who followed that advice. Mention the bare-clone case here, for example: "(for a bare clone, select the cloned folder itself)".
Add a premium-only chapter describing the git-license-metrics tool, with screenshots of the Windows GUI.
In the PDF, keep figures where they are placed in the text, and widen the number columns in the table of contents so that numbers such as "20" and "A.100" do not run into the titles.