aboutsummaryrefslogtreecommitdiff
path: root/docs/theme
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@osg.samsung.com>2017-03-29 15:03:43 -0300
committerJussi Pakkanen <jpakkane@gmail.com>2017-04-26 17:56:33 +0300
commitb371875e02cce2fb3fbb9fbb8f07eb5817ae0e8f (patch)
tree6e1a3c34b1a85479d3b9f42ccd071096e637929b /docs/theme
parent7dc747ea54480c452b913e4bfe682ec67061c9bf (diff)
downloadmeson-b371875e02cce2fb3fbb9fbb8f07eb5817ae0e8f.zip
meson-b371875e02cce2fb3fbb9fbb8f07eb5817ae0e8f.tar.gz
meson-b371875e02cce2fb3fbb9fbb8f07eb5817ae0e8f.tar.bz2
docs: Import the website and wiki and build with hotdoc
This allows us to more easily have the documentation in sync with the source code as people will have to document new features etc right at the time where they implement it.
Diffstat (limited to 'docs/theme')
-rw-r--r--docs/theme/extra/images/favicon.pngbin0 -> 9637 bytes
-rw-r--r--docs/theme/extra/images/meson_logo.pngbin0 -> 8008 bytes
-rw-r--r--docs/theme/extra/prism_components/prism-meson.js16
-rw-r--r--docs/theme/extra/prism_components/prism-meson.min.js1
-rw-r--r--docs/theme/extra/templates/brand-logo.html1
-rw-r--r--docs/theme/extra/templates/extra_head.html3
-rw-r--r--docs/theme/extra/templates/navbar_center.html1
-rw-r--r--docs/theme/extra/templates/navbar_links.html39
8 files changed, 61 insertions, 0 deletions
diff --git a/docs/theme/extra/images/favicon.png b/docs/theme/extra/images/favicon.png
new file mode 100644
index 0000000..5e7b941
--- /dev/null
+++ b/docs/theme/extra/images/favicon.png
Binary files differ
diff --git a/docs/theme/extra/images/meson_logo.png b/docs/theme/extra/images/meson_logo.png
new file mode 100644
index 0000000..2720af5
--- /dev/null
+++ b/docs/theme/extra/images/meson_logo.png
Binary files differ
diff --git a/docs/theme/extra/prism_components/prism-meson.js b/docs/theme/extra/prism_components/prism-meson.js
new file mode 100644
index 0000000..242af19
--- /dev/null
+++ b/docs/theme/extra/prism_components/prism-meson.js
@@ -0,0 +1,16 @@
+Prism.languages.meson= {
+ 'triple-quoted-string': {
+ 'pattern': /'''[\s\S]*?'''/,
+ 'alias': 'string'
+ },
+ 'comment': /#.*/,
+ 'string': /'(?:\\'|[^'])*'/,
+ 'number': /\b\d+(?:\.\d+)?\b/,
+ 'keyword': /\b(?:if|else|elif|endif|foreach|endforeach)\b/,
+ 'function': /(?=\.|\b)[a-zA-Z_]+\s*(?=\()/,
+ 'boolean': /\b(?:true|false)\b/,
+ 'builtin': /\b(?:meson|host_machine|target_machine|build_machine)(?=\.)/,
+ 'operator': /(?:[<>=*+\-/!]?=|%|\/|\*|-|\+|\b(?:or|and|not)\b)/,
+ 'punctuation': /[(),[\]]/
+ // TODO: Handle ternary ?:
+}; \ No newline at end of file
diff --git a/docs/theme/extra/prism_components/prism-meson.min.js b/docs/theme/extra/prism_components/prism-meson.min.js
new file mode 100644
index 0000000..7bf90e0
--- /dev/null
+++ b/docs/theme/extra/prism_components/prism-meson.min.js
@@ -0,0 +1 @@
+Prism.languages.meson={"triple-quoted-string":{pattern:/'''[\s\S]*?'''/,alias:"string"},comment:/#.*/,string:/'(?:\\'|[^'])*'/,number:/\b\d+(?:\.\d+)?\b/,keyword:/\b(?:if|else|elif|endif|foreach|endforeach)\b/,"function":/(?=\.|\b)[a-zA-Z_]+\s*(?=\()/,"boolean":/\b(?:true|false)\b/,builtin:/\b(?:meson|host_machine|target_machine|build_machine)(?=\.)/,operator:/(?:[<>=*+\-\/!]?=|%|\/|\*|-|\+|\b(?:or|and|not)\b)/,punctuation:/[(),[\]]/}; \ No newline at end of file
diff --git a/docs/theme/extra/templates/brand-logo.html b/docs/theme/extra/templates/brand-logo.html
new file mode 100644
index 0000000..7a12347
--- /dev/null
+++ b/docs/theme/extra/templates/brand-logo.html
@@ -0,0 +1 @@
+<img src="assets/images/meson_logo.png" alt=Home>
diff --git a/docs/theme/extra/templates/extra_head.html b/docs/theme/extra/templates/extra_head.html
new file mode 100644
index 0000000..012f325
--- /dev/null
+++ b/docs/theme/extra/templates/extra_head.html
@@ -0,0 +1,3 @@
+<title>The MesonĀ® Build System</title>
+<link rel="icon" type="image/png" href="assets/images/favicon.png">
+<link rel="shortcut icon" href="assets/images/favicon.png">
diff --git a/docs/theme/extra/templates/navbar_center.html b/docs/theme/extra/templates/navbar_center.html
new file mode 100644
index 0000000..9934be7
--- /dev/null
+++ b/docs/theme/extra/templates/navbar_center.html
@@ -0,0 +1 @@
+<p><b>The Meson Build System</b></p>
diff --git a/docs/theme/extra/templates/navbar_links.html b/docs/theme/extra/templates/navbar_links.html
new file mode 100644
index 0000000..8a3f515
--- /dev/null
+++ b/docs/theme/extra/templates/navbar_links.html
@@ -0,0 +1,39 @@
+@require(page)
+
+<li class="dropdown">
+ <a class="dropdown-toggle" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
+ Modules <span class="caret"></span>
+ </a>
+ <ul class="dropdown-menu" id="modules-menu">
+ @for tup in (("Gnome-module.html","GNOME"), \
+ ("i18n-module.html","i18n"), \
+ ("Pkgconfig-module.html","Pkgconfig"), \
+ ("Python-3-module.html","Python 3"), \
+ ("Qt4-module.html","Qt4"), \
+ ("Qt5-module.tml","Qt5"), \
+ ("RPM-module.html","RPM"), \
+ ("Windows-module.html","Windows")):
+ <li>
+ <a href="@tup[0]">@tup[1]</a>
+ </li>
+ @end
+ </ul>
+</li>
+\
+<li class="dropdown">
+ <a class="dropdown-toggle" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
+ Quick References <span class="caret"></span>
+ </a>
+ <ul class="dropdown-menu" id="quick-refs-menu">
+ @for tup in (("Reference-manual.html", "Functions"), \
+ ("Build-options.html", "Options"), \
+ ("Configuration.html", "Configuration"), \
+ ("Dependencies.html", "Dependencies"), \
+ ("Unit-tests.html", "Tests"), \
+ ("Syntax.html", "Syntax")):
+ <li>
+ <a href="@tup[0]">@tup[1]</a>
+ </li>
+ @end
+ </ul>
+</li>