Skip to content

Cut component docs before markup; call out PlantUML in the README - #69

Merged
Zir0-93 merged 3 commits into
masterfrom
fix/doc-text-truncation-readme
Sep 10, 2026
Merged

Zir0-93 merged 3 commits into
masterfrom
fix/doc-text-truncation-readme

Conversation

@Zir0-93

@Zir0-93 Zir0-93 commented Sep 10, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Fix: component documentation was truncated after the ** bold markers and <back:…> inline-code tags were added, so a long javadoc could be cut inside a </back> tag. PlantUML then printed the broken markup literally (ecchronos SchemaRefresher rendered as **the scheduler on any managed node; the RepairScheduler</...). The cut now happens on the plain text, at a word boundary, in a new TruncatedText step of StriffComponentDocText; an inline-code span it passes through is closed, and the 800-character budget counts visible characters.
  • README: calls out PlantUML near the top and bumps the dependency snippet to 4.3.0. The sample image is unchanged.

Test plan

  • mvn clean package assembly:single (the CI command): 209 tests pass (7 skipped), 0 Checkstyle violations
  • New TextTest cases: a long doc is cut with balanced markup (every line opens and closes **, <back: and </back> counts match, visible length within budget), and a cut through an inline-code span closes the span
  • Rendered ecchronos #1786 with 4.3.0 (stray ** and </... in SchemaRefresher) and with this branch (clean cut at "…A table is either...")

🤖 Generated with Claude Code

https://claude.ai/code/session_01CxxJyB3tHUxXPxGhnvPjgy

Zir0-93 and others added 3 commits September 10, 2026 17:43
A component's documentation was truncated after the bold markers and
inline-code background tags had been added, so a long javadoc could be cut
inside a </back> tag after a line's opening **. PlantUML then printed both
literally; ecchronos's SchemaRefresher rendered as
"**the scheduler on any managed node; the RepairScheduler</...".

The cut now happens on the plain text, at a word boundary, inside
StriffComponentDocText (TruncatedText), before any markup exists. An
inline-code span the cut passes through is closed instead of left open,
and the 800-character budget counts visible characters only.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CxxJyB3tHUxXPxGhnvPjgy
Replaces the old JUnit example with a striff of Ericsson/ecchronos #1786
(NodeWorker handing its repair scheduling to the new SchemaRefresher),
rendered by this branch with the default layout. Adds a paragraph near the
top saying every striff is a PlantUML class diagram, and bumps the
dependency snippet to 4.3.0.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CxxJyB3tHUxXPxGhnvPjgy
Restores the original sample striff image and drops the caption written for
the replacement. The PlantUML paragraph and the 4.3.0 dependency snippet stay.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CxxJyB3tHUxXPxGhnvPjgy
@Zir0-93 Zir0-93 changed the title Cut component docs before markup; refresh the README diagram Cut component docs before markup; call out PlantUML in the README Sep 10, 2026
@Zir0-93
Zir0-93 merged commit c13651a into master Sep 10, 2026
5 checks passed
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