Skip to content

Commit f2cb156

Browse files
committed
fix(generate-solution-markup): publish solution overview as current and restructure markup
- Change page status from 'draft' to 'current' to ensure content is visible - Increment version number for the update - Restructure h1 title to remove filter labels and add dedicated h2 "Modules" section with bulleted list for better readability
1 parent 5bdad0c commit f2cb156

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

script/generate-solution-markup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ async function main() {
162162
// Sort pages by their ancestry depth to ensure proper ordering
163163
matchingPages.sort((a, b) => (a.ancestors?.length || 0) - (b.ancestors?.length || 0));
164164

165-
let markup = `h1. Solution Overview - ${solutionName} (${CONFIG.filterLabels.join(', ')})\n\n{toc}\n\n`;
165+
let markup = `h1. Solution Overview - ${solutionName}\n\n{toc}\n\nh2. Modules\n${CONFIG.filterLabels.map(label => `* ${label}`).join('\n')}\n\n`;
166166

167167
for (const page of matchingPages) {
168168
const depth = (page.ancestors?.length || 0) - (page.ancestors?.find(a => a.id === targetPageId) ? 1 : 0);
@@ -190,7 +190,7 @@ async function main() {
190190
type: 'page',
191191
title: pageTitle,
192192
space: { key: CONFIG.spaceKey },
193-
version: { number: currentVersion },
193+
version: { number: currentVersion + 1 },
194194
status: 'current', // ← changed from 'draft' so content actually shows
195195
body: {
196196
storage: {

0 commit comments

Comments
 (0)