Skip to content

feat(docs): Patch asn.1 doc comments even more#49

Merged
jbeyerstedt merged 1 commit into
mainfrom
feat/asn1-docs-fixes
May 8, 2026
Merged

feat(docs): Patch asn.1 doc comments even more#49
jbeyerstedt merged 1 commit into
mainfrom
feat/asn1-docs-fixes

Conversation

@jbeyerstedt

@jbeyerstedt jbeyerstedt commented May 7, 2026

Copy link
Copy Markdown
Collaborator

About this PR

The docs.rs output put "@​category" and "@​revision" lines in one HTML line since markdown requires a blank line to do a paragraph. So we need to add "\n\n" in front of those things.
Also the "@​field" lines can be formatted as a list.

Additionally some doc comments were patched in the ASN.1. sources so that they are more consistent with the rest (no "@​brief").

For the "@​field" lists it would be nice to not have a blank line in between them, but since the source material is not formatted consistently it'll be hard to do that automatically. In the HTML it's only changes if the list items are enclosed in a paragraph tag or not. It doesn't change the rendering at all.

One newline before @attrs wasn't enough since Markdown will only do new paragraphs on a blank line.
Also "@field" lines can be lists.
@jbeyerstedt jbeyerstedt added the documentation Improvements or additions to documentation label May 7, 2026
@jbeyerstedt jbeyerstedt added this to the v2.1.0 milestone May 8, 2026

@BendixBuchheister BendixBuchheister left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jbeyerstedt jbeyerstedt merged commit 2888a4c into main May 8, 2026
3 checks passed
@jbeyerstedt jbeyerstedt deleted the feat/asn1-docs-fixes branch May 8, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants