From d1ff704fa1d842b47908487d9c53f46bcdc88f75 Mon Sep 17 00:00:00 2001 From: jensp Date: Thu, 9 Oct 2014 18:04:44 +0000 Subject: [PATCH] Some improvments for documentation git-svn-id: https://svn.libreccm.org/ccm/trunk@2907 8810af33-2d31-482b-a856-94f89814c4df --- .../themes/foundry/doc/styles/foundry-doc.css | 3 +++ .../lib/template-tags/content-items.xsl | 22 ++++++++++++---- .../foundry/lib/template-tags/data-tags.xsl | 6 ++++- .../lib/template-tags/foundry-doc-tags.xsl | 25 +++++++++++++------ .../foundry/lib/template-tags/html-tags.xsl | 12 +++++++++ 5 files changed, 54 insertions(+), 14 deletions(-) diff --git a/ccm-sci-bundle/web/themes/foundry/doc/styles/foundry-doc.css b/ccm-sci-bundle/web/themes/foundry/doc/styles/foundry-doc.css index 273c31d39..49b8269f8 100644 --- a/ccm-sci-bundle/web/themes/foundry/doc/styles/foundry-doc.css +++ b/ccm-sci-bundle/web/themes/foundry/doc/styles/foundry-doc.css @@ -162,3 +162,6 @@ nav { width: 16em; } +pre, code { + font-family: liberation_mono; +} diff --git a/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/content-items.xsl b/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/content-items.xsl index 7204530b2..32ec8427d 100644 --- a/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/content-items.xsl +++ b/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/content-items.xsl @@ -36,8 +36,10 @@

- This tags inserts the HTML representation of the current content item, either - as greeting item or normal item. + The content-item tag with the attribute mode set the + detail or without the attribute inserts the HTML representation of the + detail view of the current content item. The content item can either be the greeting + item or normal item.

The HTML representation of a content item is defined using special templates @@ -83,10 +85,10 @@ The content-type of the item. - - The template system - + + The template system + @@ -257,6 +259,16 @@ + + +

+ The content-item with the mode attribute set to + link insert the HTML representation of a content item. In this case + the content item to show is provided using by a XSL parameter which has to be + provided by a surrounding tag like related-link. +

+
+
diff --git a/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/data-tags.xsl b/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/data-tags.xsl index 7696c0bc8..85c10d992 100644 --- a/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/data-tags.xsl +++ b/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/data-tags.xsl @@ -31,7 +31,11 @@ the title of the content item. For more details please refer to the documentation of the foundry:title function. - #foundry:title + + + foundry:title + + diff --git a/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/foundry-doc-tags.xsl b/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/foundry-doc-tags.xsl index a40eb4801..a34e2fb6a 100644 --- a/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/foundry-doc-tags.xsl +++ b/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/foundry-doc-tags.xsl @@ -175,14 +175,23 @@ - + +
+

+ +

+ + + + + + + + +
@@ -368,7 +377,7 @@ - + diff --git a/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/html-tags.xsl b/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/html-tags.xsl index d603ad5fd..9e89f73ab 100644 --- a/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/html-tags.xsl +++ b/ccm-sci-bundle/web/themes/foundry/foundry/lib/template-tags/html-tags.xsl @@ -28,6 +28,18 @@ exclude-result-prefixes="xsl bebop foundry ui" version="2.0"> + + HTML tags + +

+ These tags are generating the equivalent HTML tags. In most cases the tags have + the same name and same attributes as their HTML counterparts, but some work + in a slightly different way, for example by using values provided by other + surrounding tags which are passed the them as XSL parameters. +

+
+
+