mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 10:01:13 +09: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:
parent
2e613db999
commit
dad47a3dd1
Notes:
sideshowbarker
2024-07-18 02:03:09 +09:00
Author: https://github.com/BenWiederhake
Commit: dad47a3dd1
Pull-request: https://github.com/SerenityOS/serenity/pull/10549
Reviewed-by: https://github.com/IdanHo ✅
5 changed files with 66 additions and 31 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue