1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:14:58 +00:00

man.serenityos.org: Use pandoc for listings and landing page

This makes all pages look and feel the same, because they all use the
default CSS generated by pandoc. Also, it inserts the banner everywhere
at the top, not only into the top-level index.html.

Credit to @xSlendiX for suggesting that `-B` works here.
This commit is contained in:
Ben Wiederhake 2021-10-20 21:52:34 +02:00 committed by Idan Horowitz
parent 2e613db999
commit dad47a3dd1
5 changed files with 66 additions and 31 deletions

View file

@ -37,8 +37,16 @@ static bool is_missing_file_acceptable(String const& filename)
"/usr/share/man/man2/open.md",
"/usr/share/man/man2/ptrace.md",
"/usr/share/man/man5/perfcore.md",
// This one is okay:
// These ones are okay:
"/home/anon/js-tests/test-common.js",
"/man1/index.html",
"/man2/index.html",
"/man3/index.html",
"/man4/index.html",
"/man5/index.html",
"/man6/index.html",
"/man7/index.html",
"/man8/index.html",
};
for (auto const& suffix : acceptable_missing_files) {
if (filename.ends_with(suffix))