DeepBlueCLtd / LegacyMan

Legacy content for Field Service Manual
https://deepbluecltd.github.io/LegacyMan/index.html
Apache License 2.0
2 stars 0 forks source link

Insert links to Related Pages #305

Closed IanMayo closed 1 year ago

IanMayo commented 1 year ago

Our schema allows for related pages to be specified for a class. See an example of content here: https://github.com/DeepBlueCLtd/Fi3ldMan/blob/main/dita/regions/britain/hybrid/unit_hybrid_a.dita#L129

Introduce some quick links data in the QuickLinksTable, and then parse the content.

In the first phase, just use a link to the current file - actually parse the content in a future phase.

Note: this is how the content will look:

        <related-pages id="related">
            <title> Related links </title>
            <xref href="../br_power_units.dita#br_power_units/diesel">French diesel power units</xref>
            <xref href="../br_cooling_units.dita">Cooling units</xref>
        </related-pages>

Note: we have one of these in the mock data, but it's present as a dita file, not an html one. @IanMayo to fix that.

IanMayo commented 1 year ago

Done.