From f1e97bcc4f07cda5aea6b0b03cc8221cc5026dcb Mon Sep 17 00:00:00 2001 From: Andre Wanlin <67169551+awanlin@users.noreply.github.com> Date: Wed, 10 Aug 2022 10:13:34 -0500 Subject: [PATCH 1/3] Added back reduction in size Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com> --- .../techdocs/src/reader/transformers/styles/rules/typeset.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/techdocs/src/reader/transformers/styles/rules/typeset.ts b/plugins/techdocs/src/reader/transformers/styles/rules/typeset.ts index 6a3b0461ef..4c1eef1ea4 100644 --- a/plugins/techdocs/src/reader/transformers/styles/rules/typeset.ts +++ b/plugins/techdocs/src/reader/transformers/styles/rules/typeset.ts @@ -47,7 +47,8 @@ ${headings.reduce((style, heading) => { let factor: number | string = 1; if (typeof value === 'number') { // convert px to rem - factor = value / htmlFontSize; + // 60% of the size defined because it is too big + factor = (value / htmlFontSize) * 0.6; } if (typeof value === 'string') { factor = value.replace('rem', ''); From e924d2d01326512741c4c96662a544abf540ac8b Mon Sep 17 00:00:00 2001 From: Andre Wanlin <67169551+awanlin@users.noreply.github.com> Date: Wed, 10 Aug 2022 10:15:15 -0500 Subject: [PATCH 2/3] Added changeset Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com> --- .changeset/dull-fans-hug.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/dull-fans-hug.md diff --git a/.changeset/dull-fans-hug.md b/.changeset/dull-fans-hug.md new file mode 100644 index 0000000000..6328e3d9f2 --- /dev/null +++ b/.changeset/dull-fans-hug.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-techdocs': patch +--- + +Added back reduction in size, this fixes the extermly large TeachDocs headings From 07efab5b291841b7e8eabf68994c575a1a807fac Mon Sep 17 00:00:00 2001 From: Andre Wanlin <67169551+awanlin@users.noreply.github.com> Date: Thu, 11 Aug 2022 07:24:42 -0500 Subject: [PATCH 3/3] Corrected typo Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com> --- .changeset/dull-fans-hug.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/dull-fans-hug.md b/.changeset/dull-fans-hug.md index 6328e3d9f2..562ef62bc0 100644 --- a/.changeset/dull-fans-hug.md +++ b/.changeset/dull-fans-hug.md @@ -2,4 +2,4 @@ '@backstage/plugin-techdocs': patch --- -Added back reduction in size, this fixes the extermly large TeachDocs headings +Added back reduction in size, this fixes the extremely large TeachDocs headings