Kai Moritz [Sun, 28 Feb 2021 16:23:17 +0000 (17:23 +0100)]
Prevented the override of the entry-page with the changed title "About"
* The maven-site-plugin includes an entry for the index.html in the root
of the documentation in the subdirectory "Project Info".
* This entry must be droped, because it overrides the correct definition
for that page with a false title ("About") and path (the page is added
as a child of the submenu "Project Info").
Kai Moritz [Sun, 28 Feb 2021 16:21:00 +0000 (17:21 +0100)]
The index.html from the documentation-root is explicitly added as page
* Before, it was only added to the stack as a starting point for the
computation of all available pages
* The effective entry for the page was only generated, becaus the
maven-site-plugin also adds this page as part of the submenu "Project Info"
Kai Moritz [Sat, 16 Jul 2016 20:02:42 +0000 (22:02 +0200)]
Fixed problems with the page-title
The <title>-tag of the page is taken from the velocity-variable tile, if
the variable shortTitle is set. For XHTML-templates, this is the case, if
the <title>-tag on the input-xhtml is set. If the variable is not set, the
page-title is constructed from the project-name and the name of the page,
that was found in the menu-data.
A leading head in the content is not generated automatically, because the
pages, that are generated automatically by maven differ to much. Hence, the
leading head in the content must be specified by hand in the content.
Kai Moritz [Fri, 8 Jul 2016 09:23:26 +0000 (11:23 +0200)]
Relative URI's and breadcrumb-paths can be converted into absolute ones
Defined custom variables custom.path and custom.crumbs in site.xml, that
can be used to convert the relative URI's and breadcrumb-paths into absolute
ones.
Kai Moritz [Fri, 8 Jul 2016 08:58:01 +0000 (10:58 +0200)]
Read in extra-info from site.xml
The attributes "title", "alt" and "img" for the tags <menu> and <item>
of the site.xml are read in. For <item>-tags, these entries are made
available in the page-definition. For the manually defined menu (the one
without a name!), as top-level variables "site_title", "site_alt" and
"site_img".
Kai Moritz [Fri, 8 Jul 2016 08:10:23 +0000 (10:10 +0200)]
Rendering page-data as JSON
* The JSON-data is now generated from the read in page-data.
* The data is passed to the thymeleaf-dialect "juplo:variables".
* The old breadcrumb-macro was removed.
Kai Moritz [Fri, 8 Jul 2016 07:04:46 +0000 (09:04 +0200)]
Reworked the processing of the page-data
Automatically generated pages can be overwriten in the manually defined
menu. Overwriting a URI will result in the changing of the name of the
page. Child-pages be kept in place, if present. If an automatically
generated page is overwriten in the manually defined menu, it will not
be removed form the original menu, but its breadcrumb-data will reflect
the position of the manually defined entry.
Implementation:
The data is read into a map. The unnamed menus will be read in last,
because this are usually the manually defined menus. If an URI is encountered
again, the last read version of the defined page will win and overwrite the
previously read definition, but the defined child-pages will not be touched.