From 3be3e61e73215b30d00743e462e3c6b33cf66beb Mon Sep 17 00:00:00 2001 From: Joe Skeen Date: Thu, 15 Dec 2022 11:27:33 -0700 Subject: [PATCH 1/2] =?UTF-8?q?=E2=98=9D=EF=B8=8F=20fix=20#53?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All generic parameters should appear on the same line in the docs --- lib/typeUtils.js | 3 ++- src/static/css/docs.scss | 16 +++++++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/lib/typeUtils.js b/lib/typeUtils.js index 1ec7a29..85d8699 100644 --- a/lib/typeUtils.js +++ b/lib/typeUtils.js @@ -14,10 +14,11 @@ module.exports = { } if (!type.type) { - let str = `${type.name}`; + let str = `
${type.name}`; if (type.arguments.length > 0) { str += `🐚${type.arguments.map(arg => this.link(arg)).join('')}🍆`; } + str += '
'; return str; } diff --git a/src/static/css/docs.scss b/src/static/css/docs.scss index 3c03a15..3e18f41 100644 --- a/src/static/css/docs.scss +++ b/src/static/css/docs.scss @@ -190,10 +190,11 @@ section, } .link-list { + > * { + display: block; + } + a { - display: flex; - align-items: center; - width: 100%; padding: 0.2em; margin: 0; border: 2px solid $p-gray; @@ -222,6 +223,15 @@ section, border-bottom-right-radius: 4px; } } + + + .type { + display: block; + + > * { + display: inline-block; + } + } } .toc { From 914fd5b58bb33ba24488112ef4780b42970e0529 Mon Sep 17 00:00:00 2001 From: Joe Skeen Date: Fri, 16 Dec 2022 08:39:38 -0700 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=91=8Dfix=20broken=20format=20elsewhe?= =?UTF-8?q?re?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/static/css/docs.scss | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/src/static/css/docs.scss b/src/static/css/docs.scss index 3e18f41..752b7be 100644 --- a/src/static/css/docs.scss +++ b/src/static/css/docs.scss @@ -189,12 +189,26 @@ section, font-size: 36px; } -.link-list { +.toc .link-list { > * { display: block; } + .type { + display: block; + + > * { + display: inline-block; + width: unset; + } + } +} + +.link-list { a { + display: flex; + align-items: center; + width: 100%; padding: 0.2em; margin: 0; border: 2px solid $p-gray; @@ -223,15 +237,6 @@ section, border-bottom-right-radius: 4px; } } - - - .type { - display: block; - - > * { - display: inline-block; - } - } } .toc {