Skip to content

Commit e013038

Browse files
committed
🎨 add tabs to overview sections
1 parent 5ec69b5 commit e013038

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/vuegen/quarto_reportview.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,14 @@ def generate_report(self, output_dir: Path = BASE_DIR) -> None:
132132
"Adding components of main section folder to the report as overall overview."
133133
)
134134
qmd_content.append("# General Overview")
135+
if is_report_revealjs:
136+
qmd_content.append("::: {.panel-tabset}\n")
135137
section_content, section_imports = self._combine_components(
136138
main_section.components
137139
)
138140
qmd_content.extend(section_content)
141+
if is_report_revealjs:
142+
qmd_content.append(":::\n")
139143
report_imports.extend(section_imports)
140144

141145
# Add the sections and subsections to the report
@@ -155,11 +159,16 @@ def generate_report(self, output_dir: Path = BASE_DIR) -> None:
155159
"Adding components of section folder to the report."
156160
)
157161
qmd_content.append(f"## Overview {section.title}".strip())
162+
163+
if is_report_revealjs:
164+
qmd_content.append("::: {.panel-tabset}\n")
158165
section_content, section_imports = self._combine_components(
159166
section.components
160167
)
161168
qmd_content.extend(section_content)
162169
report_imports.extend(section_imports)
170+
if is_report_revealjs:
171+
qmd_content.append(":::\n")
163172

164173
if section.subsections:
165174
# Iterate through subsections and integrate them into the section file

0 commit comments

Comments
 (0)