mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 14:35:07 +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
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