diff options
| -rw-r--r-- | download.osml | 46 | ||||
| -rw-r--r-- | ontology/webpage.osml | 9 | ||||
| -rw-r--r-- | xsl/webpage.xsl | 12 | 
3 files changed, 59 insertions, 8 deletions
| diff --git a/download.osml b/download.osml index cb43b98..714caaa 100644 --- a/download.osml +++ b/download.osml @@ -9,18 +9,48 @@  \import[ontology]{ontology/webpage} -\begin{webpage}{Ousía Framework – License} +\begin{webpage}{Ousía Framework – Download} -\begin{section} -	\title{License} +\section{Download} +You can download both the source code of our reference implementation and +the content of this website (as an example of how you can use Ousía). -	\paragraph -	The Ousía Framework application is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +\paragraph +Please not that this a pre-alpha development preview. We do not provide +any support yet and any aspect of the language is subject to change. -	\paragraph -	This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the \link[gpl.txt]{GNU General Public License} for more details. +\subsection{Download} -\end{section} +You'll need \inlineCode{git} to access our source code repository. The reference +implementation can be downloaded using the following command line: +\code{git clone http://git.ousia-framework.org/ousia.git} + +\paragraph +The website can be downloaded using the following command line: +\code{git clone http://git.ousia-framework.org/ousia-www.git} + +\subsection{Compiling the reference implementation} +To compile the source code, you'll need a C++11 compliant compiler such as +\inlineCode{gcc} in version 4.8 or later or \inlineCode{clang} in version 3.5 or +later. + +\paragraph +Furhtermore, you'll need to install the \inlineCode{boost} and +\inlineCode{expat} development libraries. + +\paragraph +Under Fedora 20 and later you can install these packages using the following +command line: +\code{sudo yum install boost-devel expat-devel} + +\paragraph +Under Ubuntu 14.04 and later you can install these packages using the following +command line: +\code{sudo apt-get install libboost-all-dev libexpat-dev} + +\paragraph +Finally, to compile Ousía, go into the downloaded source code directory and execute +\code{mkdir build && cd build && cmake .. && make}  \end{webpage} diff --git a/ontology/webpage.osml b/ontology/webpage.osml index 7f5486b..e34eeb7 100644 --- a/ontology/webpage.osml +++ b/ontology/webpage.osml @@ -121,5 +121,14 @@  		\attribute#src[type=string]  	\primitive#alt[type=string] +\struct#code[isa=block] +	\field +		\childRef[ref=primitive] + +\struct#inlineCode[isa=primitive] +	\field +		\childRef[ref=primitive] + +  \end{ontology} diff --git a/xsl/webpage.xsl b/xsl/webpage.xsl index 8efc0a2..309d8a2 100644 --- a/xsl/webpage.xsl +++ b/xsl/webpage.xsl @@ -224,6 +224,18 @@  		<xsl:apply-templates select="webpage:*"/>  	</xsl:template> +	<xsl:template match="webpage:code"> +		<pre class="code"> +			<xsl:apply-templates select="webpage:*"/> +		</pre> +	</xsl:template> + +	<xsl:template match="webpage:inlineCode"> +		<xsl:text> </xsl:text><code> +			<xsl:apply-templates select="webpage:*"/> +		</code><xsl:text> </xsl:text> +	</xsl:template> +  	<!-- Footnotes -->  	<!-- Adapted from: http://www.microhowto.info/howto/create_a_list_of_numbered_footnotes_using_xslt.html -->  	<xsl:template match="webpage:footnote"> | 
