wattsi icon indicating copy to clipboard operation
wattsi copied to clipboard

Make <title> element content use split heading content

Open sideshowbarker opened this issue 8 years ago • 4 comments

wattsi currently just copies the <title> contents from the source file, which means all multipage documents end up with the same title, <title>HTML Standard</title>.

Each multipage document should instead have a unique title with HTML Standard appended; e.g.:

  • <title>Parsing HTML documents — HTML Standard</title>
  • <title>Web application APIs — HTML Standard</title>

sideshowbarker avatar Jun 12 '17 02:06 sideshowbarker

Do you think we should try to grab the first heading element in the split page, or have a separate attribute, or...?

domenic avatar Jun 12 '17 21:06 domenic

For example I'm not sure we want to give timers-and-user-prompts.html the title "Timers". Maybe we need w-splittitle="Timers and User Prompts"

domenic avatar Jun 12 '17 21:06 domenic

For example I'm not sure we want to give timers-and-user-prompts.html the title "Timers". Maybe we need w-splittitle="Timers and User Prompts"

hmm yeah I see what you mean. I had been going to say it should just use the content of whatever headings have split-filename but yeah I think if we do this we should also support an optional attribute like what you describe that could be used to override the the heading content.

sideshowbarker avatar Jun 12 '17 21:06 sideshowbarker

Montesdodgers13

0FAA389E-E544-403B-A993-E488A00BC8B2 #107

Montesdodgers13 avatar Mar 09 '20 10:03 Montesdodgers13