Skip to content

Commit a98a79a

Browse files
kylehowellsclaude
andcommitted
Fix DocC @DisplayName syntax - must be inside @metadata block
The @DisplayName directive was incorrectly placed before the title. It needs to be inside a @metadata block after the title. Also fixed toText() doc link to include new parameters. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent da37026 commit a98a79a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Sources/swift-justhtml/Documentation.docc/Examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ swift run htmltool query "a[href]" page.html
2626

2727
**APIs demonstrated:**
2828
- ``JustHTML`` - Parsing
29-
- ``Node/toText()`` - Text extraction
29+
- ``Node/toText(separator:strip:collapseWhitespace:)`` - Text extraction
3030
- ``Node/toHTML(pretty:indentSize:)`` - Serialization
3131
- ``Node/toMarkdown()`` - Markdown conversion
3232
- ``JustHTML/query(_:)`` - CSS selectors

Sources/swift-justhtml/Documentation.docc/justhtml.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
@DisplayName("Swift-JustHTML")
2-
31
# ``justhtml``
42

3+
@Metadata {
4+
@DisplayName("Swift-JustHTML")
5+
}
6+
57
A dependency-free HTML5 parser for Swift, following the WHATWG HTML parsing specification.
68

79
## Overview

0 commit comments

Comments
 (0)