Inlined the style to the doc html. Inlining markdeep itself doesn't seem to work though.

This commit is contained in:
Relintai 2024-01-21 02:13:36 +01:00
parent 4e53b7051d
commit a60a0ca4fd
2 changed files with 9 additions and 2 deletions

View File

@ -1512,6 +1512,8 @@ $LICENSES_Renderer$
<script>markdeepOptions = {tocStyle:'long', definitionStyle:'long', linkAPIDefinitions: true};</script>
<link rel="stylesheet" href="slate.css">
<!-- Markdeep: --><style class="fallback">body{visibility:hidden;white-space:pre;font-family:monospace}</style><script src="markdeep.min.js"></script><script src="https://casual-effects.com/markdeep/latest/markdeep.min.js?"></script><script>window.alreadyProcessedMarkdeep||(document.body.style.visibility="visible")</script>
<style>$MARKDEEP_THEME$</style>
<!-- Markdeep: --><style class="fallback">body{visibility:hidden;white-space:pre;font-family:monospace}</style>
<script src="markdeep.min.js"></script>
<script>window.alreadyProcessedMarkdeep||(document.body.style.visibility="visible")</script>

View File

@ -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) {