Skip to content

Commit

Permalink
Add an empty sidebar to concepts
Browse files Browse the repository at this point in the history
  • Loading branch information
danakj committed Sep 1, 2023
1 parent ff5b253 commit 2b58dab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion subdoc/lib/gen/generate_concept.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "subdoc/lib/gen/generate_cpp_path.h"
#include "subdoc/lib/gen/generate_head.h"
#include "subdoc/lib/gen/generate_requires.h"
#include "subdoc/lib/gen/generate_sidebar.h"
#include "subdoc/lib/gen/html_writer.h"
#include "subdoc/lib/gen/markdown_to_html.h"
#include "subdoc/lib/gen/options.h"
Expand Down Expand Up @@ -158,8 +159,12 @@ sus::Result<void, MarkdownToHtmlError> generate_concept(
}

auto body = html.open_body();
generate_sidebar(body, db, "concept", element.name, "",
// TODO: links to what?
sus::vec(), options);

auto record_div = body.open_div();
auto main = body.open_main();
auto record_div = main.open_div();
record_div.add_class("concept");
generate_concept_overview(record_div, element, namespaces, md_html, options);
return sus::ok();
Expand Down

0 comments on commit 2b58dab

Please sign in to comment.