[rs-commit] r78 - in /rs-manual/trunk: ./ src/ src/main/ src/site/ src/site/apt/ src/site/docbook/ src/site/fml/ src/site/fr/ src/site/fr/apt/ src/site/fr/fml/ src/site/fr/xdoc/ src/site/resources/ src/site/resources/images/ src/site/xdoc/ src/site/xhtml5/ src/site/xhtml5/mod/ src/site/xsl/

rs-commit at redwax.eu rs-commit at redwax.eu
Sun Oct 6 23:57:57 CEST 2019


Author: Martin van den Bemt
Date: Sun Oct  6 23:56:55 2019
New Revision: 78

Log:
Go at dynamic modules page.

Added:
    rs-manual/trunk/src/main/   (with props)
    rs-manual/trunk/src/main/modules.xml
    rs-manual/trunk/src/main/modules.xsl
    rs-manual/trunk/src/site/xsl/   (with props)
    rs-manual/trunk/src/site/xsl/modules.xhtml5
      - copied, changed from r76, rs-manual/trunk/src/site/xhtml5/modules.xhtml5
Removed:
    rs-manual/trunk/src/site/xhtml5/modules.xhtml5
Modified:
    rs-manual/trunk/   (props changed)
    rs-manual/trunk/pom.xml
    rs-manual/trunk/src/   (props changed)
    rs-manual/trunk/src/site/   (props changed)
    rs-manual/trunk/src/site/apt/   (props changed)
    rs-manual/trunk/src/site/docbook/   (props changed)
    rs-manual/trunk/src/site/fml/   (props changed)
    rs-manual/trunk/src/site/fr/   (props changed)
    rs-manual/trunk/src/site/fr/apt/   (props changed)
    rs-manual/trunk/src/site/fr/fml/   (props changed)
    rs-manual/trunk/src/site/fr/xdoc/   (props changed)
    rs-manual/trunk/src/site/resources/   (props changed)
    rs-manual/trunk/src/site/resources/images/   (props changed)
    rs-manual/trunk/src/site/xdoc/   (props changed)
    rs-manual/trunk/src/site/xhtml5/   (props changed)
    rs-manual/trunk/src/site/xhtml5/mod/   (props changed)

Propchange: rs-manual/trunk/
------------------------------------------------------------------------------
--- svn:ignore	(original)
+++ svn:ignore	Sun Oct  6 23:56:55 2019
@@ -1 +1,3 @@
 target
+.*
+*.iml

Modified: rs-manual/trunk/pom.xml
==============================================================================
--- rs-manual/trunk/pom.xml	(original)
+++ rs-manual/trunk/pom.xml	Sun Oct  6 23:56:55 2019
@@ -35,7 +35,43 @@
         <version>3.8.2</version>
         <configuration>
           <locales>en,fr</locales>
+<!--          <moduleExcludes><xhtml5>modules.xhtml5</xhtml5></moduleExcludes>-->
+          <saveProcessedContent>true</saveProcessedContent>
         </configuration>
+        <dependencies>
+          <dependency>
+            <groupId>org.apache.maven.wagon</groupId>
+            <artifactId>wagon-ssh</artifactId>
+            <version>3.3.3</version>
+          </dependency>
+        </dependencies>      </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>xml-maven-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>module_gen</id>
+            <phase>pre-site</phase>
+            <goals><goal>transform</goal></goals>
+          </execution>
+        </executions>
+        <configuration>
+          <transformationSets>
+            <transformationSet>
+              <dir>src/site/xsl</dir>
+              <includes><include>modules.xhtml5</include></includes>
+              <stylesheet>src/main/modules.xsl</stylesheet>
+              <outputDir>${project.build.directory}/generated-site/xhtml5</outputDir>
+            </transformationSet>
+          </transformationSets>
+        </configuration>
+        <dependencies>
+          <dependency>
+            <groupId>net.sf.saxon</groupId>
+            <artifactId>saxon</artifactId>
+            <version>8.7</version>
+          </dependency>
+        </dependencies>
       </plugin>
     </plugins>
   </build>

Propchange: rs-manual/trunk/src/
------------------------------------------------------------------------------
--- svn:ignore	(added)
+++ svn:ignore	Sun Oct  6 23:56:55 2019
@@ -0,0 +1,2 @@
+.*
+*.iml

Propchange: rs-manual/trunk/src/main/
------------------------------------------------------------------------------
--- svn:ignore	(added)
+++ svn:ignore	Sun Oct  6 23:56:55 2019
@@ -0,0 +1,2 @@
+.*
+*.iml

Added: rs-manual/trunk/src/main/modules.xml
==============================================================================
--- rs-manual/trunk/src/main/modules.xml	(added)
+++ rs-manual/trunk/src/main/modules.xml	Sun Oct  6 23:56:55 2019
@@ -0,0 +1,10 @@
+<modules>
+  <module type="frontend">mod_crl</module>
+  <module type="frontend">mod_ocsp</module>
+  <module type="frontend">mod_scep</module>
+  <module type="frontend">mod_spkac</module>
+  <module type="frontend">mod_timestamp</module>
+  <module type="backend">mod_ca</module>
+  <module type="backend">mod_csr</module>
+  <module type="frontend">mod_pkcs12</module>
+</modules>

Added: rs-manual/trunk/src/main/modules.xsl
==============================================================================
--- rs-manual/trunk/src/main/modules.xsl	(added)
+++ rs-manual/trunk/src/main/modules.xsl	Sun Oct  6 23:56:55 2019
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
+<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+   xmlns="http://www.w3.org/1999/xhtml"
+    xmlns:html="http://www.w3.org/1999/xhtml" exclude-result-prefixes="html">
+
+  <xsl:output method="xml" omit-xml-declaration="no" indent="yes"/>
+
+  <xsl:template match="node()">
+    <xsl:copy>
+      <xsl:apply-templates/>
+    </xsl:copy>
+  </xsl:template>
+
+  <xsl:template match="//*[@id='frontend-list']">
+    <xsl:call-template name="modulelist">
+      <xsl:with-param name="modtype">frontend</xsl:with-param>
+    </xsl:call-template>
+  </xsl:template>
+
+  <xsl:template match="//*[@id='backend-list']">
+    <xsl:call-template name="modulelist">
+      <xsl:with-param name="modtype">backend</xsl:with-param>
+    </xsl:call-template>
+  </xsl:template>
+
+  <xsl:template name="modulelist">
+    <xsl:param name="modtype"/>
+    <xsl:for-each select="document('modules.xml')//modules/node()">
+      <xsl:if test=".[@type=$modtype]">
+        <xsl:variable name="file" select="./text()"/>
+        <xsl:variable name="doc" select="concat('../site/xhtml5/mod/',$file, '.xhtml5')"/>
+        <xsl:variable name="description" select="document($doc)/html:html/html:head/html:title/text()"/>
+        <dt><a href="mod/{$file}.html"><xsl:copy-of select="$file"/></a></dt><dd><p><xsl:copy-of select="$description"/></p></dd>
+      </xsl:if>
+    </xsl:for-each>
+  </xsl:template>
+</xsl:stylesheet>

Propchange: rs-manual/trunk/src/site/
------------------------------------------------------------------------------
--- svn:ignore	(added)
+++ svn:ignore	Sun Oct  6 23:56:55 2019
@@ -0,0 +1,2 @@
+.*
+*.iml

Propchange: rs-manual/trunk/src/site/apt/
------------------------------------------------------------------------------
--- svn:ignore	(added)
+++ svn:ignore	Sun Oct  6 23:56:55 2019
@@ -0,0 +1,2 @@
+.*
+*.iml

Propchange: rs-manual/trunk/src/site/docbook/
------------------------------------------------------------------------------
--- svn:ignore	(added)
+++ svn:ignore	Sun Oct  6 23:56:55 2019
@@ -0,0 +1,2 @@
+.*
+*.iml

Propchange: rs-manual/trunk/src/site/fml/
------------------------------------------------------------------------------
--- svn:ignore	(added)
+++ svn:ignore	Sun Oct  6 23:56:55 2019
@@ -0,0 +1,2 @@
+.*
+*.iml

Propchange: rs-manual/trunk/src/site/fr/
------------------------------------------------------------------------------
--- svn:ignore	(added)
+++ svn:ignore	Sun Oct  6 23:56:55 2019
@@ -0,0 +1,2 @@
+.*
+*.iml

Propchange: rs-manual/trunk/src/site/fr/apt/
------------------------------------------------------------------------------
--- svn:ignore	(added)
+++ svn:ignore	Sun Oct  6 23:56:55 2019
@@ -0,0 +1,2 @@
+.*
+*.iml

Propchange: rs-manual/trunk/src/site/fr/fml/
------------------------------------------------------------------------------
--- svn:ignore	(added)
+++ svn:ignore	Sun Oct  6 23:56:55 2019
@@ -0,0 +1,2 @@
+.*
+*.iml

Propchange: rs-manual/trunk/src/site/fr/xdoc/
------------------------------------------------------------------------------
--- svn:ignore	(added)
+++ svn:ignore	Sun Oct  6 23:56:55 2019
@@ -0,0 +1,2 @@
+.*
+*.iml

Propchange: rs-manual/trunk/src/site/resources/
------------------------------------------------------------------------------
--- svn:ignore	(added)
+++ svn:ignore	Sun Oct  6 23:56:55 2019
@@ -0,0 +1,2 @@
+.*
+*.iml

Propchange: rs-manual/trunk/src/site/resources/images/
------------------------------------------------------------------------------
--- svn:ignore	(added)
+++ svn:ignore	Sun Oct  6 23:56:55 2019
@@ -0,0 +1,2 @@
+.*
+*.iml

Propchange: rs-manual/trunk/src/site/xdoc/
------------------------------------------------------------------------------
--- svn:ignore	(added)
+++ svn:ignore	Sun Oct  6 23:56:55 2019
@@ -0,0 +1,2 @@
+.*
+*.iml

Propchange: rs-manual/trunk/src/site/xhtml5/
------------------------------------------------------------------------------
--- svn:ignore	(added)
+++ svn:ignore	Sun Oct  6 23:56:55 2019
@@ -0,0 +1,2 @@
+.*
+*.iml

Propchange: rs-manual/trunk/src/site/xhtml5/mod/
------------------------------------------------------------------------------
--- svn:ignore	(added)
+++ svn:ignore	Sun Oct  6 23:56:55 2019
@@ -0,0 +1,2 @@
+.*
+*.iml

Removed: rs-manual/trunk/src/site/xhtml5/modules.xhtml5
==============================================================================
--- rs-manual/trunk/src/site/xhtml5/modules.xhtml5	(original)
+++ rs-manual/trunk/src/site/xhtml5/modules.xhtml5	(removed)
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
-  <head>
-    <title>Modules</title>
-  </head>
-  <body>
-    <div class="index align-left">
-
-      <section class="wrapper style1 align-center"
-        id="introduction">
-        <div class="inner">
-          <h2>Modules</h2>
-          <p>Redwax server requires you to pair backend modules with frontend modules to create a userful server.</p>
-
-        </div>
-      </section>
-
-      <section class="wrapper style1 align-center"
-        id="introduction">
-        <div class="inner">
-          <h2>Frontend Modules</h2>
-          <p>Frontend modules implement web facing protocols like SCEP and OCSP.</p>
-          <p><a href="#A"> A </a> | <a href="#B"> B </a> | <a href="#C"> C </a> </p>
-
-          <div class="content align-left">
-
-              <dl>
-                <dt><a href="mod/mod_foo.html">mod_foo</a></dt><dd><p>Module to support foo.</p></dd>
-                <dt><a href="mod/mod_bar.html">mod_bar</a></dt><dd><p>Module to support bar.</p></dd>
-              </dl>
-
-          </div>
-        </div>
-      </section>
-
-      <section class="wrapper style1 align-center"
-        id="introduction">
-        <div class="inner">
-          <h2>Backend Modules</h2>
-          <p>Backend modules perform discrete tasks, like returning the time, or signing a certificate.</p>
-          <p><a href="#A"> A </a> | <a href="#B"> B </a> | <a href="#C"> C </a> </p>
-
-          <div class="content align-left">
-
-              <dl>
-                <dt><a href="mod/mod_foo.html">mod_foo</a></dt><dd><p>Module to support foo.</p></dd>
-                <dt><a href="mod/mod_bar.html">mod_bar</a></dt><dd><p>Module to support bar.</p></dd>
-              </dl>
-
-          </div>
-        </div>
-      </section>
-
-
-    </div>
-  </body>
-</html>
-

Propchange: rs-manual/trunk/src/site/xsl/
------------------------------------------------------------------------------
--- svn:ignore	(added)
+++ svn:ignore	Sun Oct  6 23:56:55 2019
@@ -0,0 +1,2 @@
+.*
+*.iml

Copied: rs-manual/trunk/src/site/xsl/modules.xhtml5 (from r76, rs-manual/trunk/src/site/xhtml5/modules.xhtml5)
==============================================================================
--- rs-manual/trunk/src/site/xhtml5/modules.xhtml5	(original)
+++ rs-manual/trunk/src/site/xsl/modules.xhtml5	Sun Oct  6 23:56:55 2019
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html>
+<!DOCTYPE html [ <!ENTITY nbsp " "> ]>
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
   <head>
     <title>Modules</title>
@@ -7,8 +7,7 @@
   <body>
     <div class="index align-left">
 
-      <section class="wrapper style1 align-center"
-        id="introduction">
+      <section class="wrapper style1 align-center" id="introduction">
         <div class="inner">
           <h2>Modules</h2>
           <p>Redwax server requires you to pair backend modules with frontend modules to create a userful server.</p>
@@ -16,8 +15,7 @@
         </div>
       </section>
 
-      <section class="wrapper style1 align-center"
-        id="introduction">
+      <section class="wrapper style1 align-center" id="frontend">
         <div class="inner">
           <h2>Frontend Modules</h2>
           <p>Frontend modules implement web facing protocols like SCEP and OCSP.</p>
@@ -25,17 +23,14 @@
 
           <div class="content align-left">
 
-              <dl>
-                <dt><a href="mod/mod_foo.html">mod_foo</a></dt><dd><p>Module to support foo.</p></dd>
-                <dt><a href="mod/mod_bar.html">mod_bar</a></dt><dd><p>Module to support bar.</p></dd>
+              <dl id="frontend-list">
               </dl>
 
           </div>
         </div>
       </section>
 
-      <section class="wrapper style1 align-center"
-        id="introduction">
+      <section class="wrapper style1 align-center" id="backend">
         <div class="inner">
           <h2>Backend Modules</h2>
           <p>Backend modules perform discrete tasks, like returning the time, or signing a certificate.</p>
@@ -43,9 +38,7 @@
 
           <div class="content align-left">
 
-              <dl>
-                <dt><a href="mod/mod_foo.html">mod_foo</a></dt><dd><p>Module to support foo.</p></dd>
-                <dt><a href="mod/mod_bar.html">mod_bar</a></dt><dd><p>Module to support bar.</p></dd>
+              <dl id="backend-list">
               </dl>
 
           </div>



More information about the rs-commit mailing list