1
Fork 0
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:
Sergey Bugaev 2019-09-21 00:47:31 +03:00 committed by Andreas Kling
parent 6ec625d6f3
commit 02ee8cbbe2
12 changed files with 349 additions and 1 deletions

View 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());
}