mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 04:52:23 +00:00
Help+LibManual: Move URL handling to LibManual
This commit is contained in:
parent
a676cf658b
commit
2aa374eba1
Notes:
sideshowbarker
2024-07-17 06:09:44 +09:00
Author: https://github.com/kleinesfilmroellchen
Commit: 2aa374eba1
Pull-request: https://github.com/SerenityOS/serenity/pull/16495
Reviewed-by: https://github.com/ADKaster ✅
3 changed files with 44 additions and 28 deletions
|
@ -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&);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue