From 042a9b21a4c56c69f5d8b05a24630e0a383d6537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20M=C3=BCller?= Date: Wed, 17 Apr 2019 17:28:40 +0200 Subject: [PATCH 01/25] fix(docs): overall improvements --- .../fonts/Inconsolata-Regular-latin-ext.woff2 | Bin 10428 -> 0 bytes .../fonts/Inconsolata-Regular-latin.woff2 | Bin 9564 -> 0 bytes .../Inconsolata-Regular-vietnamese.woff2 | Bin 3000 -> 0 bytes docs/assets/scss/fonts.scss | 128 -------------- docs/assets/scss/styles.scss | 45 +---- docs/components/anchored-heading.js | 2 +- .../{codemirror.vue => codemirror.js} | 24 +-- docs/components/componentdoc.vue | 2 +- docs/components/feedback.js | 62 +++++++ docs/components/footer.vue | 13 +- docs/components/header.vue | 163 ++++++++++++++++++ docs/components/jsfiddle.vue | 103 ----------- docs/components/main.js | 2 +- docs/components/nav.vue | 157 ----------------- docs/components/section.js | 2 +- docs/components/sidebar.vue | 66 +++---- docs/components/toc.vue | 136 ++++++--------- docs/layouts/default.js | 8 + docs/layouts/default.vue | 18 -- docs/layouts/docs.js | 41 +++++ docs/layouts/docs.vue | 74 -------- .../markdown/reference/router-links/README.md | 4 +- docs/pages/docs/components/_slug.js | 2 +- docs/pages/docs/directives/_slug.js | 2 +- docs/pages/docs/index.js | 2 +- docs/pages/docs/misc/_slug.js | 2 +- docs/pages/docs/reference/_slug.js | 2 +- docs/pages/play.vue | 2 +- docs/plugins/codemirror.js | 2 +- docs/utils/index.js | 151 ++++++++-------- 30 files changed, 475 insertions(+), 740 deletions(-) delete mode 100644 docs/assets/fonts/Inconsolata-Regular-latin-ext.woff2 delete mode 100644 docs/assets/fonts/Inconsolata-Regular-latin.woff2 delete mode 100644 docs/assets/fonts/Inconsolata-Regular-vietnamese.woff2 delete mode 100644 docs/assets/scss/fonts.scss rename docs/components/{codemirror.vue => codemirror.js} (75%) create mode 100644 docs/components/feedback.js create mode 100644 docs/components/header.vue delete mode 100644 docs/components/jsfiddle.vue delete mode 100644 docs/components/nav.vue create mode 100644 docs/layouts/default.js delete mode 100644 docs/layouts/default.vue create mode 100644 docs/layouts/docs.js delete mode 100644 docs/layouts/docs.vue diff --git a/docs/assets/fonts/Inconsolata-Regular-latin-ext.woff2 b/docs/assets/fonts/Inconsolata-Regular-latin-ext.woff2 deleted file mode 100644 index 422a902e40f5364b35f698ca2f11f1c3c2741f58..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10428 zcmV;tC_~qGPew8T0RR9104Tfw4gdfE0A%a{04QYu0RR9100000000000000000000 z0000Qf*urGWDQ z5<=@|b`+8mHic1?EKVW&{}U3_7{dqc1hi$N=Zq@-$XN;vCUFgI zl6h;!&QjP%3_Ol|zFHpscbKUY7aFh_us9g{t>&cpqBVp=n*6qgtu&9>|I&qCMYp>H z9d5r|;2Y}PZ!KwCi%WBD4QW=5 zNef=kxen^k8Ff$xb$~n88Ff$*Aq}c;{Kp{k=O!-`?&0P=GE}iuM#1syRP&5ur1FhW>W4M!OO%)t$ z){;yk$O55&Qp*2`$KU-;sob88!bW4GX_63aN|uYBU;($^St1#x0S6Q?BoNBrK9CAj zYj6PWy4{WdvhbMB`j&X7@lD2x=!P7`d8`Iio(!>oB>4%2Ru04~RPn;!w9-G+nI}70 z?&8h)5)W%P08k>s1AFi=m8Df$i$I&8Rt*Tr8XG=$hpc2IUr>SY#L|)|G&hL{{ey|PE!Jy0zkLhd2+LJ=*@0=LV6Nv z|2MTfXx->%b)`!Cl-`U2$c&v<#>;}(tml8vbL9WDO`D=Cy(xWCeL-?q=>XNjkEYQ8 z5=24+QLJfXb}|uim#F}Aj>*#*Lh)`T-6^RG{1 zTE7o&b#oK%mn&=|5s?T1f~W*d+5B36u?fI20D!0vTtVEqgLv`UV zFtI_nxFCE25D^uKh6Y5(1Y(f`lE(&8qynT$3&=?0K-#o}%+vug*AkFrR)Vb739`Wk zkWIFM?63=DkE0;RodG%LBFJU8L3-TZE{sPE<$N^9~GzFA- zF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VGwQMCrFY=x(HONoQg)U5QiKT5kW@ma@ILl9CpM}$6StJGn^3+ zO=emdp~C#^7snB#NVZIcZ4qXIRDot2G|yb0DDypSghv~UNKvqGqQ$_A6(_z0#yzr- z-V@I~js%I4BqI#Wo|~B&SkF4Sy0RR%Euh0&&*AaKUO7i66?g%Dn#U0fqR$y~&(D{W zvP<>aoD@fE0F#6M8yEyX#p4ReDJti4B!?9T{=@g)>i<684y^EWv^#P-=OKqSu)V&i z>W+sH;(u8_5_Uy{gj4~!SQ(EHD?lrm(CdPVljvzftLm%&@n~{kK?;!%df-ox6O#qW GKo9`#5?smv diff --git a/docs/assets/fonts/Inconsolata-Regular-vietnamese.woff2 b/docs/assets/fonts/Inconsolata-Regular-vietnamese.woff2 deleted file mode 100644 index 1cfb5a4e6f943f99806a424ddd0c6b312145800f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3000 zcmV;p3rF;KPew8T0RR9101LPP4gdfE03QSZ01IIN0RR9100000000000000000000 z0000Qa2pUDAO>InfqW4N3Z)RBUJHT(00A}vBm;wF1Rw>1R0oMl8{HZam8@AO`{E#z z>)jBOP^p}wTvstHUW}LD#MZfpsxh)>A5p!65U8lU43JPjv}omStt(EmH4#JH&@!7H~B}DmKC7w>+_pSnboyM?c`YnRqb00ZfeJa?NmnLtXiJN@6nn;#(r2!Jj$YdSXcNO3GA zu$0J(mbrL5Dgqj2Vi02Ssfnd?kik(VJ4q-hgi?v5v6sw64rkfC6!BKf6~kRV4+T6G za+61@l&^ArD)_4;Q%0_uLXAMRg4GMrAXK9ubt1F~*DO-2C~Xkb8Y_TP00giM)DeJ= zRRG;50qPs>zG|BQ)he}j71kxhsru7&0<5Cjg(rIrhxSe{ZXTT@WiE6zb0jD}VQne4 zba3Qx9K6gqn1#c)baXV!E@pbcYi`) zohnr>Yt5luh$K-FSy)UKz|~pMpTSw2A2v5vE&Pj2^B;NKnEw$No9;5Ra7t`GyDdmi z|4$T;Zsp#8Dwzl$W9y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xq&*lF;N+LX!uCCa+CtO;7~ZVNx4;g1bOg{uZn~3jxeE(y2Xu1mZ-F zGszfxu-BTM0?tD=Z3kz- zfjY+pf-IxH#MUDem-|&n4#ZIV(N}OE#+#I``wQ-6`Dqd8zfkO(?Vq^U1y9r`{`G!B z{>Kx8ooT2+{#tA!LP5bdu&6zI1R^CfO!_Dir{QJ!X%Xl@#wN+5U0ecLQH!0180Rze zD|;Rr%pkA82irw*;G1@LfUsqw&(W`u*in3QuciS31;T)s&IbgXf>5|r z92hTQ)&RI@Aq1RbdlWgS(@cyOf}{n;lCT9%#j6E}kBSytj+Q6$T-beNOQC*(P1;mz zKa=j0wW!piQnp(4dgaVrf++;JTLfN$FPAib7)iK29mYgRFx^!zax!fkJjR~9v zJ^LmdqA8tj)%Dm$9V5FbhWrDzP-xeso>B&#R2YDk1;Ie<{!LE-qyU5S3XV94i+G5S z1jq~#h(zYd0$Cy}ki{C=fUsr99z{r005OMxIdbC6g@h|N?mT$%;?1W>QZl~$_zNJX zNJS}7kl+#lp~8fV5GhJDnu?l6Oa>5w5fsCTj11(mDO4Jr!DO*HTpnLgflwrtNM-U$ z6iSs^qt)pRMw8iMwb>m`m)o<9({&T{ym$ZI^#4yzQL{+O0C*(^As87I2oPNr&EX6H zyb>d+0wrq-f^!6b3XdqJ0MD*t^LxDSih{Ow04tiKz=$LBnCWPeQf)H;`2f&eElvtQ zB2DhDWzM#%lggmOP~Z@d1RyAAAUM%g8lk`;AfbUEAT&5M1SAxJZEbu4gaCoTA<2>{ z%{C1Lfo+#2gW*OwN*ng>)2N&KAuWIaW$sh)W77)e_51r4+%5fTrabSt*X^ocJ .bd-toc-link { - color: #563d7c; - font-weight: bold; -} - -.bd-toc-link, -.bd-sidenav { - .badge { - font-size: 70%; - position: relative; - bottom: 0.1rem; - } -} - .hljs { overflow-x: auto; position: relative; @@ -52,15 +24,6 @@ main { box-shadow: 0 1px 1px rgba(0, 0, 0, 0.125); } -code { - color: #795da3; -} - -blockquote { - font-size: 1.1rem; - font-weight: 300; -} - /* https://github.com/bryanbraun/anchorjs/blob/e9c248ac82cfa905ed00e804a2a1c64296b342d1/anchor.js#L306 */ .anchorjs-link { padding-left: 0.375em; @@ -79,6 +42,14 @@ blockquote { opacity: 1; } +.bd-toc { + .section-nav { + .toc-entry.active > a { + font-weight: 600; + } + } +} + .bd-content { > h1, > h2, diff --git a/docs/components/anchored-heading.js b/docs/components/anchored-heading.js index bb88e932c5c..0b2bcfcacdd 100644 --- a/docs/components/anchored-heading.js +++ b/docs/components/anchored-heading.js @@ -1,7 +1,7 @@ import { mergeData } from 'vue-functional-data-merge' export default { - name: 'BDAnchoredHeading', + name: 'BDVAnchoredHeading', functional: true, props: { id: { diff --git a/docs/components/codemirror.vue b/docs/components/codemirror.js similarity index 75% rename from docs/components/codemirror.vue rename to docs/components/codemirror.js index 623c8418831..310cd6e4b41 100644 --- a/docs/components/codemirror.vue +++ b/docs/components/codemirror.js @@ -1,30 +1,17 @@ - - - diff --git a/docs/components/componentdoc.vue b/docs/components/componentdoc.vue index a65ae311f19..11767322558 100644 --- a/docs/components/componentdoc.vue +++ b/docs/components/componentdoc.vue @@ -2,7 +2,7 @@
- + {{ tag }} diff --git a/docs/components/feedback.js b/docs/components/feedback.js new file mode 100644 index 00000000000..a652027705a --- /dev/null +++ b/docs/components/feedback.js @@ -0,0 +1,62 @@ +export default { + name: 'BDVFeedback', + data() { + return { + baseUrl: 'https://github.com/bootstrap-vue/bootstrap-vue' + } + }, + computed: { + reportIssueUrl() { + // Add appreciate query params for proper issue title + return `${this.baseUrl}/issues/new?title=Docs` + }, + editPageUrl() { + const name = this.$route.name + const slug = this.$route.params.slug + let path = '/' + if (name === 'docs') { + path = `/docs/markdown/intro/README.md` + } else if (name === 'docs-components-slug') { + path = `/src/components/${slug}/README.md` + } else if (name === 'docs-directives-slug') { + path = `/src/directives/${slug}/README.md` + } else if (name === 'docs-reference-slug') { + path = `/docs/markdown/reference/${slug}/README.md` + } else if (name === 'docs-misc-slug') { + if (slug === 'changelog') { + path = '/CHANGELOG.md' + } else if (slug === 'contributing') { + path = '/CONTRIBUTING.md' + } else if (slug === 'settings') { + path = '/docs/markdown/misc/settings/README.md' + } + } + return `${this.baseUrl}/tree/dev/${path}` + } + }, + render(h) { + const $reportIssueButton = h( + 'b-button', + { + props: { + variant: 'light', + href: this.reportIssueUrl, + target: '_blank' + } + }, + 'Report an issue' + ) + const $editPageButton = h( + 'b-button', + { + props: { + variant: 'light', + href: this.editPageUrl, + target: '_blank' + } + }, + 'Edit this page' + ) + return h('b-button-group', [$reportIssueButton, $editPageButton]) + } +} diff --git a/docs/components/footer.vue b/docs/components/footer.vue index 096c49496b1..3185651a921 100644 --- a/docs/components/footer.vue +++ b/docs/components/footer.vue @@ -1,9 +1,9 @@ @@ -31,8 +31,9 @@ import { version } from '~/content' export default { - computed: { - version: () => version + name: 'BVDFooter', + data() { + return { version } } } diff --git a/docs/components/header.vue b/docs/components/header.vue new file mode 100644 index 00000000000..e82a2c64545 --- /dev/null +++ b/docs/components/header.vue @@ -0,0 +1,163 @@ + + + + + diff --git a/docs/components/jsfiddle.vue b/docs/components/jsfiddle.vue deleted file mode 100644 index e56ec251c88..00000000000 --- a/docs/components/jsfiddle.vue +++ /dev/null @@ -1,103 +0,0 @@ - - - diff --git a/docs/components/main.js b/docs/components/main.js index 529b3381cbc..9f86ebfbc51 100644 --- a/docs/components/main.js +++ b/docs/components/main.js @@ -1,7 +1,7 @@ import { mergeData } from 'vue-functional-data-merge' export default { - name: 'BDMain', + name: 'BDVMain', functional: true, props: { tag: { diff --git a/docs/components/nav.vue b/docs/components/nav.vue deleted file mode 100644 index ef9a3bb4983..00000000000 --- a/docs/components/nav.vue +++ /dev/null @@ -1,157 +0,0 @@ - - - - - diff --git a/docs/components/section.js b/docs/components/section.js index 6285571fc88..4197f8a8cb8 100644 --- a/docs/components/section.js +++ b/docs/components/section.js @@ -1,7 +1,7 @@ import { mergeData } from 'vue-functional-data-merge' export default { - name: 'BDSection', + name: 'BDVSection', functional: true, props: { tag: { diff --git a/docs/components/sidebar.vue b/docs/components/sidebar.vue index 8d48853641d..a530a776e4b 100644 --- a/docs/components/sidebar.vue +++ b/docs/components/sidebar.vue @@ -1,57 +1,63 @@ - - diff --git a/docs/components/toc.vue b/docs/components/toc.vue index 3187898a333..735f67febe8 100644 --- a/docs/components/toc.vue +++ b/docs/components/toc.vue @@ -1,90 +1,54 @@ - - diff --git a/docs/layouts/docs.js b/docs/layouts/docs.js new file mode 100644 index 00000000000..2b6b36a9e88 --- /dev/null +++ b/docs/layouts/docs.js @@ -0,0 +1,41 @@ +import Feedback from '~/components/feedback' +import Header from '~/components/header' +import Search from '~/components/search' +import Sidebar from '~/components/sidebar.vue' +import Toc from '~/components/toc.vue' + +export default { + name: 'BVDDocsLayout', + functional: true, + render: h => { + const $sidebarCol = h( + 'b-col', + { + staticClass: 'bd-sidebar', + props: { cols: 12, md: 3, xl: 2 } + }, + [h(Search), h(Sidebar)] + ) + const $contentCol = h( + 'b-col', + { + staticClass: 'bd-content', + class: ['pb-md-3', 'pl-md-5'], + props: { cols: 12, md: 9, xl: 8 } + }, + [h(Feedback, { class: ['my-2', 'float-right'] }), h('nuxt')] + ) + const $tocCol = h( + 'b-col', + { + staticClass: 'bd-toc', + class: ['d-none', 'd-xl-block'], + props: { xl: 2 } + }, + [h(Toc)] + ) + const $row = h('b-row', { class: ['flex-xl-nowrap2'] }, [$sidebarCol, $contentCol, $tocCol]) + const $container = h('b-container', { props: { fluid: true } }, [$row]) + return [h(Header), $container] + } +} diff --git a/docs/layouts/docs.vue b/docs/layouts/docs.vue deleted file mode 100644 index d7707d63ce3..00000000000 --- a/docs/layouts/docs.vue +++ /dev/null @@ -1,74 +0,0 @@ - - - diff --git a/docs/markdown/reference/router-links/README.md b/docs/markdown/reference/router-links/README.md index eb80f226d6b..5095e017b17 100644 --- a/docs/markdown/reference/router-links/README.md +++ b/docs/markdown/reference/router-links/README.md @@ -142,8 +142,8 @@ value can also be configured globally via the `linkExactActiveClass` router cons When BootstrapVue detects that your app is running under [Nuxt.js](https://nuxtjs.org), it will render a [``](https://nuxtjs.org/api/components-nuxt-link) sub component instead of a -``. `` supports all of the above router link props, plus the following -additional Nuxt.js specific props. +``. `` supports all of the above router link props, plus the following additional +Nuxt.js specific props. ### `no-prefetch` diff --git a/docs/pages/docs/components/_slug.js b/docs/pages/docs/components/_slug.js index 3feae7c3370..5c5cdb52062 100644 --- a/docs/pages/docs/components/_slug.js +++ b/docs/pages/docs/components/_slug.js @@ -10,7 +10,7 @@ const getReadMe = name => import(`~/../src/components/${name}/README.md` /* webpackChunkName: "docs/components" */) export default { - name: 'BDComponents', + name: 'BDVComponents', layout: 'docs', mixins: [docsMixin], validate({ params }) { diff --git a/docs/pages/docs/directives/_slug.js b/docs/pages/docs/directives/_slug.js index f85feb9cbcf..9a9ff666c99 100644 --- a/docs/pages/docs/directives/_slug.js +++ b/docs/pages/docs/directives/_slug.js @@ -9,7 +9,7 @@ const getReadMe = name => import(`~/../src/directives/${name}/README.md` /* webpackChunkName: "docs/directives" */) export default { - name: 'BDDirectives', + name: 'BDVDirectives', layout: 'docs', mixins: [docsMixin], validate({ params }) { diff --git a/docs/pages/docs/index.js b/docs/pages/docs/index.js index 9a623ab4e56..29c92742fe3 100644 --- a/docs/pages/docs/index.js +++ b/docs/pages/docs/index.js @@ -11,7 +11,7 @@ import { import readme from '~/markdown/intro/README.md' export default { - name: 'BDDocs', + name: 'BDVDocs', layout: 'docs', // We use a string template here so that the docs README can do interpolation template: `
${readme}
`, diff --git a/docs/pages/docs/misc/_slug.js b/docs/pages/docs/misc/_slug.js index 7ab75b68bdc..aab8a9cb732 100644 --- a/docs/pages/docs/misc/_slug.js +++ b/docs/pages/docs/misc/_slug.js @@ -8,7 +8,7 @@ const getReadMe = name => import(`~/markdown/misc/${name}/README.md` /* webpackChunkName: "docs/misc" */) export default { - name: 'BDMisc', + name: 'BDVMisc', layout: 'docs', mixins: [docsMixin], validate({ params }) { diff --git a/docs/pages/docs/reference/_slug.js b/docs/pages/docs/reference/_slug.js index be2d07322d5..cc07aa054ea 100644 --- a/docs/pages/docs/reference/_slug.js +++ b/docs/pages/docs/reference/_slug.js @@ -7,7 +7,7 @@ const getReadMe = name => import(`~/markdown/reference/${name}/README.md` /* webpackChunkName: "docs/reference" */) export default { - name: 'BDReference', + name: 'BDVReference', layout: 'docs', mixins: [docsMixin], validate({ params }) { diff --git a/docs/pages/play.vue b/docs/pages/play.vue index e7107b700c6..92dc6af73d3 100644 --- a/docs/pages/play.vue +++ b/docs/pages/play.vue @@ -5,7 +5,7 @@

{{ title }}

Here you can interactively play and test components with a fresh Vue.js instance. Please - refer to the Docs section for more information about + refer to the Docs section for more information about available components and usage.

diff --git a/docs/plugins/codemirror.js b/docs/plugins/codemirror.js index a9b2770eba7..6e0aa29f4e6 100644 --- a/docs/plugins/codemirror.js +++ b/docs/plugins/codemirror.js @@ -1,4 +1,4 @@ import Vue from 'vue' -import CodeMirror from '../components/codemirror.vue' +import CodeMirror from '../components/codemirror' Vue.component('codemirror', CodeMirror) diff --git a/docs/utils/index.js b/docs/utils/index.js index 89e37299b5a..8601225f2bc 100644 --- a/docs/utils/index.js +++ b/docs/utils/index.js @@ -69,115 +69,118 @@ export const relativeUrl = url => { return pathname + (hash || '') } -// Process an HTML readme and create a page TOC array -// IDs are the only attribute on auto generated heading tags, so we take -// advantage of that when using our RegExpr matches -// Note IDs may not have quotes when the README's are parsed in production mode !?!? +// Process an HTML README and create a page TOC array +// IDs are the only attribute on auto generated heading tags, +// so we take advantage of that when using our RegExpr matches +// Note: IDs may not have quotes when the README's are parsed in production mode !?!? // Expected format: heading content // Also grabs meta data if available to generate auto headings export const makeTOC = (readme, meta = null) => { if (!readme) { return {} } - const toc = [] + let top = '' let title = '' + let toc = [] + let parentIdx = 0 - // Grab the first H1 tag with ID from readme + // Get the first

tag with ID const h1 = readme.match(/

]+)>(.+?)<\/h1>/) || [] if (h1) { top = `#${stripQuotes(h1[1])}` title = stripHTML(h1[2]) } - // Grab all the H2 and H3 headings with ID's from readme + // Get all the

and

headings with ID's const headings = readme.match(/ ]+>.+?<\/h\1>/g) || [] - let idx = 0 - // Process the h2 and h3 headings into a TOC structure - headings.forEach(heading => { - // Pass the link, label and heading level - const h2h3 = heading.match(/^<(h[23]) id=([^> ]+)>(.+?)<\/\1>$/) - if (h2h3) { - const tag = h2h3[1] - const href = `#${stripQuotes(h2h3[2])}` - const label = stripHTML(h2h3[3]) + // Process the

and

headings into a TOC structure + headings + // Create a match `[value, tag, id, content]` + .map(heading => heading.match(/^<(h[23]) id=([^> ]+)>(.+?)<\/\1>$/)) + // Filter out un-matched values + .filter(v => Array.isArray(v)) + // Create TOC structure + .forEach(([value, tag, id, content]) => { + const href = `#${stripQuotes(id)}` + const label = stripHTML(content) if (tag === 'h2') { toc.push({ href, label }) - idx = toc.length + parentIdx = toc.length - 1 } else if (tag === 'h3') { - // We nest h3 tags as a sub array - toc[idx] = toc[idx] || [] - toc[idx].push({ href, label }) + let parent = toc[parentIdx] + if (parent) { + // We nest

tags as a sub array + parent.toc = parent.toc || [] + parent.toc.push({ href, label }) + } } - } - }) + }) // Process meta information for component pages - // IDs for headings are defined in componentdoc.vue and importdoc.vue - if (meta && (meta.component || (meta.components && meta.components.length))) { - // Append component reference info to the TOC - const comps = [].concat(meta, meta.components).filter(m => m) - if (comps.length) { - // Add the reference heading - toc.push({ - label: 'Component reference', - href: '#component-reference' - }) - // Add component sub entries - toc.push( - comps.map(c => { - const tag = kebabCase(c.component) - return { - label: tag, - href: `#comp-ref-${tag}` + if (meta) { + const isDirective = !!meta.directive + const hasComponents = meta.components && meta.components.length > 0 + const hasDirectives = meta.directives && meta.directives.length > 0 + if (!isDirective && (hasComponents || hasDirectives)) { + let componentToc = [] + if (hasComponents) { + componentToc.push( + // Add component sub-headings + ...meta.components.map(({ component }) => { + const tag = kebabCase(component) + return { label: `<${tag}>`, href: `#comp-ref-${tag}` } + }), + // Add component import sub-heading + { + label: 'Importing individual components', + href: '#importing-individual-components' } + ) + } + // Add directive import sub-heading + if (hasDirectives) { + componentToc.push({ + label: 'Importing individual directives', + href: '#importing-individual-directives' }) - ) - // Add component import sub entry - toc[toc.length - 1].push({ - label: 'Importing individual components', - href: '#importing-individual-components' + } + // Add plugin import sub-heading + componentToc.push({ + label: 'Importing as a Vue.js plugin', + href: '#importing-as-a-plugin' + }) + // Add component reference heading + toc.push({ + label: 'Component reference', + href: '#component-reference', + toc: componentToc }) - // Add directive import sub entry - if (meta.directives && meta.directives.length) { - toc[toc.length - 1].push({ + } else if (isDirective) { + let directiveToc = [] + // Add directive import sub-heading + if (hasDirectives) { + directiveToc.push({ label: 'Importing individual directives', href: '#importing-individual-directives' }) } - // Add plugin import sub entry - toc[toc.length - 1].push({ + // Add plugin import sub-heading + directiveToc.push({ label: 'Importing as a Vue.js plugin', href: '#importing-as-a-plugin' }) + // Add directive reference heading + toc.push({ + label: 'Directive reference', + href: '#directive-reference', + toc: directiveToc + }) } } - // Process meta information for directive pages. - // Directive pages only reference a single directive - // IDs for headings are defined in importdoc.vue - if (meta && meta.directive && !meta.directives) { - // Add the reference heading - toc.push({ - label: `${startCase(meta.title)} Directive Reference`, - href: '#directive-reference' - }) - // Add directive import sub entry - toc.push([ - { - label: `Importing Individual ${startCase(meta.title)} Directive`, - href: '#importing-individual-directives' - } - ]) - // Add plugin import sub entry - toc[toc.length - 1].push({ - label: `Importing ${startCase(meta.title)} as a Vue Plugin`, - href: '#importing-as-a-plugin' - }) - } - - return { toc, title, top } + return { title, top, toc } } export const importAll = r => { @@ -197,7 +200,7 @@ export const importAll = r => { }) .forEach(m => { if (m.components) { - // Normalize meta.components to array of objects form + // Normalize `meta.components` to array of objects form m.components = m.components.map(c => (typeof c === 'string' ? { component: c } : c)) } obj[m.slug] = m From 89ab008137a7b1a59701a245909fc2f0564529fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20M=C3=BCller?= Date: Wed, 17 Apr 2019 17:34:22 +0200 Subject: [PATCH 02/25] Update header.vue --- docs/components/header.vue | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/docs/components/header.vue b/docs/components/header.vue index e82a2c64545..f6d65ea1828 100644 --- a/docs/components/header.vue +++ b/docs/components/header.vue @@ -127,30 +127,6 @@ - - From c435f590825cc40f7b31ac416ad6c872c662553b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20M=C3=BCller?= Date: Wed, 17 Apr 2019 21:32:24 +0200 Subject: [PATCH 10/25] Fix TOC character escaping --- docs/components/toc.vue | 9 ++++----- docs/utils/index.js | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/components/toc.vue b/docs/components/toc.vue index cf70df111a2..871067a3117 100644 --- a/docs/components/toc.vue +++ b/docs/components/toc.vue @@ -10,7 +10,7 @@ class="toc-entry font-weight-bold mb-2" @click="scrollIntoView($event, toc.top)" > - {{ toc.title }} + diff --git a/docs/utils/index.js b/docs/utils/index.js index 27d78ab9bba..4163b93048a 100644 --- a/docs/utils/index.js +++ b/docs/utils/index.js @@ -129,7 +129,7 @@ export const makeTOC = (readme, meta = null) => { // Add component sub-headings ...meta.components.map(({ component }) => { const tag = kebabCase(component) - return { label: `<${tag}>`, href: `#comp-ref-${tag}` } + return { label: `<${tag}>`, href: `#comp-ref-${tag}` } }), // Add component import sub-heading { From 1024b034201bb051c19a454e59f367027334e172 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20M=C3=BCller?= Date: Wed, 17 Apr 2019 21:32:37 +0200 Subject: [PATCH 11/25] Remove redundant image --- docs/static/click-confirm.png | Bin 4960 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 docs/static/click-confirm.png diff --git a/docs/static/click-confirm.png b/docs/static/click-confirm.png deleted file mode 100644 index 3f7a122a1f84f745f35daab1f3e46a05d20d8339..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4960 zcmb_gc{r5c-&PFS%dUiMF-%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AOeH)LLC;I2H{jdSUt;+7 z)qkg}vAa9=8d=wzVR)S@5%cbDh+&DggeF)DNnCu1iPZW(24+FDL6rH6ZC&hajQ2tY zMMjlc84lS%LC?467ifb(ropuRqQ6YeO=9W0ns3nFJ>ODapB~>@+e-C;dC^~>$VFD% zP_C240Vvm7-j(n9I;U6>eG4OI>^xjGNCKf!M_&M;k#>cqBj&#Vygqh9 From bb1ab8a21a8231142fd7ee9cd0289d7e37035610 Mon Sep 17 00:00:00 2001 From: T Morehouse Date: Wed, 17 Apr 2019 17:16:23 -0300 Subject: [PATCH 12/25] Update toc.vue --- docs/components/toc.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/components/toc.vue b/docs/components/toc.vue index 735f67febe8..6db155a1da6 100644 --- a/docs/components/toc.vue +++ b/docs/components/toc.vue @@ -25,7 +25,7 @@ > {{ h2.label }} - + Date: Wed, 17 Apr 2019 17:18:44 -0300 Subject: [PATCH 13/25] Update styles.scss --- docs/assets/scss/styles.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/assets/scss/styles.scss b/docs/assets/scss/styles.scss index 17568add8f9..d0990a2389d 100644 --- a/docs/assets/scss/styles.scss +++ b/docs/assets/scss/styles.scss @@ -47,6 +47,12 @@ .toc-entry.active > a { font-weight: 600; } + + .toc-h2:not(.active) { + .sub-section-nav { + display: none; + } + } } } From f63dd7d70d3e5c6e579f9165ebd66e8c4393c209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20M=C3=BCller?= Date: Wed, 17 Apr 2019 22:31:43 +0200 Subject: [PATCH 14/25] Improce component reference styles --- docs/assets/scss/styles.scss | 158 +++++++++++++++++----------- docs/components/componentdoc.vue | 10 -- docs/components/importdoc.vue | 10 -- docs/pages/docs/components/_slug.js | 2 +- docs/pages/docs/directives/_slug.js | 2 +- 5 files changed, 97 insertions(+), 85 deletions(-) diff --git a/docs/assets/scss/styles.scss b/docs/assets/scss/styles.scss index 17568add8f9..f7f7fcb9a00 100644 --- a/docs/assets/scss/styles.scss +++ b/docs/assets/scss/styles.scss @@ -22,6 +22,11 @@ .CodeMirror { background-color: #f9f9f9; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.125); + + .card & { + border-bottom-right-radius: 0.25rem; + border-bottom-left-radius: 0.25rem; + } } /* https://github.com/bryanbraun/anchorjs/blob/e9c248ac82cfa905ed00e804a2a1c64296b342d1/anchor.js#L306 */ @@ -44,80 +49,114 @@ .bd-toc { .section-nav { - .toc-entry.active > a { - font-weight: 600; + .toc-entry { + > .nav-link { + + .nav { + display: none; + } + + &.active { + font-weight: 600; + + + .nav { + display: flex !important; + } + } + } } } } .bd-content { - > h1, - > h2, - > h3, - > h4, - > h5 { - padding-top: 25px; - padding-bottom: 15px; + > h1 { + margin-top: 1rem; } -} -pre.editable:after { - content: "(double click to edit)"; - position: absolute; - top: 0; - right: 0; - color: #aaa; - text-align: right; - font-size: 0.75em; - padding: 5px 10px 0; - line-height: 15px; - height: 15px; - font-weight: 600; -} + &.bd-component-reference { + h2 { + margin-top: 3rem; + } -pre.editable:hover:after { - font-size: 0.9em; - color: #444; - cursor: pointer; -} + h3, + h4, + h5 { + margin-top: 2rem; + } -pre.editable.live:after { - content: "Live"; + article, + section { + h3, + h4, + h5 { + &:first-child { + margin-top: 1rem; + } + } + } + } } -pre.editable.error { - border: 1px solid #dc3545; - box-shadow: 0 1px 1px rgba(220, 53, 69, 0.5); -} +pre.editable { + &::after { + content: "(double click to edit)"; + position: absolute; + top: 0; + right: 0; + color: #aaa; + text-align: right; + font-size: 0.75em; + padding: 5px 10px 0; + line-height: 15px; + height: 15px; + font-weight: 600; + } -pre.editable.error:after { - content: "JavaScript compile error!"; - color: #dc3545; -} + &:hover { + &::after { + font-size: 0.9em; + color: #444; + cursor: pointer; + } + } -.bd-footer { - padding: 4rem 0; - margin-top: 4rem; - font-size: 85%; - text-align: center; - background-color: #f7f7f7; -} + &.live { + &::after { + content: "Live"; + } + } + + &.error { + border: 1px solid #dc3545; + box-shadow: 0 1px 1px rgba(220, 53, 69, 0.5); -.bv-example-row .row + .row { - margin-top: 1rem; + &::after { + content: "JavaScript compile error!"; + color: #dc3545; + } + } } -.bv-example-row .row > .col:not(.header), -.bv-example-row .row > [class^="col-"] { - padding-top: 0.75rem; - padding-bottom: 0.75rem; - background-color: rgba(86, 61, 124, 0.15); - border: 1px solid rgba(86, 61, 124, 0.2); +.bv-example-row { + .row { + + .row { + margin-top: 1rem; + } + + > .col:not(.header), + > [class^="col-"] { + padding-top: 0.75rem; + padding-bottom: 0.75rem; + background-color: rgba(86, 61, 124, 0.15); + border: 1px solid rgba(86, 61, 124, 0.2); + } + } } -.bv-example-row-flex-cols .row { - min-height: 10rem; - background-color: rgba(255, 0, 0, 0.1); +.bv-example-row-flex-cols { + .row { + min-height: 10rem; + background-color: rgba(255, 0, 0, 0.1); + } } /* Additional styling for (responsive) markdown tables */ @@ -145,13 +184,6 @@ table#table-transition-example { } } -.card { - .CodeMirror { - border-bottom-right-radius: 0.25rem; - border-bottom-left-radius: 0.25rem; - } -} - /* * Docsearch overrides * See: https://github.com/twbs/bootstrap/blob/master/site/static/docs/4.3/assets/scss/_algolia.scss diff --git a/docs/components/componentdoc.vue b/docs/components/componentdoc.vue index 0a4a3706494..5029a5bb02a 100644 --- a/docs/components/componentdoc.vue +++ b/docs/components/componentdoc.vue @@ -161,16 +161,6 @@

- -