Skip to content

Various small HTML fixes

FeRD (Frank Dana) requested to merge ferdnyc/gi-docgen:html-fixes into main

These fixes are the result of running HTML Tidy on the output of gi-docgen generate -C examples/gtk4.html /usr/share/gir-1.0/Gtk-4.0.gir, and fixing whatever was causing HTML errors in the generated output. With these fixes in place, Tidy is completely happy with the generated docs except for three issues:

  1. A bare HTML tag in the documentation source for class.Label.html, which I submitted gtk!6650 (merged) to fix
  2. A tag conflict specific to class.Builder.html, where the embedded Markdown contains a heading "Properties" that receives an id="properties" attribute, which then conflicts with one of gi-docgen's own headings farther down. Not sure how to best fix that one.
  3. The embedded SVG source for the hierarchy diagrams. They no longer contain the leading DOCTYPE and xml tags that Tidy objected to (I added code to strip those off), but they still use pt units for the width and height attributes of the <svg> tag, which Tidy doesn't seem to like.

Merge request reports