mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Help: Add a simple index page
Let's show something a bit more welcoming than empty white when the user launches the Help application. :^)
This commit is contained in:
parent
042890d319
commit
d51bbe1e20
Notes:
sideshowbarker
2024-07-19 00:13:02 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/d51bbe1e200
2 changed files with 19 additions and 0 deletions
|
@ -287,6 +287,10 @@ int main(int argc, char* argv[])
|
|||
auto& search_model = *static_cast<GUI::FilteringProxyModel*>(model);
|
||||
search_model.set_filter_term(search_box.text());
|
||||
}
|
||||
} else {
|
||||
String path = "/usr/share/man/man7/Help-index.md";
|
||||
history.push(path);
|
||||
open_page(path);
|
||||
}
|
||||
|
||||
window->set_focused_widget(&left_tab_bar);
|
||||
|
|
15
Base/usr/share/man/man7/Help-index.md
Normal file
15
Base/usr/share/man/man7/Help-index.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
![Help icon](file:///res/icons/32x32/app-help.png)
|
||||
|
||||
## Welcome to the SerenityOS on-line help system!
|
||||
|
||||
This is **Help**, the built-in documentation viewer for the SerenityOS desktop environment. If you prefer a command-line interface, the [man](../man1/man.md) command offers a text-only view of the same library.
|
||||
|
||||
---
|
||||
|
||||
Documentation is divided into traditional Unix-style manual categories. Use the **Browse** tab on the left-hand side to navigate by category.
|
||||
|
||||
There's also a full-text search option under the **Search** tab.
|
||||
|
||||
---
|
||||
|
||||
Thank you for using ***SerenityOS Help!***
|
Loading…
Reference in a new issue