From b90115d3f291ea954c1e16470e2bc3607c873ccd Mon Sep 17 00:00:00 2001 From: albert-github Date: Thu, 28 Feb 2019 18:18:01 +0100 Subject: [PATCH] Invalid (X)HTMLsequence In packages.html we get: `Element style is not declared in p list of possible children` as the `style` tag is only allowed in the `head` part of a file. The specific changes are only needed for this one file, so it has been implemented using the post processing facility of te CGAL documentation generation. --- Documentation/doc/Documentation/packages.txt | 9 --------- Documentation/doc/scripts/html_output_post_processing.py | 5 +++++ 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/Documentation/doc/Documentation/packages.txt b/Documentation/doc/Documentation/packages.txt index d1f549f4ab0..0fbb61b043a 100644 --- a/Documentation/doc/Documentation/packages.txt +++ b/Documentation/doc/Documentation/packages.txt @@ -2,15 +2,6 @@ \page packages Package Overview -\htmlonly - -\endhtmlonly - \section PartAlgebraicFoundations Arithmetic and Algebra \package_listing{Algebraic_foundations} diff --git a/Documentation/doc/scripts/html_output_post_processing.py b/Documentation/doc/scripts/html_output_post_processing.py index e89c7e7b61a..8ee4d3c35a6 100755 --- a/Documentation/doc/scripts/html_output_post_processing.py +++ b/Documentation/doc/scripts/html_output_post_processing.py @@ -328,6 +328,11 @@ removes some unneeded files, and performs minor repair on some glitches.''') re_replace_in_file('\[external\]', '', os.path.join('Manual','annotated.html')) + # replace h1 tag with some special style properties + + re_replace_in_file("

", "

", + os.path.join('Manual','packages.html') ) + # fix class/concept mismatch in generated pages relationship_pages=list(package_glob('./*/hasModels.html')) relationship_pages.extend(package_glob('./*/generalizes.html'))