From b371875e02cce2fb3fbb9fbb8f07eb5817ae0e8f Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Wed, 29 Mar 2017 15:03:43 -0300 Subject: 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. --- docs/theme/extra/images/favicon.png | Bin 0 -> 9637 bytes docs/theme/extra/images/meson_logo.png | Bin 0 -> 8008 bytes docs/theme/extra/prism_components/prism-meson.js | 16 +++++++++ .../extra/prism_components/prism-meson.min.js | 1 + docs/theme/extra/templates/brand-logo.html | 1 + docs/theme/extra/templates/extra_head.html | 3 ++ docs/theme/extra/templates/navbar_center.html | 1 + docs/theme/extra/templates/navbar_links.html | 39 +++++++++++++++++++++ 8 files changed, 61 insertions(+) create mode 100644 docs/theme/extra/images/favicon.png create mode 100644 docs/theme/extra/images/meson_logo.png create mode 100644 docs/theme/extra/prism_components/prism-meson.js create mode 100644 docs/theme/extra/prism_components/prism-meson.min.js create mode 100644 docs/theme/extra/templates/brand-logo.html create mode 100644 docs/theme/extra/templates/extra_head.html create mode 100644 docs/theme/extra/templates/navbar_center.html create mode 100644 docs/theme/extra/templates/navbar_links.html (limited to 'docs/theme') diff --git a/docs/theme/extra/images/favicon.png b/docs/theme/extra/images/favicon.png new file mode 100644 index 000000000..5e7b9410d Binary files /dev/null and b/docs/theme/extra/images/favicon.png differ diff --git a/docs/theme/extra/images/meson_logo.png b/docs/theme/extra/images/meson_logo.png new file mode 100644 index 000000000..2720af507 Binary files /dev/null and b/docs/theme/extra/images/meson_logo.png 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 000000000..242af19b4 --- /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 000000000..7bf90e06f --- /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 000000000..7a12347d9 --- /dev/null +++ b/docs/theme/extra/templates/brand-logo.html @@ -0,0 +1 @@ +Home diff --git a/docs/theme/extra/templates/extra_head.html b/docs/theme/extra/templates/extra_head.html new file mode 100644 index 000000000..012f3255c --- /dev/null +++ b/docs/theme/extra/templates/extra_head.html @@ -0,0 +1,3 @@ +The MesonĀ® Build System + + diff --git a/docs/theme/extra/templates/navbar_center.html b/docs/theme/extra/templates/navbar_center.html new file mode 100644 index 000000000..9934be792 --- /dev/null +++ b/docs/theme/extra/templates/navbar_center.html @@ -0,0 +1 @@ +

The Meson Build System

diff --git a/docs/theme/extra/templates/navbar_links.html b/docs/theme/extra/templates/navbar_links.html new file mode 100644 index 000000000..8a3f51544 --- /dev/null +++ b/docs/theme/extra/templates/navbar_links.html @@ -0,0 +1,39 @@ +@require(page) + + +\ + -- cgit v1.2.3