2020-01-18 11:38:21 +03:00
|
|
|
/*
|
2020-01-24 16:45:29 +03:00
|
|
|
* Copyright (c) 2019-2020, Sergey Bugaev <bugaevc@serenityos.org>
|
2022-02-10 22:28:48 +03:00
|
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
2020-01-18 11:38:21 +03:00
|
|
|
*
|
2021-04-22 11:24:48 +03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 11:38:21 +03:00
|
|
|
*/
|
|
|
|
|
2019-09-21 00:47:31 +03:00
|
|
|
#include "ManualPageNode.h"
|
|
|
|
#include "ManualSectionNode.h"
|
|
|
|
|
2022-04-01 20:58:27 +03:00
|
|
|
ManualNode const* ManualPageNode::parent() const
|
2019-09-21 00:47:31 +03:00
|
|
|
{
|
|
|
|
return &m_section;
|
|
|
|
}
|
|
|
|
|
|
|
|
NonnullOwnPtrVector<ManualNode>& ManualPageNode::children() const
|
|
|
|
{
|
|
|
|
static NonnullOwnPtrVector<ManualNode> empty_vector;
|
|
|
|
return empty_vector;
|
|
|
|
}
|
|
|
|
|
|
|
|
String ManualPageNode::path() const
|
|
|
|
{
|
2020-10-05 19:05:35 +03:00
|
|
|
return String::formatted("{}/{}.md", m_section.path(), m_page);
|
2019-09-21 00:47:31 +03:00
|
|
|
}
|