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
commit 2aa374eba1
Notes: sideshowbarker 2024-07-17 06:09:44 +09:00
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&);
};
}