From a60a0ca4fda51e825d5ab2b8b0ed2e7d4afecd33 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 21 Jan 2024 02:13:36 +0100 Subject: [PATCH] Inlined the style to the doc html. Inlining markdeep itself doesn't seem to work though. --- tools/doc/index_template.md.html | 6 ++++-- tools/doc/main.cpp | 5 +++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/tools/doc/index_template.md.html b/tools/doc/index_template.md.html index ac3b778..dc30f16 100644 --- a/tools/doc/index_template.md.html +++ b/tools/doc/index_template.md.html @@ -1512,6 +1512,8 @@ $LICENSES_Renderer$ - - + + + + diff --git a/tools/doc/main.cpp b/tools/doc/main.cpp index 87f7c12..b3a8c8a 100644 --- a/tools/doc/main.cpp +++ b/tools/doc/main.cpp @@ -541,11 +541,16 @@ void process_file(const String &path, bool write_remaining) { String compilation_no_renderer = FileAccess::get_file_as_string("compilation_no_renderer.md.html"); String compilation_renderer = FileAccess::get_file_as_string("compilation_renderer.md.html"); String licenses_renderer = FileAccess::get_file_as_string("licenses_renderer.md.html"); + String markdeep_min_js = FileAccess::get_file_as_string("markdeep.min.js"); + String markdeep_theme = FileAccess::get_file_as_string("slate.css"); index_str = index_str.replace("$FILE_Compilation_No_Renderer$", compilation_no_renderer); index_str = index_str.replace("$FILE_Compilation_Renderer$", compilation_renderer); index_str = index_str.replace("$LICENSES_Renderer$", licenses_renderer); + index_str = index_str.replace("$MARKDEEP_MIN_JS$", markdeep_min_js); + index_str = index_str.replace("$MARKDEEP_THEME$", markdeep_theme); + FileAccess::write_file("out/index.md.html", index_str); if (write_remaining) {