mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-24 11:11:51 +00:00
Applications: Add a new Help app
This is a neat simple app that can display the Serenity manual ^)
This commit is contained in:
parent
6ec625d6f3
commit
02ee8cbbe2
Notes:
sideshowbarker
2024-07-19 11:55:04 +09:00
Author: https://github.com/bugaevc
Commit: 02ee8cbbe2
Pull-request: https://github.com/SerenityOS/serenity/pull/609
Reviewed-by: https://github.com/awesomekling ✅
12 changed files with 349 additions and 1 deletions
18
Applications/Help/ManualPageNode.cpp
Normal file
18
Applications/Help/ManualPageNode.cpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
#include "ManualPageNode.h"
|
||||
#include "ManualSectionNode.h"
|
||||
|
||||
const ManualNode* ManualPageNode::parent() const
|
||||
{
|
||||
return &m_section;
|
||||
}
|
||||
|
||||
NonnullOwnPtrVector<ManualNode>& ManualPageNode::children() const
|
||||
{
|
||||
static NonnullOwnPtrVector<ManualNode> empty_vector;
|
||||
return empty_vector;
|
||||
}
|
||||
|
||||
String ManualPageNode::path() const
|
||||
{
|
||||
return String::format("%s/%s.md", m_section.path().characters(), m_page.characters());
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue