icann / rfc-annotations

Other
8 stars 7 forks source link

added support for "global" annotations and "top" sections (fixes#119) #121

Closed mboe closed 1 year ago

mboe commented 1 year ago

added support for "global" annotations (starting with "global." prefix) and a new "top" section.

  1. You can create "global" annotations (used for every RFC) by replacing the rfc1234. filename prefix with global..
  2. the new section top is always shown as the very first entry
  3. additionally you can use {rfc_nr} in the content of the (global) annotation file as a placeholder for the actual RFC number.

This is an example of a annotation shown for every RFC (may be located as global.top.txtinside the annotations directory):

#A ICANN
#C View Original for RFC {rfc_nr}
#S top
<p>View <a href="https://datatracker.ietf.org/doc/rfc{rfc_nr}">RFC {rfc_nr}</a>
</p>