[openscreenprotocol] Pull Request: Autolinking for CDDL message types.

mfoltzgoogle has just submitted a new pull request for https://github.com/webscreens/openscreenprotocol:

== Autolinking for CDDL message types. ==
This makes a number of changes to allow Bikeshed autolinking to work for CDDL message types defined by the spec:

1. Update the pygments lexer to treat top-level CDDL definitions as classes versus generic definitions.
2. Write a custom HTML formatter to wrap pygments classes in `<dfn>` tags.
3. But add a whitelist of messages autolinked in the document, to avoid Bikeshed from printing warnings for non-linked definitions.
4. Add autolinks to messages used in the Presentation API section of the document.

Incidental changes:

1. Update Makefile to regenerate HTML when the CDDL or the scripts are modified.
2. Rename a couple of anchors in the spec to not conflict with message definitions.
3. Fix a typo in presentation-url-availability-event.
4. Fix formatting of the capabilities enum.

Afterwards we can:
- Go back and autolink types used in other sections.
- Maybe put these definitions in their own namespace (we'd have to treat them as fake CSS/WebIDL definitions).




See https://github.com/webscreens/openscreenprotocol/pull/190

Received on Wednesday, 21 August 2019 17:02:40 UTC