From 225d473c12db2b2f73b82298035297065c7c37fe Mon Sep 17 00:00:00 2001 From: Bart van Kleef Date: Tue, 9 Nov 2021 16:58:22 +0100 Subject: [PATCH] Set toc style of child items to alternate color instead of blue --- src/pdf-parts-gen.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pdf-parts-gen.js b/src/pdf-parts-gen.js index 857eca4..66e5867 100644 --- a/src/pdf-parts-gen.js +++ b/src/pdf-parts-gen.js @@ -364,8 +364,8 @@ export function getApiDef(spec, filterPath, schemaStyle, localize, includeExampl text: `${tagSeq + 1}.${pathSeq} ${path.method.toUpperCase()} ${path.path}`, style: ['topMargin3', 'mono', 'p', 'primary', 'b'], tocItem: true, - tocStyle: ['small', 'blue', 'mono'], - tocNumberStyle: ['small', 'blue', 'mono'], + tocStyle: ['small', 'alternate', 'mono'], // Style of toc child title + tocNumberStyle: ['small', 'alternate', 'mono'], // Style of toc child page number }); operationContent.push({ text: '', style: ['topMarginRegular'] }); @@ -462,7 +462,7 @@ export function getApiDef(spec, filterPath, schemaStyle, localize, includeExampl text: `${tagSeq}. ${tag.name.toUpperCase()}`, style: ['h2', 'b', 'primary', 'tableMargin'], tocItem: true, - tocStyle: ['small', 'b'], + tocStyle: ['small', 'b'], // Style of toc parent title tocMargin: [0, 10, 0, 0], }, tagDescrMarkDef,