Skip to content

doc: fix code spans that render with literal backticks - #128

Open
jll63 wants to merge 1 commit into
boostorg:developfrom
jll63:fix/backtick-plurals
Open

jll63 wants to merge 1 commit into
boostorg:developfrom
jll63:fix/backtick-plurals

Conversation

@jll63

@jll63 jll63 commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

(Written by Claude Code, on behalf of @jll63.)

The rendered reference had code spans that came out with literal backticks, sometimes taking the formatting of the next span with them.

  • A code span followed by a letter: `type_id`s, `virtual_ptr`s, `dlopen`s in vptr_map, vptr_vector, minimal_perfect_hash, std_rtti::type_index, and operator== / operator!=. In those two operators, nullptr also lost its formatting. MrDocs passes the span to AsciiDoc as is, where a constrained span cannot end inside a word. Reworded: "type ids", "virtual_ptr objects", "uses dlopen to load".
  • Found by the same scan of the rendered site:
    • A missing opening backtick (IsPolymorphic).
    • Two missing closing ones (virtual_ptr's converting constructor and assignment).
    • Three spans split across two //! lines (boost_openmethod_registry, virtual_any, the intrusive_ptr virtual_traits).

CLAUDE.md documents the plural trap among the doc-comment markup traps, with a grep to run before building. A possessive is safe in a doc comment, because MrDocs writes the apostrophe as '.

Verified by building the docs: no rendered page has a backtick outside a code block, and no MRDOCS leak. The changes are comment-only, and clang-format leaves them unchanged.

🤖 Generated with Claude Code

A code span followed by a letter - `type_id`s, `virtual_ptr`s, `dlopen`s - is
passed by MrDocs to AsciiDoc as is, where a constrained span cannot end inside
a word: the backticks come through literally, and the next code span in the
paragraph loses its formatting (`nullptr` in operator== and operator!=).
Reworded: "type ids", "`virtual_ptr` objects", "uses `dlopen` to load".

The same scan of the rendered reference found three other broken spans, fixed
too: a missing opening backtick (IsPolymorphic), two missing closing ones
(virtual_ptr's converting constructor and assignment), and three spans split
across two `//!` lines (boost_openmethod_registry, virtual_any, the
intrusive_ptr virtual_traits).

CLAUDE.md: document the plural trap among the doc-comment markup traps, with a
grep. A possessive is safe in a doc comment: MrDocs writes the apostrophe as
'.

After the change, no rendered page has a backtick outside a code block.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cppalliance-bot

Copy link
Copy Markdown

An automated preview of the documentation is available at https://128.openmethod.prtest3.cppalliance.org/libs/openmethod/doc/html/index.html

If more commits are pushed to the pull request, the docs will rebuild at the same URL.

2026-10-06 23:18:25 UTC

@codecov

codecov Bot commented Oct 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.34%. Comparing base (f093df7) to head (ed30c40).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #128   +/-   ##
========================================
  Coverage    92.34%   92.34%           
========================================
  Files           27       27           
  Lines         2234     2234           
  Branches       679      679           
========================================
  Hits          2063     2063           
  Misses         112      112           
  Partials        59       59           
Files with missing lines Coverage Δ
include/boost/openmethod/core.hpp 91.80% <ø> (ø)
...e/boost/openmethod/interop/boost_intrusive_ptr.hpp 94.44% <ø> (ø)
include/boost/openmethod/interop/virtual_any.hpp 100.00% <ø> (ø)
...boost/openmethod/policies/minimal_perfect_hash.hpp 87.58% <ø> (ø)
include/boost/openmethod/policies/std_rtti.hpp 100.00% <ø> (ø)
include/boost/openmethod/policies/vptr_map.hpp 88.46% <ø> (ø)
include/boost/openmethod/policies/vptr_vector.hpp 100.00% <ø> (ø)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 108fd89...ed30c40. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
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.

2 participants