1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:48:12 +00:00

Help+LibManual: Move all manpage path handling to LibManual

This way, we'll have an easier time changing these paths.
This commit is contained in:
kleines Filmröllchen 2022-06-24 01:06:24 +02:00 committed by Linus Groh
parent 16ca41ec10
commit a438c4d568
6 changed files with 66 additions and 14 deletions

View file

@ -6,6 +6,7 @@
#include "SectionNode.h"
#include "PageNode.h"
#include "Path.h"
#include <AK/LexicalPath.h>
#include <AK/QuickSort.h>
#include <LibCore/DirIterator.h>
@ -14,7 +15,7 @@ namespace Manual {
ErrorOr<String> SectionNode::path() const
{
return String::formatted("/usr/share/man/man{}", m_section);
return String::formatted("{}/{}{}", manual_base_path, top_level_section_prefix, m_section);
}
ErrorOr<String> SectionNode::name() const