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:
parent
a676cf658b
commit
2aa374eba1
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