From f994fcfdc04b570c697a9520e24f5ec1406ed20e Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 5 Jul 2016 16:33:38 +0200 Subject: [PATCH] =?utf8?q?Projekt-Seite=20erstellt:=20Velocity-Template=20?= =?utf8?q?-=20Erster=20Anlauf=20(unvollst=C3=A4ndig)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/site/site.xml | 12 ++++ src/site/template.vm | 105 ++++++++++++++++++++++++++++ src/site/xhtml/faq.xhtml | 10 +++ src/site/xhtml/index.xhtml | 15 ++++ src/site/xhtml/issue-tracking.xhtml | 13 ++++ src/site/xhtml/mail-lists.xhtml | 13 ++++ src/site/xhtml/usage.xhtml | 10 +++ 7 files changed, 178 insertions(+) create mode 100644 src/site/site.xml create mode 100644 src/site/template.vm create mode 100644 src/site/xhtml/faq.xhtml create mode 100644 src/site/xhtml/index.xhtml create mode 100644 src/site/xhtml/issue-tracking.xhtml create mode 100644 src/site/xhtml/mail-lists.xhtml create mode 100644 src/site/xhtml/usage.xhtml diff --git a/src/site/site.xml b/src/site/site.xml new file mode 100644 index 0000000..02fc7c8 --- /dev/null +++ b/src/site/site.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/site/template.vm b/src/site/template.vm new file mode 100644 index 0000000..a973c5c --- /dev/null +++ b/src/site/template.vm @@ -0,0 +1,105 @@ + + + + +## Automatisch generierte Seiten einlesen +#set ( $pages = $project.getClass().forName('java.util.LinkedHashMap').newInstance() ) +#macro ( buildPages $items ) + #foreach ( $item in $items ) + #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) ) + #set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) ) + #set ( $sinkhole = $pages.put( $item.name, $currentItemHref ) ) + #if ( !$item.items.empty ) + #buildPages ( $item.items ) + #end + #end +#end +#foreach ( $menu in $decoration.body.menus ) + ## Nur benannte Menüs werden berücksichtigt + #if ($menu.name) + #buildPages ( $menu.items ) + #end +#end + + +#set ( $crumbs = $project.getClass().forName('java.util.LinkedHashMap').newInstance() ) +#macro ( searchBreadcrumbTrail $items ) + #set ( $sep = '' ) + #foreach ( $item in $items ) + #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) ) + #set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) ) + #if ( $currentItemHref == 'index.html' ) + #set ( $name = $project.name ) + #else + #set ( $name = $item.name ) + #end + #if ( !$breadcrumbs && $alignedFileName == $currentItemHref ) + #set ( $breadcrumbs = $project.getClass().forName('java.util.LinkedHashMap').newInstance() ) + ## Den Titel der Seite korrigieren! + #set ( $title = "$project.name - $item.name" ) + #set ( $shortTitle = $name ) + #set ( $sinkhole = $breadcrumbs.put( 'index.html', $project.name) ) + #foreach ( $crumb in $crumbs.entrySet() ) + #set ( $sinkhole = $breadcrumbs.put( $crumb.key , $crumb.value ) ) + #end + #set ( $sinkhole = $breadcrumbs.put( $alignedFileName , $shortTitle) ) + #end + $sep"$currentItemHref": { + "name": "$name" + #if ( !$item.items.empty ) + ,"childs": { + #set ( $sinkhole = $crumbs.put( $currentItemHref , $name) ) + #searchBreadcrumbTrail ( $item.items ) + #set ( $sinkhole = $crumbs.pop() ) + } + #end + } + #set ( $sep =',' ) + #end +#end + +## Datenstrukturen für die Navigation vorbereiten +#foreach ( $menu in $decoration.body.menus ) + ## Nur unbenannte Menüs werden berücksichtigt + #if (!($menu.name)) + ## Breadcrumb-Pfad suchen + "menu": { + #searchBreadcrumbTrail ( $menu.items ) + } + #end +#end + + + + + + + + + + + juplo - $title + + + + +
+

$shortTitle

+ $bodyContent +
+ + diff --git a/src/site/xhtml/faq.xhtml b/src/site/xhtml/faq.xhtml new file mode 100644 index 0000000..802996e --- /dev/null +++ b/src/site/xhtml/faq.xhtml @@ -0,0 +1,10 @@ + + + + + + +

Frequently Asked Questions (FAQ)

+

TODO...

+ + diff --git a/src/site/xhtml/index.xhtml b/src/site/xhtml/index.xhtml new file mode 100644 index 0000000..022684b --- /dev/null +++ b/src/site/xhtml/index.xhtml @@ -0,0 +1,15 @@ + + + + + + +

Simple Mapper

+

A Simple Convenient Mapper, that translates JSON-Data Into A Hierarchy Of Java-Lists and -Maps

+

Releases

+ + + diff --git a/src/site/xhtml/issue-tracking.xhtml b/src/site/xhtml/issue-tracking.xhtml new file mode 100644 index 0000000..f7e6859 --- /dev/null +++ b/src/site/xhtml/issue-tracking.xhtml @@ -0,0 +1,13 @@ + + + + + + + There is no bug-tracking system set up for this project! +

+ Please send your bug-reports, questions or feature-requests directly + to the developer. +

+ + diff --git a/src/site/xhtml/mail-lists.xhtml b/src/site/xhtml/mail-lists.xhtml new file mode 100644 index 0000000..ff8d7f2 --- /dev/null +++ b/src/site/xhtml/mail-lists.xhtml @@ -0,0 +1,13 @@ + + + + + + + There are no mailinglists defined for this project! +

+ Please send your bug-reports, questions or feature-requests directly + to the developer. +

+ + diff --git a/src/site/xhtml/usage.xhtml b/src/site/xhtml/usage.xhtml new file mode 100644 index 0000000..3c573e4 --- /dev/null +++ b/src/site/xhtml/usage.xhtml @@ -0,0 +1,10 @@ + + + + + + +

Usage

+

TODO...

+ + -- 2.20.1