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

Generating ID/title for generic files #416

Closed IanMayo closed 1 year ago

IanMayo commented 1 year ago

We are currently using Test Title as the title for DITA documents.

The actual title can be found by using the contents of <div id="Title" ....><h2>XXX</h2></div>

robintw commented 1 year ago

What should we do about getting the overall title for a page when the page has multiple <div id="Title"> divs?

For example Phase_F.html has:

<div id="Title" style="position: absolute; visibility: visible; left: 406px; top: -12px; width: 514px">
            <h2>PHASE F UNITS OVERVIEW B</h2>
</div>

and

<div id="Title" style="position: absolute; visibility: visible; left: 406px; top: -12px; width: 514px">
            <h2>PHASE F UNITS OVERVIEW B</h2>
        </div>

For the titles in the two separate 'sub pages' that we have in that page.

Is there even such a thing as a title for the whole HTML page?

IanMayo commented 1 year ago

From examining the data, the first will be called "Title" and the second "Title2", though I wouldn't rely on this. So, I'm happy that we use the first matching div.

robintw commented 1 year ago

Ok - yes we can use the first Title div for the overall time.

What should we do with the second title - should we include it as another title/subtitle somewhere further down the document?

(And Phase_F.html doesn't have Title and Title2, they're both Title as far as I can see)

IanMayo commented 1 year ago

We can just take the first title for now. But, we may wish to use supplemental titles as title for other sections in the future, but not now.

robintw commented 1 year ago

Fixed in #421