From d51bbe1e2000a5f197af6afc04880a596530dde4 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 2 Jan 2021 02:38:36 +0100 Subject: [PATCH] Help: Add a simple index page Let's show something a bit more welcoming than empty white when the user launches the Help application. :^) --- Applications/Help/main.cpp | 4 ++++ Base/usr/share/man/man7/Help-index.md | 15 +++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 Base/usr/share/man/man7/Help-index.md diff --git a/Applications/Help/main.cpp b/Applications/Help/main.cpp index 3dfe80c3af..2fa09bf314 100644 --- a/Applications/Help/main.cpp +++ b/Applications/Help/main.cpp @@ -287,6 +287,10 @@ int main(int argc, char* argv[]) auto& search_model = *static_cast(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); diff --git a/Base/usr/share/man/man7/Help-index.md b/Base/usr/share/man/man7/Help-index.md new file mode 100644 index 0000000000..5333916246 --- /dev/null +++ b/Base/usr/share/man/man7/Help-index.md @@ -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!*** \ No newline at end of file