diff options
Diffstat (limited to 'meson/docs/meson.build')
-rw-r--r-- | meson/docs/meson.build | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meson/docs/meson.build b/meson/docs/meson.build new file mode 100644 index 000000000..73693353d --- /dev/null +++ b/meson/docs/meson.build @@ -0,0 +1,41 @@ +project('Meson documentation', version: '1.0') + +cur_bdir = meson.current_build_dir() + +# Only the script knows which files are being generated +docs_gen = custom_target( + 'gen_docs', + input: files('markdown/index.md'), + output: 'gen_docs.stamp', + command: [ + files('../tools/regenerate_docs.py'), + '--output-dir', cur_bdir, + '--dummy-output-file', '@OUTPUT@', + ], + build_by_default: true, + install: false) + +hotdoc = import('hotdoc') +documentation = hotdoc.generate_doc(meson.project_name(), + project_version: meson.project_version(), + sitemap: 'sitemap.txt', + build_by_default: true, + depends: docs_gen, + index: 'markdown/index.md', + install: false, + extra_assets: ['images/'], + include_paths: ['markdown', cur_bdir], + default_license: 'CC-BY-SAv4.0', + html_extra_theme: join_paths('theme', 'extra'), + git_upload_repository: 'git@github.com:mesonbuild/mesonbuild.github.io.git', + edit_on_github_repository: 'https://github.com/mesonbuild/meson', + syntax_highlighting_activate: true, +) + +run_target('upload', + command: [find_program('hotdoc'), 'run', + '--conf-file', documentation.config_path(), + '--git-upload', + '-vv', + ], +) |