Syncing Foundry files

git-svn-id: https://svn.libreccm.org/ccm/trunk@2896 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2014-10-01 19:55:20 +00:00
parent 6b2d6a22cd
commit f0cf96a290
12 changed files with 97 additions and 21 deletions

View File

@ -12,19 +12,19 @@
</head>
<body><span id="top"></span><a href="#startcontent" accesskey="S" class="nav-hide" title="">Skip navigation</a><nav>
<ul class="chapter-list">
<li class="chapter-entry"><a href="#overview" title="Overview">Overview</a><ul class="section-list">
<li class="chapter-entry"><a href="#overview">Overview</a><ul class="section-list">
<li class="section-entry"><a href="#overview" title="Overview">Overview</a></li>
<li class="section-entry"><a href="#this-manual" title="This manual">This manual</a></li>
</ul>
</li>
<li class="chapter-entry"><a href="#user-manual" title="User Manual">User Manual</a><ul class="section-list">
<li class="chapter-entry"><a href="#user-manual">User Manual</a><ul class="section-list">
<li class="section-entry"><a href="#about-foundry" title="About Foundry">About Foundry</a></li>
<li class="section-entry"><a href="#layout-templates" title="Layout templates">Layout templates</a></li>
<li class="section-entry"><a href="#css-files" title="CSS files">CSS files</a></li>
<li class="section-entry"><a href="#template-tags-reference" title="Templates Tags Reference">Templates Tags Reference</a></li>
</ul>
</li>
<li class="chapter-entry"><a href="#developer-manual" title="Developer Manual">Developer Manual</a><ul class="section-list">
<li class="chapter-entry"><a href="#developer-manual">Developer Manual</a><ul class="section-list">
<li class="section-entry"><a href="#foundry-structure" title="The structure of Foundry">The structure of Foundry</a></li>
<li class="section-entry"><a href="#coding-style" title="Coding style">Coding style</a></li>
<li class="section-entry"><a href="#doc-system" title="The documentation system of Foundry">The documentation system of Foundry</a></li>
@ -38,6 +38,15 @@
Foundry Documentation
</h1>
<article id="overview">
<h1>Overview</h1>
</article>
<article id="user-manual">
<h1>User Manual</h1>
</article>
<article id="developer-manual">
<h1>Developer Manual</h1>
</article>
</main>
</body>
</html>

View File

@ -6,6 +6,7 @@
</head>
<body>
<h1>Foundry Coding Style</h1>
<main>
<p>
This document describes the coding conventions for the Foundry theming engine.
</p>
@ -32,8 +33,6 @@
prefix).
</p>
<h2>Indention, line length and formating</h2>
<p>
Indention is done using spaces. Indention depth is four (4) spaces per level.
@ -56,5 +55,6 @@
<pre>
&lt;xsl:param name=example-param" select="'example'"/&gt;
</pre>
</body>
</main>
</body>
</html>

View File

@ -6,8 +6,8 @@
</head>
<body>
<h1>The documentation system of Foundry</h1>
<p>
Placeholder
</p>
</body>
<main>
Placeholder
</main>
</body>
</html>

View File

@ -6,8 +6,8 @@
</head>
<body>
<h1>The overall structure of foundry</h1>
<p>
<main>
Placeholder
</p>
</main>
</body>
</html>

View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<title>Foundry Documentation - CSS files</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
</head>
<body>
<h1>Foundry Overview</h1>
<main>
Placeholder
</main>
</body>
</html>

View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<title>Foundry Documentation - CSS files</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
</head>
<body>
<h1>About this manual</h1>
<main>
Placeholder
</main>
</body>
</html>

View File

@ -6,8 +6,8 @@
</head>
<body>
<h1>About Foundry</h1>
<p>
<main>
Placeholder
</p>
</main>
</body>
</html>

View File

@ -6,8 +6,8 @@
</head>
<body>
<h1>CSS files</h1>
<p>
<main>
Placeholder
</p>
</main>
</body>
</html>

View File

@ -6,8 +6,8 @@
</head>
<body>
<h1>Layout templates</h1>
<p>
<main>
Placeholder
</p>
</main>
</body>
</html>

View File

@ -37,7 +37,7 @@
<xsl:for-each select="$foundry-doc-tree/foundry:doc-chapter">
<xsl:apply-templates select="$doc-chapter-entry-tree">
<xsl:with-param name="href" tunnel="yes" select="concat('#', ./@id)"/>
<xsl:with-param name="title" tunnel="yes" select="./@title"/>
<xsl:with-param name="chapter-title" tunnel="yes" select="./@title"/>
<xsl:with-param name="doc-sections"
tunnel="yes"
select="./foundry:doc-section"/>
@ -46,9 +46,9 @@
</xsl:template>
<xsl:template match="doc-chapter-title">
<xsl:param name="title" tunnel="yes" select="''"/>
<xsl:param name="chapter-title" tunnel="yes" select="''"/>
<xsl:value-of select="$title"/>
<xsl:value-of select="$chapter-title"/>
</xsl:template>
<xsl:template match="doc-section-list">
@ -74,4 +74,27 @@
<xsl:value-of select="$title"/>
</xsl:template>
<xsl:template match="doc-chapters">
<xsl:for-each select="$foundry-doc-tree/foundry:doc-chapter">
<xsl:apply-templates select="document('../../templates/doc/foundry-doc-chapter.xml')/*">
<xsl:with-param name="chapter-id" tunnel="yes" select="./@id"/>
<xsl:with-param name="chapter-title" tunnel="yes" select="./@title"/>
<xsl:with-param name="doc-chapter-tree" tunnel="yes" select="./*"/>
</xsl:apply-templates>
</xsl:for-each>
</xsl:template>
<xsl:template match="doc-chapter-layout">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="doc-chapter-id">
<xsl:param name="chapter-id" tunnel="yes"/>
<xsl:attribute name="id">
<xsl:value-of select="$chapter-id"/>
</xsl:attribute>
</xsl:template>
</xsl:stylesheet>

View File

@ -115,6 +115,23 @@
</a>
</xsl:template>
<foundry:doc>
<foundry:doc-desc>
<p>
Generates the HTML5 <code>article</code> element.
</p>
</foundry:doc-desc>
<foundry:doc-see-also>
<foundry:doc-link href="http://www.w3.org/TR/html5/sections.html#the-article-element"/>
</foundry:doc-see-also>
</foundry:doc>
<xsl:template match="article">
<article>
<xsl:call-template name="foundry:set-id-and-class"/>
<xsl:apply-templates/>
</article>
</xsl:template>
<foundry:doc section="user" type="template-tag">
<foundry:doc-desc>
Generates a HTML5 <code>aside</code> element.

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<doc-chapter-layout>
<article>
<doc-chapter-id/>
<h1>
<doc-chapter-title/>
</h1>