Adds first prototype code to create navigation categories, needs majour cleanup and optimisations

This commit is contained in:
Rosia E Evans 2023-10-11 00:19:40 +01:00
parent 2fbec8869d
commit 82e1d9fc0c
23 changed files with 237 additions and 324 deletions

View file

@ -42,7 +42,14 @@ private:
int calculateIdentifierLocation(std::string id, std::string text);
void collectPages();
// TODO separate these into a separate object
std::string navHeader = "\n<h1>Navigation</h1>\n\n";
std::string generateNavSection();
std::string generateCategories(std::string rootFolderUrl);
std::string insertPagesIntoCategories(std::string categories);
std::string findDeepestCategory(std::string url);
void createPage(Page* page);
bool isOptionEnabled(int flag);