Skip to content

[doc] Use Markdown admonitions - #7112

Merged
UncleOwen merged 2 commits into
pmd:mainfrom
zbynek:gfm
Oct 4, 2026
Merged

UncleOwen merged 2 commits into
pmd:mainfrom
zbynek:gfm

Conversation

@zbynek

@zbynek zbynek commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Describe the PR

Replaces note.html / tip.html / important.html / warning.html templates with GitHub-flavored Markdown admonitions.
Deletes some more unused includes and layouts.

Related issues

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by github actions)
  • Added (in-code) documentation (if needed)

@zbynek
zbynek force-pushed the gfm branch 2 times, most recently from f219b6b to 9741970 Compare September 25, 2026 15:59
@pmd-actions-helper

pmd-actions-helper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Documentation Preview

Compared to main:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
There are 0 changed duplications, 0 new duplications and 0 removed duplications.
There are 0 changed CPD errors, 0 new CPD errors and 0 removed CPD errors.

Regression Tester Report

(comment created at 2026-09-26 07:10:44+00:00 for 73526ac)

@zbynek

zbynek commented Sep 25, 2026

Copy link
Copy Markdown
Contributor Author

We could switch to gfm-admonitions, yes. That looks like a good idea. When doing this, I wouldn't deprecate the bootstrap solution for these notes, but just refactor the documentation that we consistently only use the new way (there shouldn't be two ways in the docs to the same...).

@adangel I replaced the includes based on Bootstrap's alert class, but not callout. Maybe callouts with the warning type should be replaced too, and only the default callouts should stay? (I don't think the callouts on this page fit in either info/warning/... category: https://docs.pmd-code.org/pmd-doc-7.28.0/pmd_rules_java.html ).

@UncleOwen

Copy link
Copy Markdown
Member

@zbynek

zbynek commented Sep 25, 2026

Copy link
Copy Markdown
Contributor Author

@UncleOwen you're right, that one renders differently on the webpage and in IntelliJ. GitHub itself agrees with this Jekyll extension and renders it as normal quote.

Luckily there are only 2 admonitions that are nested in a list, so this sould be easy to resolve somehow.

@zbynek

zbynek commented Oct 4, 2026

Copy link
Copy Markdown
Contributor Author

@UncleOwen do you think my Unicode workaround in the last commit is acceptable? Alternatively we could skip the 🛈 and keep it as Note: only. Or rewrite the steps to be headings (e.g. ### Step 3: Merge the main branch) instead of numbered list items, then we can use the admonitions consistently.

@UncleOwen

Copy link
Copy Markdown
Member

Yes, I think that's fine.

@UncleOwen UncleOwen added this to the 7.29.0 milestone Oct 4, 2026
@UncleOwen
UncleOwen merged commit a6c5b81 into pmd:main Oct 4, 2026
13 checks passed
@zbynek
zbynek requested a review from adangel October 4, 2026 17:40
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.

[doc] Add jekyll-gfm-admonitions

2 participants