aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2021-08-21 16:27:08 +0200
committerDaniel Mensinger <daniel@mensinger-ka.de>2021-10-03 11:46:34 +0200
commit7cfe7ccc58863dfeaf6ce253848e4858350ca2ec (patch)
tree5c2035b789deb515bf273f0e0f4a87c0cad235f0 /docs
parent476b93fd74ac8f7890ffb8d451de5ddc7be5f5c6 (diff)
downloadmeson-7cfe7ccc58863dfeaf6ce253848e4858350ca2ec.zip
meson-7cfe7ccc58863dfeaf6ce253848e4858350ca2ec.tar.gz
meson-7cfe7ccc58863dfeaf6ce253848e4858350ca2ec.tar.bz2
docs: Hook up the new RefMan generator to Meson
Diffstat (limited to 'docs')
-rw-r--r--docs/meson.build18
-rw-r--r--docs/sitemap.txt1
2 files changed, 18 insertions, 1 deletions
diff --git a/docs/meson.build b/docs/meson.build
index 7369335..9bd80ba 100644
--- a/docs/meson.build
+++ b/docs/meson.build
@@ -15,10 +15,25 @@ docs_gen = custom_target(
build_by_default: true,
install: false)
+refman_gen = custom_target(
+ 'gen_refman',
+ input: files('sitemap.txt'),
+ output: 'configured_sitemap.txt',
+ depfile: 'reman_dep.d',
+ command: [
+ find_program('./genrefman.py'),
+ '-g', 'md',
+ '-s', '@INPUT@',
+ '-o', '@OUTPUT@',
+ '--depfile', '@DEPFILE@',
+ '--force-color',
+ ],
+)
+
hotdoc = import('hotdoc')
documentation = hotdoc.generate_doc(meson.project_name(),
project_version: meson.project_version(),
- sitemap: 'sitemap.txt',
+ sitemap: refman_gen,
build_by_default: true,
depends: docs_gen,
index: 'markdown/index.md',
@@ -30,6 +45,7 @@ documentation = hotdoc.generate_doc(meson.project_name(),
git_upload_repository: 'git@github.com:mesonbuild/mesonbuild.github.io.git',
edit_on_github_repository: 'https://github.com/mesonbuild/meson',
syntax_highlighting_activate: true,
+ keep_markup_in_code_blocks: true,
)
run_target('upload',
diff --git a/docs/sitemap.txt b/docs/sitemap.txt
index b659a1a..a2790eb 100644
--- a/docs/sitemap.txt
+++ b/docs/sitemap.txt
@@ -71,6 +71,7 @@ index.md
Creating-OSX-packages.md
Creating-Linux-binaries.md
Project-templates.md
+ @REFMAN_PLACEHOLDER@
Reference-manual.md
Reference-tables.md
Style-guide.md