1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:27:43 +00:00

Help+LibManual: Move URL handling to LibManual

This commit is contained in:
kleines Filmröllchen 2022-12-14 17:12:44 +01:00 committed by Andrew Kaster
parent a676cf658b
commit 2aa374eba1
3 changed files with 44 additions and 28 deletions

View file

@ -33,6 +33,10 @@ public:
// [section] [page]
// Help can also (externally) handle search queries, which is not possible (yet) in man.
static ErrorOr<NonnullRefPtr<PageNode>> try_create_from_query(Vector<StringView, 2> const& query_parameters);
// Finds a page via the help://man/<number>/<subsections...>/page URLs.
// This will automatically start discovering pages by inspecting the filesystem.
static ErrorOr<NonnullRefPtr<Node>> try_find_from_help_url(URL const&);
};
}