aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-12-28 00:01:31 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2017-12-31 23:24:29 +0200
commit4a189cf8c53e22b747521cae93c18cac3a45cc5a (patch)
tree14f77b4d494cdb4d83dd1e177ef79d43ba7a398d /docs/markdown
parentf1afd44b2b2fb85de1c55408b46e50b4381f50d2 (diff)
downloadmeson-4a189cf8c53e22b747521cae93c18cac3a45cc5a.zip
meson-4a189cf8c53e22b747521cae93c18cac3a45cc5a.tar.gz
meson-4a189cf8c53e22b747521cae93c18cac3a45cc5a.tar.bz2
Add unit test that checks that the sample projects compile.
Diffstat (limited to 'docs/markdown')
-rw-r--r--docs/markdown/Project-templates.md4
-rw-r--r--docs/markdown/snippets/templates.md8
2 files changed, 11 insertions, 1 deletions
diff --git a/docs/markdown/Project-templates.md b/docs/markdown/Project-templates.md
index dd86e13..d8459c6 100644
--- a/docs/markdown/Project-templates.md
+++ b/docs/markdown/Project-templates.md
@@ -2,7 +2,7 @@
short-description: Project templates
...
-# Project templates (available since 0.45.0)
+# Project templates
To make it easier for new developers to start working, Meson ships a
tool to generate the basic setup of different kinds of projects. This
@@ -26,3 +26,5 @@ $ ninja -C builddir
The generator has many different projects and settings. They can all
be listed by invoking the command `meson test --help`.
+
+This feature is available since Meson version 0.45.0.
diff --git a/docs/markdown/snippets/templates.md b/docs/markdown/snippets/templates.md
new file mode 100644
index 0000000..6f0474d
--- /dev/null
+++ b/docs/markdown/snippets/templates.md
@@ -0,0 +1,8 @@
+## Project templates
+
+Meson ships with predefined project templates. To start a new project from
+scratch, simply go to an empty directory and type:
+
+```meson
+meson init --name=myproject --type=executable --language=c
+```