3 # Version 8.5 through 8.6.4 use asciidoc-xhtml11.js, after that asciidoc.js.
4 # Test whether asciidoc version > 8.6.4. assume major version is 8 since only
5 # interested in versions from 8.5 anyways, older ones won't work.
6 asciidoc_js=asciidoc-xhtml11.js
7 ifeval::[int("{asciidoc-version}".split(".")[1])>6 or (int("{asciidoc-version}".split(".")[1])==6 and int("{asciidoc-version}".split(".")[2])>4)]
8 asciidoc_js=asciidoc.js
12 include::common.conf[]
15 (?su)(?P<name>download_links):(?P<target>[^\[]+)\[\]=[]
17 [linkrepo-inlinemacro]
19 {target$^openfoam$:}href="http://repo.or.cz/w/OpenFOAM-1.5.x.git?a=commit;h={commitId}"
20 {target$^openfoam17$:}href="https://github.com/OpenCFD/OpenFOAM-1.7.x/commit/{commitId}"
21 {target$^freefoam$:}href="http://repo.or.cz/w/freefoam.git?a=commit;h={commitId}"
25 <a href="../man{manvolnum}/{target}.{manvolnum}.html">{target}{manvolnum?({manvolnum})}</a>
28 {foam-use-pngmath,imageref%}\({passtext}\)
29 {foam-use-pngmath+imageref#}<img src="{imageref}" alt="{passtext}"/>
32 <div class="mathblock{role? {role}}"{id? id="{id}"}>
34 <div class="title">{title}</div>
35 {foam-use-pngmath,imageref%}{passtext}
36 {foam-use-pngmath+imageref#}<img src="{imageref}" alt="{passtext}"/>
40 template::[mathblock-template]
44 template::[mathblock-template]
46 [menuselection-inlinemacro]
47 <span class="menuchoice"><span class="guimenu">{menuname}</span>
48 {menuitems#}→{eval:'→'.join(map(lambda s: '<span class="guimenuitem">'+s.strip()+'</span>', '{menuitems}'.split('-→')))}
51 [diskitem-inlinemacro]
52 <span class="{name@dir:directory:file}">{passtext}</span>
55 <span class="option">{passtext}</span>
58 <span class="{name}">{passtext}</span>
60 [download_links-inlinemacro]
61 <a href="{basedown}/{target}/freefoam-{target}.tar.bz2/download">freefoam-{target}.tar.bz2</a>
62 (<a href="{basedown}/{target}/freefoam-{target}.tar.bz2.md5/download">md5</a>
63 <a href="{basedown}/{target}/freefoam-{target}.tar.bz2.sha1/download">sha1</a>
64 <a href="{basedown}/{target}/freefoam-{target}.tar.bz2.sig/download">GPG</a>)
68 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
69 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
70 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
72 <meta http-equiv="Content-Type" content="text/html; charset={encoding}" />
73 <meta name="generator" content="AsciiDoc {asciidoc-version}" />
75 <meta name="description" content="The Cross-Platform CFD Toolkit" />
76 <meta name="description" content="FreeFOAM is an open-source, cross-platform Toolkit for Computational Fluid Dynamics (CFD) based on OpenFOAM (R)." />
77 <meta name="keywords" content="FreeFOAM, Computational Fluid Dynamics, CFD, C++, Open Source" />
80 <link rel="stylesheet" href="{stylesdir={eval:CONF_DIR}/stylesheets}/{theme={foam-use-new-files?asciidoc}{foam-use-new-files!{backend}}}.css" type="text/css" />
81 <link rel="stylesheet" href="{foam-stylesdir={docdir}/doc/css}/layout.css" type="text/css" />
84 <style type="text/css">
85 include1::{stylesdir={eval:CONF_DIR}/stylesheets}/{theme={foam-use-new-files?asciidoc}{foam-use-new-files!{backend}}}.css[]
86 include1::{foam-stylesdir={docdir}/doc/css}/layout.css[]
89 # only for asciidoc-generated files, don't include in Doxygen header
90 <style type="text/css"> <!--
91 a, a:visited, a:visited:hover { color: #d40000; text-decoration: none; }
93 <script type="text/javascript">/*<![CDATA[*/
94 window.onload = function()\{asciidoc.footnotes();{toc? asciidoc.toc({toclevels});}\}
98 <script type="text/javascript" src="{scriptsdir={eval:CONF_DIR}/javascripts}/{asciidoc_js}"></script>
101 include1::{scriptsdir={eval:CONF_DIR}/javascripts}/{asciidoc_js}[]
104 ifdef::foam-use-mathjax[]
105 # never include1::[] MathJax.js, that wouldn't work
106 <script type="text/javascript"
107 src="{foam-mathjax-url=http://cdn.mathjax.org/mathjax/latest}/MathJax.js?config=default"/>
109 <script type="text/javascript" src="{foam-scriptsdir={docdir}/doc/js}/MathJaxMacros.js"/>
112 <script type="text/javascript">/*<![CDATA[*/
113 include1::{foam-scriptsdir={docdir}/doc/js}/MathJaxMacros.js[]
116 endif::foam-use-mathjax[]
117 <meta name="source_file" content="{docfile}" />
118 <title>{doctitle}</title>
121 <div id="layout-banner-box">
122 <div id="layout-banner">
123 <a href="{homepage}/index.html">
124 <img id="layout-title" alt="FreeFOAM"
125 {data-uri%}src="{imagesdir={docdir}/doc/img}/FreeFOAMLogo.png"/>
126 {data-uri#}src="data:image/png;base64,
127 {data-uri#}{sys:python -uc "import base64,sys; base64.encode(open('{imagesdir={docdir}/doc/img}/FreeFOAMLogo.png'),sys.stdout)"}"/>
129 <img id="layout-description" alt="The Cross-Platform CFD Toolkit"
130 {data-uri%}src="{imagesdir={docdir}/doc/img}/CrossPlatformToolkit.png"/>
131 {data-uri#}src="data:image/png;base64,
132 {data-uri#}{sys:python -uc "import base64,sys; base64.encode(open('{imagesdir={docdir}/doc/img}/CrossPlatformToolkit.png'),sys.stdout)"}"/>
135 <div id="layout-menu-box">
136 <div id="layout-menu">
138 <li><a href="{homepage}/index.html"{index-only? class="current_page"}>Home</a></li>
139 <li><a href="{homepage}/downloads/index.html"{docfile@.*/downloads/: class="current_page"}>Downloads</a></li>
140 <li><a href="{homepage}/documentation.html"{docfile@.*/documentation.txt: class="current_page"}>Documentation</a></li>
144 <li><a href="{rel-doc}/INSTALL.html"{docfile@.*INSTALL: class="current_page"}>Installation</a></li>
145 <li><a href="{foam-have-ug,foam-doc-for_sf?{rel-doc}}{foam-have-ug={homepage}/doc/v{fullver}}/UserGuide/index.html">
146 User Guide</a></li>
147 <li><a href="{foam-have-man,foam-doc-for-sf?{rel-doc}}{foam-have-man={homepage}/doc/v{fullver}}/man/man1/freefoam.1.html">
149 <li><a href="{foam-have-doxy,foam-doc-for_sf?{rel-doc}}{foam-have-doxy={homepage}/doc/v{fullver}}/API/index.html">
150 API Documentation</a></li>
151 <li><a href="{rel-doc}/README.html"{docfile@.*README: class="current_page"}>README</a></li>
152 <li><a href="{rel-doc}/ReleaseNotes.html"{docfile@.*ReleaseNotes: class="current_page"}>Release Notes</a></li>
153 <li><a href="{rel-doc}/ChangeLog.html"{docfile@.*ChangeLog: class="current_page"}>Changes</a></li>
154 <li><a href="{rel-doc}/COPYING.html"{docfile@.*COPYING: class="current_page"}>License</a></li>
158 <li><a href="{homepage}/support.html"{docfile@.*support.txt: class="current_page"}>Support</a></li>
159 <li><a href="http://www.sourceforge.net/projects/freefoam">SourceForge Project</a></li>
162 ifdef::foam-doc-for_sf[]
164 Hosted by SourceForge:<br />
165 <a href="http://sourceforge.net/projects/freefoam">
167 src="http://sflogo.sourceforge.net/sflogo.php?group_id=215833&type=12"
168 width="120" height="30" alt="Get FreeFOAM at SourceForge.net. Fast, secure and
169 Free Open Source software downloads" />
172 endif::foam-doc-for_sf[]
174 <div id="layout-content-box">
175 <div id="layout-content">
176 # Article, book header.
179 <span id="author">{author}</span><br />
180 <span id="email"><tt><<a href="mailto:{email}">{email}</a>></tt></span><br />
181 {authored}<span id="revision">version {revnumber}{revdate?,}</span>
184 ifdef::toc[{template:toc}]
189 <div id="footnotes"><hr /></div>
191 <div id="footer-text">
192 Version {revnumber}<br/>
193 Last updated {localdate} {localtime}<br/>
194 Copyright © 2008-{eval:time.strftime('%Y\n')} Michael Wild and Gerber van der Graaf
204 # vim: ft=conf sw=2 expandtab fenc=utf-8 :