About Social Code
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Fryzek <lucas.fryzek@fryzekconcepts.com>2025-03-14 12:33:36 +0000
committerLucas Fryzek <lucas.fryzek@fryzekconcepts.com>2025-03-14 12:33:36 +0000
commit729a439eb2e3957aa2831947bade4727f46c9696 (patch)
treea5f2059a1a2d043df92e9feadea108c26b06f856
parent4e2a79ed3db2067c6ef3631ca21e3c7d27b9fc55 (diff)
Add templates to inputs for html files
-rw-r--r--meson.build7
1 files changed, 5 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 31b9b60..d1666d7 100644
--- a/meson.build
+++ b/meson.build
@@ -43,6 +43,9 @@ main_template = join_paths(meson.source_root(), 'templates/main.html')
rss_gen = join_paths(meson.source_root(), 'tools/rss_gen.py')
meta_files = []
lua_env = {'LUA_PATH' : meson.source_root() + '/?.lua' + ';;'}
+templates = ['templates/front_page.html',
+ 'templates/main.html',
+ 'templates/note.html']
foreach source : source_doc_no_ext
source_file = join_paths(src_dir, source + '.md')
@@ -73,7 +76,7 @@ foreach source : page_doc_no_ext
source_file = join_paths(page_dir, source + '.md')
html_file = source + '.html'
custom_target(html_file,
- input : [main_template, source_file, plantuml],
+ input : [main_template, source_file, plantuml, templates],
output : html_file,
command : [pandoc, '-s', '--template', '@INPUT0@',
'@INPUT1@',
@@ -90,7 +93,7 @@ endforeach
# Generate index.html
custom_target('index.html',
- input : [front_page, main_template, 'main.md', meta_files],
+ input : [front_page, main_template, 'main.md', meta_files, templates],
output : 'index.html',
command : [pandoc, '-s', '--lua-filter', '@INPUT0@',
'--template', '@INPUT1@',