From 06b68173ac2fc8ec1bd83254df6a8e6f76845dd9 Mon Sep 17 00:00:00 2001 From: Benny Powers Date: Mon, 15 Jul 2024 18:25:46 +0300 Subject: [PATCH 01/17] docs: wip repoStatus shortcode data flow --- docs/_data/repoStatus.yaml | 20 +++++-- docs/_plugins/cem-shortcodes.cjs | 2 +- docs/_plugins/rhds.cjs | 20 ++++--- docs/_plugins/shortcodes/renderCodeDocs.cjs | 17 +++--- .../shortcodes/renderInstallation.cjs | 2 +- docs/_plugins/shortcodes/repoStatus.cjs | 52 ++++++++----------- docs/design-code-status/index.md | 2 +- docs/elements/elements.11tydata.cjs | 16 ++++++ docs/elements/elements.html | 12 +---- elements/rh-accordion/docs/00-overview.md | 2 +- elements/rh-alert/docs/00-overview.md | 2 +- elements/rh-audio-player/docs/00-overview.md | 2 +- elements/rh-avatar/docs/00-overview.md | 2 +- elements/rh-back-to-top/docs/00-overview.md | 2 +- elements/rh-badge/docs/00-overview.md | 2 +- elements/rh-blockquote/docs/00-overview.md | 2 +- elements/rh-button/docs/00-overview.md | 2 +- elements/rh-card/docs/00-overview.md | 2 +- elements/rh-code-block/docs/10-overview.md | 2 +- elements/rh-cta/docs/00-overview.md | 2 +- elements/rh-dialog/docs/00-overview.md | 2 +- elements/rh-footer/docs/00-overview.md | 2 +- elements/rh-health-index/docs/00-overview.md | 2 +- .../docs/00-overview.md | 2 +- elements/rh-popover/docs/00-overview.md | 2 + elements/rh-site-status/docs/00-overview.md | 2 +- elements/rh-skip-link/docs/00-overview.md | 2 +- elements/rh-spinner/docs/00-overview.md | 2 +- elements/rh-stat/docs/00-overview.md | 2 +- elements/rh-subnav/docs/00-overview.md | 2 +- elements/rh-switch/docs/00-overview.md | 2 +- elements/rh-table/docs/00-overview.md | 2 +- elements/rh-tabs/docs/00-overview.md | 2 +- elements/rh-tag/docs/00-overview.md | 2 +- elements/rh-tile/docs/00-overview.md | 2 +- elements/rh-timestamp/docs/00-overview.md | 2 +- elements/rh-tooltip/docs/00-overview.md | 2 +- 37 files changed, 109 insertions(+), 90 deletions(-) create mode 100644 docs/elements/elements.11tydata.cjs diff --git a/docs/_data/repoStatus.yaml b/docs/_data/repoStatus.yaml index 9ad7eedb87..99c40c7145 100644 --- a/docs/_data/repoStatus.yaml +++ b/docs/_data/repoStatus.yaml @@ -1,4 +1,5 @@ -- name: "Accordion" +- tagName: rh-accordion + name: "Accordion" type: "Element" overallStatus: "Available" libraries: @@ -202,7 +203,8 @@ status: Ready - name: Documentation status: Ready -- name: "Popover" +- tagName: rh-popver + name: "Popover" type: "Element" overallStatus: "Available" libraries: @@ -369,4 +371,16 @@ - name: WebRH status: Ready - name: Documentation - status: Ready \ No newline at end of file + status: Ready +- name: "Popover" + type: "Element" + overallStatus: "In Progress" + libraries: + - name: Figma library + status: Ready + - name: RH Elements + status: Planned + - name: WebRH + status: Planned + - name: Documentation + status: Planned diff --git a/docs/_plugins/cem-shortcodes.cjs b/docs/_plugins/cem-shortcodes.cjs index c68483dc59..2ed89054d7 100644 --- a/docs/_plugins/cem-shortcodes.cjs +++ b/docs/_plugins/cem-shortcodes.cjs @@ -90,7 +90,7 @@ class Renderers { * @see https://github.com/11ty/eleventy/blob/bf7c0c0cce1b2cb01561f57fdd33db001df4cb7e/src/Plugins/RenderPlugin.js#L89-L93 * @type {DocsPage} */ - this.docsPage = page.ctx._; + this.docsPage = page.ctx.doc; this.manifest = this.docsPage.manifest; Renderers.renderers.set(page, this); } diff --git a/docs/_plugins/rhds.cjs b/docs/_plugins/rhds.cjs index 6398bd37e1..2ac192a295 100644 --- a/docs/_plugins/rhds.cjs +++ b/docs/_plugins/rhds.cjs @@ -204,7 +204,7 @@ module.exports = function(eleventyConfig, { tagsToAlphabetize }) { * @see https://github.com/11ty/eleventy/blob/bf7c0c0cce1b2cb01561f57fdd33db001df4cb7e/src/Plugins/RenderPlugin.js#L89-L93 * @type {import('@patternfly/pfe-tools/11ty/DocsPage.js').DocsPage} */ - const docsPage = this.ctx._; + const docsPage = this.ctx.doc; return docsPage.description; }); @@ -303,18 +303,22 @@ module.exports = function(eleventyConfig, { tagsToAlphabetize }) { try { const { glob } = await import('glob'); - /** @type {(import('@patternfly/pfe-tools/11ty/DocsPage').DocsPage & { repoStatus?: any[] })[]} */ - const elements = await eleventyConfig.globalData?.elements(); + const { DocsPage } = await import('@patternfly/pfe-tools/11ty/DocsPage.js'); + const { + Manifest, + } = await import('@patternfly/pfe-tools/custom-elements-manifest/lib/Manifest.js'); + + const customElementsManifestDocsPages = await eleventyConfig.globalData?.elements(); const filePaths = (await glob(`elements/*/docs/*.md`, { cwd: process.cwd() })) .filter(x => x.match(/\d{1,3}-[\w-]+\.md$/)); // only include new style docs - const { repoStatus } = collectionApi.items.find(item => item.data?.repoStatus)?.data || []; + return filePaths .map(filePath => { const props = getProps(filePath); - const docsPage = elements.find(x => x.tagName === props.tagName); - if (docsPage) { - docsPage.repoStatus = repoStatus; - } + const [manifest] = Manifest.getAll(); + const docsPage = + customElementsManifestDocsPages.find(x => x.tagName === props.tagName) + ?? new DocsPage(manifest); const tabs = filePaths .filter(x => x.split('/docs/').at(0) === (`elements/${props.tagName}`)) .sort() diff --git a/docs/_plugins/shortcodes/renderCodeDocs.cjs b/docs/_plugins/shortcodes/renderCodeDocs.cjs index 8da5f30624..de1b85bb2a 100644 --- a/docs/_plugins/shortcodes/renderCodeDocs.cjs +++ b/docs/_plugins/shortcodes/renderCodeDocs.cjs @@ -9,13 +9,12 @@ const html = (...args) => .map(x => x.replace(/^ {6}/, '')) .join('\n'); -/** @typedef {import('@patternfly/pfe-tools/11ty/DocsPage').DocsPage} DocsPage */ module.exports = function(eleventyConfig) { - eleventyConfig.addPairedShortcode('renderCodeDocs', - function renderCodeDocs(content, kwargs = {}) { - const renderers = new Renderers(this, kwargs); - return renderers.renderAll(content); - } + eleventyConfig.addPairedShortcode('renderCodeDocs', function renderCodeDocs(content, kwargs = {}) { + const page = this.context?.doc ?? this.ctx; + const renderers = new Renderers(page, kwargs); + return renderers.renderAll(content); + } ); }; @@ -49,9 +48,11 @@ class Renderers { * NB: since the data for this shortcode is no a POJO, * but a DocsPage instance, 11ty assigns it to this.ctx._ * @see https://github.com/11ty/eleventy/blob/bf7c0c0cce1b2cb01561f57fdd33db001df4cb7e/src/Plugins/RenderPlugin.js#L89-L93 - * @type {DocsPage} */ - this.docsPage = page.ctx._; + this.docsPage = page; + if (!this.docsPage?.manifest) { + console.log(page); + } this.manifest = this.docsPage.manifest; this.kwargs = kwargs; } diff --git a/docs/_plugins/shortcodes/renderInstallation.cjs b/docs/_plugins/shortcodes/renderInstallation.cjs index 5592d892a4..d6eadd30be 100644 --- a/docs/_plugins/shortcodes/renderInstallation.cjs +++ b/docs/_plugins/shortcodes/renderInstallation.cjs @@ -13,7 +13,7 @@ function renderInstall(content, { * @see https://github.com/11ty/eleventy/blob/bf7c0c0cce1b2cb01561f57fdd33db001df4cb7e/src/Plugins/RenderPlugin.js#L89-L93 * @type {DocsPage} */ - const docsPage = this.ctx._; + const docsPage = this.ctx.doc; const lightdomcssblock = /* md */` ### Lightdom CSS diff --git a/docs/_plugins/shortcodes/repoStatus.cjs b/docs/_plugins/shortcodes/repoStatus.cjs index b4233bfe65..85a46aee94 100644 --- a/docs/_plugins/shortcodes/repoStatus.cjs +++ b/docs/_plugins/shortcodes/repoStatus.cjs @@ -79,32 +79,24 @@ const STATUS_CHECKLIST = { }, }; -/** - * Reads repo status data from global data and outputs an array with component keys - */ -function getRepoData() { - const docsPage = this.ctx._; - const allStatuses = this.ctx.repoStatus ?? docsPage?.repoStatus ?? []; - const title = this.ctx.title ?? docsPage?.title; - return allStatuses.find( - component => component.name === title && component.type === 'Element' - )?.libraries; -} - /** * Calls getRepoData function and outputs a definition list for each component * @param {object} [options] list heading render options * @param {string} [options.heading] heading text * @param {number} [options.level] heading level */ -function repoStatusList({ heading = 'Status', level = 2 } = {}) { - // Removing Documentation status from the repoStatusList - const statusList = getRepoData.call(this)?.filter(repo => repo.name !== 'Documentation'); +function repoStatusList({ repoStatus, heading = 'Status', level = 2 } = {}) { + // Removing Documentation status from the repoStatusList + const librariesList = this.ctx.doc ? + repoStatus.find(x => x.tagName === this.ctx.doc.tagName) + ?.libraries?.filter(repo => + repo.name !== 'Documentation') + : repoStatus.flatMap(x => x.libraries) ?? []; - if (!Array.isArray(statusList) || !statusList.length) { - return ''; - } else { - return html` + if (!Array.isArray(librariesList) || !librariesList.length) { + return ''; + } else { + return html` @@ -112,7 +104,7 @@ function repoStatusList({ heading = 'Status', level = 2 } = {}) { What do these mean? -
${statusList.map(listItem => html` +
${librariesList.map(listItem => html`
${listItem.name}:
@@ -129,14 +121,8 @@ function repoStatusList({ heading = 'Status', level = 2 } = {}) { /** * Reads component status data from global data (see above) and outputs a table for Design/Code status page */ -function repoStatusTable() { - const docsPage = this.ctx._; - const allStatuses = this.ctx.repoStatus ?? docsPage?.repoStatus ?? []; - // Filtering out 'Responsive' status from all the libraries - const elementsList = allStatuses.map(item => ({ - ...item, - libraries: item.libraries.filter(lib => lib.name !== 'Responsive'), - })); +function repoStatusTable({ repoStatus }) { + const elementsList = repoStatus; if (!Array.isArray(elementsList) || !elementsList.length) { return ''; @@ -188,8 +174,14 @@ function repoStatusTable() { * @param {string} [options.heading] heading text * @param {number} [options.level] heading level */ -function repoStatusChecklist({ heading = 'Status checklist', level = 2 } = {}) { - const statusList = getRepoData.call(this)?.filter(repo => repo.name !== 'Documentation'); +function repoStatusChecklist({ repoStatus, heading = 'Status checklist', level = 2 } = {}) { + + const statusList = this.ctx.doc ? + repoStatus.find(x => x.tagName === this.ctx._.tagName) + ?.libraries?.filter(repo => + repo.name !== 'Documentation') + : repoStatus.flatMap(x => x.libraries) ?? []; + if (!Array.isArray(statusList) || !statusList.length) { return ''; } else { diff --git a/docs/design-code-status/index.md b/docs/design-code-status/index.md index 16c0edc930..a8015627e0 100644 --- a/docs/design-code-status/index.md +++ b/docs/design-code-status/index.md @@ -123,7 +123,7 @@ A detailed synopsis of our web components and their implementation status. ## Web component status -{% repoStatusTable %} +{% repoStatusTable repoStatus=repoStatus %} diff --git a/docs/elements/elements.11tydata.cjs b/docs/elements/elements.11tydata.cjs new file mode 100644 index 0000000000..e16a69b183 --- /dev/null +++ b/docs/elements/elements.11tydata.cjs @@ -0,0 +1,16 @@ +module.exports = { + templateEngineOverride: 'njk', + hasToc: true, + layout: 'layouts/pages/elements.njk', + permalink: '{{ doc.permalink }}', + pagination: { + data: 'collections.elementDocs', + alias: 'doc', + size: 1, + }, + eleventyComputed: { + context(data) { + return data; + }, + }, +}; diff --git a/docs/elements/elements.html b/docs/elements/elements.html index a60be03e8b..33c48b758f 100644 --- a/docs/elements/elements.html +++ b/docs/elements/elements.html @@ -1,11 +1 @@ ---- -templateEngineOverride: njk -hasToc: true -layout: layouts/pages/elements.njk -permalink: "{{ doc.permalink }}" -pagination: - data: collections.elementDocs - alias: doc - size: 1 ---- -{% renderFile doc.filePath, doc.docsPage %} +{% renderFile doc.filePath, context %} diff --git a/elements/rh-accordion/docs/00-overview.md b/elements/rh-accordion/docs/00-overview.md index 5e8a5f7bd0..8406fff328 100644 --- a/elements/rh-accordion/docs/00-overview.md +++ b/elements/rh-accordion/docs/00-overview.md @@ -5,7 +5,7 @@ An accordion with four collapsed panels and one expanded panel -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element diff --git a/elements/rh-alert/docs/00-overview.md b/elements/rh-alert/docs/00-overview.md index 3966a6f6c9..c4efaca1f8 100644 --- a/elements/rh-alert/docs/00-overview.md +++ b/elements/rh-alert/docs/00-overview.md @@ -2,7 +2,7 @@ {{ tagName | getElementDescription }} -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element diff --git a/elements/rh-audio-player/docs/00-overview.md b/elements/rh-audio-player/docs/00-overview.md index 8bbe36c1a8..8a72cf523e 100644 --- a/elements/rh-audio-player/docs/00-overview.md +++ b/elements/rh-audio-player/docs/00-overview.md @@ -2,7 +2,7 @@ {{ tagName | getElementDescription }} -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element diff --git a/elements/rh-avatar/docs/00-overview.md b/elements/rh-avatar/docs/00-overview.md index dd414d6682..eac371d036 100644 --- a/elements/rh-avatar/docs/00-overview.md +++ b/elements/rh-avatar/docs/00-overview.md @@ -6,7 +6,7 @@ Image of an avatar group with a photo of a woman and text -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element diff --git a/elements/rh-back-to-top/docs/00-overview.md b/elements/rh-back-to-top/docs/00-overview.md index 10bdeb23a9..a0307838c9 100644 --- a/elements/rh-back-to-top/docs/00-overview.md +++ b/elements/rh-back-to-top/docs/00-overview.md @@ -7,7 +7,7 @@ -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample diff --git a/elements/rh-badge/docs/00-overview.md b/elements/rh-badge/docs/00-overview.md index 39ebb9b363..1090f99ffa 100644 --- a/elements/rh-badge/docs/00-overview.md +++ b/elements/rh-badge/docs/00-overview.md @@ -6,7 +6,7 @@ Two badges; from left to right, one badge has a light gray background with a dark gray counter number and the other badge has a blue background with a white counter number -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element diff --git a/elements/rh-blockquote/docs/00-overview.md b/elements/rh-blockquote/docs/00-overview.md index 8307bd315d..867501595b 100644 --- a/elements/rh-blockquote/docs/00-overview.md +++ b/elements/rh-blockquote/docs/00-overview.md @@ -2,7 +2,7 @@ A blockquote is a styled quotation and citation offset from other text styles on the page. -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element diff --git a/elements/rh-button/docs/00-overview.md b/elements/rh-button/docs/00-overview.md index 2b7b8db205..7e9fa964d7 100644 --- a/elements/rh-button/docs/00-overview.md +++ b/elements/rh-button/docs/00-overview.md @@ -6,7 +6,7 @@ Image of Danger, Primary, Secondary, Tertiary, and Link buttons in the first row and Play and Close buttons in the second row -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element diff --git a/elements/rh-card/docs/00-overview.md b/elements/rh-card/docs/00-overview.md index 58f99eb8f7..a7bbdd627a 100644 --- a/elements/rh-card/docs/00-overview.md +++ b/elements/rh-card/docs/00-overview.md @@ -2,7 +2,7 @@ {{ tagName | getElementDescription }} -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element diff --git a/elements/rh-code-block/docs/10-overview.md b/elements/rh-code-block/docs/10-overview.md index 51f73e1230..571fee5085 100644 --- a/elements/rh-code-block/docs/10-overview.md +++ b/elements/rh-code-block/docs/10-overview.md @@ -6,7 +6,7 @@ Image of a code block with black code text within a light gray container -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element diff --git a/elements/rh-cta/docs/00-overview.md b/elements/rh-cta/docs/00-overview.md index ea3350c100..c1b423e2a4 100644 --- a/elements/rh-cta/docs/00-overview.md +++ b/elements/rh-cta/docs/00-overview.md @@ -6,7 +6,7 @@ Image of variants including Primary (red background and white text), Secondary (black border and black text), Brick (light gray border and blue text), and Default (blue text and blue icon) -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element diff --git a/elements/rh-dialog/docs/00-overview.md b/elements/rh-dialog/docs/00-overview.md index 04bba87792..8274eb49d1 100644 --- a/elements/rh-dialog/docs/00-overview.md +++ b/elements/rh-dialog/docs/00-overview.md @@ -6,7 +6,7 @@ A dialog container with a black headline, black body text, two blue buttons, and a dark gray close button all on a white background on top of a slightly transparent black background -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element diff --git a/elements/rh-footer/docs/00-overview.md b/elements/rh-footer/docs/00-overview.md index d64c4d18f0..7a220ad823 100644 --- a/elements/rh-footer/docs/00-overview.md +++ b/elements/rh-footer/docs/00-overview.md @@ -2,7 +2,7 @@ {{ tagName | getElementDescription }} -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element diff --git a/elements/rh-health-index/docs/00-overview.md b/elements/rh-health-index/docs/00-overview.md index 0e6c19e89c..d8f2143891 100644 --- a/elements/rh-health-index/docs/00-overview.md +++ b/elements/rh-health-index/docs/00-overview.md @@ -7,7 +7,7 @@ -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element diff --git a/elements/rh-navigation-secondary/docs/00-overview.md b/elements/rh-navigation-secondary/docs/00-overview.md index a7a429bd40..11a05393eb 100644 --- a/elements/rh-navigation-secondary/docs/00-overview.md +++ b/elements/rh-navigation-secondary/docs/00-overview.md @@ -2,7 +2,7 @@ {{ tagName | getElementDescription }} -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element diff --git a/elements/rh-popover/docs/00-overview.md b/elements/rh-popover/docs/00-overview.md index 96cffb5a3c..6e41f2ccd9 100644 --- a/elements/rh-popover/docs/00-overview.md +++ b/elements/rh-popover/docs/00-overview.md @@ -12,3 +12,5 @@ information or provides resources via text and links. Popover component sample + +{% repoStatusList repoStatus=repoStatus %} diff --git a/elements/rh-site-status/docs/00-overview.md b/elements/rh-site-status/docs/00-overview.md index 3a7c36acc0..659bd07d94 100644 --- a/elements/rh-site-status/docs/00-overview.md +++ b/elements/rh-site-status/docs/00-overview.md @@ -7,7 +7,7 @@ -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element diff --git a/elements/rh-skip-link/docs/00-overview.md b/elements/rh-skip-link/docs/00-overview.md index 4a325d3194..17eadbe77a 100644 --- a/elements/rh-skip-link/docs/00-overview.md +++ b/elements/rh-skip-link/docs/00-overview.md @@ -7,7 +7,7 @@ -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element diff --git a/elements/rh-spinner/docs/00-overview.md b/elements/rh-spinner/docs/00-overview.md index b3634bb6f0..01043ac3b5 100644 --- a/elements/rh-spinner/docs/00-overview.md +++ b/elements/rh-spinner/docs/00-overview.md @@ -6,7 +6,7 @@ Example of a spinner -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element diff --git a/elements/rh-stat/docs/00-overview.md b/elements/rh-stat/docs/00-overview.md index 78cad9a568..fbe3a8cc17 100644 --- a/elements/rh-stat/docs/00-overview.md +++ b/elements/rh-stat/docs/00-overview.md @@ -6,7 +6,7 @@ A vertically aligned stack of elements; includes a small red icon, large red data text showing 80% percent, and two lines of black body text -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element diff --git a/elements/rh-subnav/docs/00-overview.md b/elements/rh-subnav/docs/00-overview.md index 3ee08d031b..d1495ea930 100644 --- a/elements/rh-subnav/docs/00-overview.md +++ b/elements/rh-subnav/docs/00-overview.md @@ -7,7 +7,7 @@ -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element diff --git a/elements/rh-switch/docs/00-overview.md b/elements/rh-switch/docs/00-overview.md index 6c4131139a..85e2a600fb 100644 --- a/elements/rh-switch/docs/00-overview.md +++ b/elements/rh-switch/docs/00-overview.md @@ -6,7 +6,7 @@ example of switch that's on -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element diff --git a/elements/rh-table/docs/00-overview.md b/elements/rh-table/docs/00-overview.md index db36fe65dc..5483c6b8fa 100644 --- a/elements/rh-table/docs/00-overview.md +++ b/elements/rh-table/docs/00-overview.md @@ -7,7 +7,7 @@ -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element diff --git a/elements/rh-tabs/docs/00-overview.md b/elements/rh-tabs/docs/00-overview.md index 06704e62c4..9c01294eef 100644 --- a/elements/rh-tabs/docs/00-overview.md +++ b/elements/rh-tabs/docs/00-overview.md @@ -7,7 +7,7 @@ -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element diff --git a/elements/rh-tag/docs/00-overview.md b/elements/rh-tag/docs/00-overview.md index 781461376d..a44c3b4470 100644 --- a/elements/rh-tag/docs/00-overview.md +++ b/elements/rh-tag/docs/00-overview.md @@ -6,7 +6,7 @@ Two rows of tags; the top row is ‘Filled’ tags and the bottom row is ‘Unfilled’ tags; from left to right, both rows of tags include red, orange, green, cyan, blue, purple, and gray colors -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element diff --git a/elements/rh-tile/docs/00-overview.md b/elements/rh-tile/docs/00-overview.md index 58cbcf97bd..e03c6335f9 100644 --- a/elements/rh-tile/docs/00-overview.md +++ b/elements/rh-tile/docs/00-overview.md @@ -7,7 +7,7 @@ -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element diff --git a/elements/rh-timestamp/docs/00-overview.md b/elements/rh-timestamp/docs/00-overview.md index 5d5429496d..b7765de621 100644 --- a/elements/rh-timestamp/docs/00-overview.md +++ b/elements/rh-timestamp/docs/00-overview.md @@ -2,7 +2,7 @@ {{ tagName | getElementDescription }} -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element diff --git a/elements/rh-tooltip/docs/00-overview.md b/elements/rh-tooltip/docs/00-overview.md index 81aa768e24..12f66300f6 100644 --- a/elements/rh-tooltip/docs/00-overview.md +++ b/elements/rh-tooltip/docs/00-overview.md @@ -6,7 +6,7 @@ A black tooltip on top of a gray disabled button -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element From 810585517db58e66c322aea06b7f525651c2af3c Mon Sep 17 00:00:00 2001 From: Steven Spriggs Date: Mon, 15 Jul 2024 13:14:39 -0400 Subject: [PATCH 02/17] docs: update reposStatusChecklist call point --- elements/rh-accordion/docs/00-overview.md | 2 +- elements/rh-alert/docs/00-overview.md | 2 +- elements/rh-audio-player/docs/00-overview.md | 2 +- elements/rh-avatar/docs/00-overview.md | 2 +- elements/rh-back-to-top/docs/00-overview.md | 2 +- elements/rh-badge/docs/00-overview.md | 2 +- elements/rh-blockquote/docs/00-overview.md | 2 +- elements/rh-button/docs/00-overview.md | 2 +- elements/rh-card/docs/00-overview.md | 2 +- elements/rh-code-block/docs/10-overview.md | 2 +- elements/rh-cta/docs/00-overview.md | 2 +- elements/rh-dialog/docs/00-overview.md | 2 +- elements/rh-footer/docs/00-overview.md | 2 +- elements/rh-health-index/docs/00-overview.md | 2 +- elements/rh-navigation-secondary/docs/00-overview.md | 2 +- elements/rh-pagination/docs/00-overview.md | 2 +- elements/rh-site-status/docs/00-overview.md | 2 +- elements/rh-skip-link/docs/00-overview.md | 2 +- elements/rh-spinner/docs/00-overview.md | 2 +- elements/rh-stat/docs/00-overview.md | 2 +- elements/rh-subnav/docs/00-overview.md | 2 +- elements/rh-switch/docs/00-overview.md | 2 +- elements/rh-table/docs/00-overview.md | 2 +- elements/rh-tabs/docs/00-overview.md | 2 +- elements/rh-tag/docs/00-overview.md | 2 +- elements/rh-tile/docs/00-overview.md | 2 +- elements/rh-timestamp/docs/00-overview.md | 2 +- elements/rh-tooltip/docs/00-overview.md | 2 +- 28 files changed, 28 insertions(+), 28 deletions(-) diff --git a/elements/rh-accordion/docs/00-overview.md b/elements/rh-accordion/docs/00-overview.md index 8406fff328..84cf599435 100644 --- a/elements/rh-accordion/docs/00-overview.md +++ b/elements/rh-accordion/docs/00-overview.md @@ -68,4 +68,4 @@ - When you need to condense a large amount of related information into sections - When you need a way for users to read or compare sections of content simultaneously -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-alert/docs/00-overview.md b/elements/rh-alert/docs/00-overview.md index c4efaca1f8..f63b6e7933 100644 --- a/elements/rh-alert/docs/00-overview.md +++ b/elements/rh-alert/docs/00-overview.md @@ -20,4 +20,4 @@ [img-sample]: {{ './alert-sample.svg' | url }} -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-audio-player/docs/00-overview.md b/elements/rh-audio-player/docs/00-overview.md index 8a72cf523e..8721460864 100644 --- a/elements/rh-audio-player/docs/00-overview.md +++ b/elements/rh-audio-player/docs/00-overview.md @@ -2637,4 +2637,4 @@ - When you want to feature audio content without directing users to other pages - When you want to offer users with reduced hearing abilities a listening alternative using a transcript -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-avatar/docs/00-overview.md b/elements/rh-avatar/docs/00-overview.md index eac371d036..4a55da0eaa 100644 --- a/elements/rh-avatar/docs/00-overview.md +++ b/elements/rh-avatar/docs/00-overview.md @@ -17,5 +17,5 @@ - When you need to represent a user who has not provided a photo or image -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-back-to-top/docs/00-overview.md b/elements/rh-back-to-top/docs/00-overview.md index a0307838c9..7971c676ad 100644 --- a/elements/rh-back-to-top/docs/00-overview.md +++ b/elements/rh-back-to-top/docs/00-overview.md @@ -19,4 +19,4 @@ View the [demos](demos/). - When content fills up more than two screens in length at medium and large breakpoints - When content fills up more than four screens in length at small breakpoints -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-badge/docs/00-overview.md b/elements/rh-badge/docs/00-overview.md index 1090f99ffa..50fdabfd00 100644 --- a/elements/rh-badge/docs/00-overview.md +++ b/elements/rh-badge/docs/00-overview.md @@ -23,4 +23,4 @@ - When you need to reflect counts like number of objects, events, or unread items -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-blockquote/docs/00-overview.md b/elements/rh-blockquote/docs/00-overview.md index 867501595b..beea53786c 100644 --- a/elements/rh-blockquote/docs/00-overview.md +++ b/elements/rh-blockquote/docs/00-overview.md @@ -34,5 +34,5 @@ View a live version of this component and see how it can be customized. - When you need to break up large portions of text -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-button/docs/00-overview.md b/elements/rh-button/docs/00-overview.md index 7e9fa964d7..b42a00a867 100644 --- a/elements/rh-button/docs/00-overview.md +++ b/elements/rh-button/docs/00-overview.md @@ -19,4 +19,4 @@ - When you need to communicate actions users can take - When you need to draw attention to the highest priority action -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-card/docs/00-overview.md b/elements/rh-card/docs/00-overview.md index a7bbdd627a..fcb8b87624 100644 --- a/elements/rh-card/docs/00-overview.md +++ b/elements/rh-card/docs/00-overview.md @@ -11,4 +11,4 @@ Image of a card element -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-code-block/docs/10-overview.md b/elements/rh-code-block/docs/10-overview.md index 571fee5085..82a9b1710b 100644 --- a/elements/rh-code-block/docs/10-overview.md +++ b/elements/rh-code-block/docs/10-overview.md @@ -28,4 +28,4 @@ - When you need to highlight a block of code while maintaining the formatting -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-cta/docs/00-overview.md b/elements/rh-cta/docs/00-overview.md index c1b423e2a4..8708980268 100644 --- a/elements/rh-cta/docs/00-overview.md +++ b/elements/rh-cta/docs/00-overview.md @@ -19,4 +19,4 @@ - When you need to arrange links in different arrangements like in a row or grid - When you need to hide or reveal content -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-dialog/docs/00-overview.md b/elements/rh-dialog/docs/00-overview.md index 8274eb49d1..ec6f4a11db 100644 --- a/elements/rh-dialog/docs/00-overview.md +++ b/elements/rh-dialog/docs/00-overview.md @@ -26,4 +26,4 @@ - When you need an immediate response from users - When you need to notify users of urgent information concerning their current workflow -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-footer/docs/00-overview.md b/elements/rh-footer/docs/00-overview.md index 7a220ad823..2673d72396 100644 --- a/elements/rh-footer/docs/00-overview.md +++ b/elements/rh-footer/docs/00-overview.md @@ -89,4 +89,4 @@ - When you want to give users persistent access to secondary content outside of the navigation - When you need a place to put copyright or legal information - {% repoStatusChecklist %} + {% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-health-index/docs/00-overview.md b/elements/rh-health-index/docs/00-overview.md index d8f2143891..ad34a6f0f5 100644 --- a/elements/rh-health-index/docs/00-overview.md +++ b/elements/rh-health-index/docs/00-overview.md @@ -22,4 +22,4 @@ -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-navigation-secondary/docs/00-overview.md b/elements/rh-navigation-secondary/docs/00-overview.md index 11a05393eb..73d627e685 100644 --- a/elements/rh-navigation-secondary/docs/00-overview.md +++ b/elements/rh-navigation-secondary/docs/00-overview.md @@ -17,4 +17,4 @@ - When you need to prevent other navigations from getting overloaded -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-pagination/docs/00-overview.md b/elements/rh-pagination/docs/00-overview.md index 3fd1e3bcd7..c13c6ad06e 100644 --- a/elements/rh-pagination/docs/00-overview.md +++ b/elements/rh-pagination/docs/00-overview.md @@ -24,4 +24,4 @@ - When you need to enable users to navigate to through pages or locate a specific page number - When you need to improve the loading performance of a system -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-site-status/docs/00-overview.md b/elements/rh-site-status/docs/00-overview.md index 659bd07d94..69c11e010d 100644 --- a/elements/rh-site-status/docs/00-overview.md +++ b/elements/rh-site-status/docs/00-overview.md @@ -21,4 +21,4 @@ - When you need to provide users with a link to a status page where they can learn more -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-skip-link/docs/00-overview.md b/elements/rh-skip-link/docs/00-overview.md index 17eadbe77a..477b714371 100644 --- a/elements/rh-skip-link/docs/00-overview.md +++ b/elements/rh-skip-link/docs/00-overview.md @@ -24,4 +24,4 @@ To show the skip link, click this paragraph and hit the "Tab" key on your keyboa - When there are blocks of content that are repeated on multiple pages -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-spinner/docs/00-overview.md b/elements/rh-spinner/docs/00-overview.md index 01043ac3b5..238d89d6b9 100644 --- a/elements/rh-spinner/docs/00-overview.md +++ b/elements/rh-spinner/docs/00-overview.md @@ -19,4 +19,4 @@ - When the structure or amount of content that's loading is unknown -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-stat/docs/00-overview.md b/elements/rh-stat/docs/00-overview.md index fbe3a8cc17..451aecdf05 100644 --- a/elements/rh-stat/docs/00-overview.md +++ b/elements/rh-stat/docs/00-overview.md @@ -23,5 +23,5 @@ - When you need to pair a data point with supporting text to add more context - When you need to display several statistics together in a group -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-subnav/docs/00-overview.md b/elements/rh-subnav/docs/00-overview.md index d1495ea930..51b25c1412 100644 --- a/elements/rh-subnav/docs/00-overview.md +++ b/elements/rh-subnav/docs/00-overview.md @@ -26,4 +26,4 @@ - When you want to allow users to browse high-level and low-level pages in the same experience -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-switch/docs/00-overview.md b/elements/rh-switch/docs/00-overview.md index 85e2a600fb..9ad397bfd9 100644 --- a/elements/rh-switch/docs/00-overview.md +++ b/elements/rh-switch/docs/00-overview.md @@ -25,4 +25,4 @@ - When users need to toggle an item on or off -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-table/docs/00-overview.md b/elements/rh-table/docs/00-overview.md index 5483c6b8fa..286a5a25bc 100644 --- a/elements/rh-table/docs/00-overview.md +++ b/elements/rh-table/docs/00-overview.md @@ -56,4 +56,4 @@ - If a user needs to scan, examine, and compare data - If a user must navigate to a specific piece of data to complete a task -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-tabs/docs/00-overview.md b/elements/rh-tabs/docs/00-overview.md index 9c01294eef..e714955eba 100644 --- a/elements/rh-tabs/docs/00-overview.md +++ b/elements/rh-tabs/docs/00-overview.md @@ -27,4 +27,4 @@ - When you need to group other types of content in the same view like forms, settings, dashboards, etc. -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-tag/docs/00-overview.md b/elements/rh-tag/docs/00-overview.md index a44c3b4470..6656bab977 100644 --- a/elements/rh-tag/docs/00-overview.md +++ b/elements/rh-tag/docs/00-overview.md @@ -38,4 +38,4 @@ class="visually-hidden">Hat - When you need to tag items of the same category - When you need to indicate status -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-tile/docs/00-overview.md b/elements/rh-tile/docs/00-overview.md index e03c6335f9..bc74c191ce 100644 --- a/elements/rh-tile/docs/00-overview.md +++ b/elements/rh-tile/docs/00-overview.md @@ -25,5 +25,5 @@ - When you need an alternative to a group of cards with the same calls to action - When you need to group content for a radio button or checkbox in a form -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-timestamp/docs/00-overview.md b/elements/rh-timestamp/docs/00-overview.md index b7765de621..9ee6863b1e 100644 --- a/elements/rh-timestamp/docs/00-overview.md +++ b/elements/rh-timestamp/docs/00-overview.md @@ -12,4 +12,4 @@ - When you need to customize date and time content -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} diff --git a/elements/rh-tooltip/docs/00-overview.md b/elements/rh-tooltip/docs/00-overview.md index 12f66300f6..525d3ddd5c 100644 --- a/elements/rh-tooltip/docs/00-overview.md +++ b/elements/rh-tooltip/docs/00-overview.md @@ -36,4 +36,4 @@ - When you need to provide more information for icons or icon buttons without labels - When you need to define new or unfamiliar UI elements that are not described directly in the user interface -{% repoStatusChecklist %} +{% repoStatusChecklist repoStatus=repoStatus %} From f4a74e5aa86031d9055d19f76b5b5cf6c2b139f9 Mon Sep 17 00:00:00 2001 From: Steven Spriggs Date: Mon, 15 Jul 2024 13:14:59 -0400 Subject: [PATCH 03/17] docs: update repoStatus data with tagName key --- docs/_data/repoStatus.yaml | 105 +++++++++++++++++++++---------------- 1 file changed, 61 insertions(+), 44 deletions(-) diff --git a/docs/_data/repoStatus.yaml b/docs/_data/repoStatus.yaml index 99c40c7145..42f69022e9 100644 --- a/docs/_data/repoStatus.yaml +++ b/docs/_data/repoStatus.yaml @@ -11,7 +11,8 @@ status: Ready - name: Documentation status: Ready -- name: "Alert" +- tagName: rh-alert + name: "Alert" type: "Element" overallStatus: "Available" libraries: @@ -23,7 +24,8 @@ status: Ready - name: Documentation status: Ready -- name: "Audio Player" +- tagName: rh-audio-player + name: "Audio Player" type: "Element" overallStatus: "Available" libraries: @@ -35,7 +37,8 @@ status: Ready - name: Documentation status: Ready -- name: "Avatar" +- tagName: rh-avatar + name: "Avatar" type: "Element" overallStatus: "Available" libraries: @@ -47,7 +50,8 @@ status: Ready - name: Documentation status: Ready -- name: "Back To Top" +- tagName: rh-back-to-top + name: "Back To Top" type: "Element" overallStatus: "Available" libraries: @@ -59,7 +63,8 @@ status: Planned - name: Documentation status: In Progress -- name: "Badge" +- tagName: rh-badge + name: "Badge" type: "Element" overallStatus: "Available" libraries: @@ -71,7 +76,8 @@ status: Ready - name: Documentation status: Ready -- name: "Blockquote" +- tagName: rh-blockquote + name: "Blockquote" type: "Element" overallStatus: "Available" libraries: @@ -83,7 +89,8 @@ status: Ready - name: Documentation status: Ready -- name: "Button" +- tagName: rh-button + name: "Button" type: "Element" overallStatus: "Available" libraries: @@ -95,7 +102,8 @@ status: Ready - name: Documentation status: Ready -- name: "Cta" +- tagName: rh-cta + name: "Cta" type: "Element" overallStatus: "Available" libraries: @@ -107,7 +115,8 @@ status: Ready - name: Documentation status: Ready -- name: "Card" +- tagName: rh-card + name: "Card" type: "Element" overallStatus: "Available" libraries: @@ -119,7 +128,8 @@ status: Ready - name: Documentation status: Ready -- name: "Code Block" +- tagName: rh-code-block + name: "Code Block" type: "Element" overallStatus: "Available" libraries: @@ -131,7 +141,8 @@ status: Ready - name: Documentation status: Ready -- name: "Dialog" +- tagName: rh-dialog + name: "Dialog" type: "Element" overallStatus: "Available" libraries: @@ -143,7 +154,8 @@ status: Ready - name: Documentation status: Ready -- name: "Footer" +- tagName: rh-footer + name: "Footer" type: "Element" overallStatus: "Available" libraries: @@ -155,7 +167,8 @@ status: Ready - name: Documentation status: Ready -- name: "Health Index" +- tagName: rh-health-index + name: "Health Index" type: "Element" overallStatus: "Available" libraries: @@ -167,7 +180,8 @@ status: Planned - name: Documentation status: Ready -- name: "Jumplinks" +- tagName: rh-jump-links + name: "Jumplinks" type: "Element" overallStatus: "Available" libraries: @@ -179,7 +193,8 @@ status: N/A - name: Documentation status: Ready -- name: "Navigation Secondary" +- tagName: rh-navigation-secondary + name: "Navigation Secondary" type: "Element" overallStatus: "Available" libraries: @@ -191,7 +206,8 @@ status: Ready - name: Documentation status: Ready -- name: "Pagination" +- tagName: rh-pagination + name: "Pagination" type: "Element" overallStatus: "Available" libraries: @@ -203,7 +219,7 @@ status: Ready - name: Documentation status: Ready -- tagName: rh-popver +- tagName: rh-popover name: "Popover" type: "Element" overallStatus: "Available" @@ -211,12 +227,13 @@ - name: Figma library status: Ready - name: RH Elements - status: Ready + status: Planned - name: WebRH - status: Ready + status: Planned - name: Documentation status: Ready -- name: "Skip Link" +- tagName: rh-skip-link + name: "Skip Link" type: "Element" overallStatus: "New" libraries: @@ -228,7 +245,8 @@ status: Planned - name: Documentation status: Ready -- name: "Site Status" +- tagName: rh-site-status + name: "Site Status" type: "Element" overallStatus: "New" libraries: @@ -240,7 +258,8 @@ status: Planned - name: Documentation status: Ready -- name: "Spinner" +- tagName: rh-spinner + name: "Spinner" type: "Element" overallStatus: "Available" libraries: @@ -252,7 +271,8 @@ status: Ready - name: Documentation status: Ready -- name: "Stat" +- tagName: rh-stat + name: "Stat" type: "Element" overallStatus: "Available" libraries: @@ -264,7 +284,8 @@ status: Ready - name: Documentation status: Ready -- name: "Subnav" +- tagName: rh-subnav + name: "Subnav" type: "Element" overallStatus: "Available" libraries: @@ -276,7 +297,8 @@ status: Ready - name: Documentation status: Ready -- name: "Surface" +- tagName: rh-surface + name: "Surface" type: "Element" overallStatus: "New" libraries: @@ -288,7 +310,8 @@ status: Ready - name: Documentation status: Ready -- name: "Switch" +- tagName: rh-switch + name: "Switch" type: "Element" overallStatus: "New" libraries: @@ -300,7 +323,8 @@ status: Planned - name: Documentation status: Ready -- name: "Table" +- tagName: rh-table + name: "Table" type: "Element" overallStatus: "New" libraries: @@ -312,7 +336,8 @@ status: Ready - name: Documentation status: Ready -- name: "Tabs" +- tagName: rh-tabs + name: "Tabs" type: "Element" overallStatus: "Available" libraries: @@ -324,7 +349,8 @@ status: Ready - name: Documentation status: Ready -- name: "Tag" +- tagName: rh-tag + name: "Tag" type: "Element" overallStatus: "Available" libraries: @@ -336,7 +362,8 @@ status: Ready - name: Documentation status: Ready -- name: "Tile" +- tagName: rh-tile + name: "Tile" type: "Element" overallStatus: "New" libraries: @@ -348,7 +375,8 @@ status: Ready - name: Documentation status: Ready -- name: "Timestamp" +- tagName: rh-timestamp + name: "Timestamp" type: "Element" overallStatus: "Available" libraries: @@ -360,7 +388,8 @@ status: Ready - name: Documentation status: Ready -- name: "Tooltip" +- tagName: rh-tooltip + name: "Tooltip" type: "Element" overallStatus: "Available" libraries: @@ -372,15 +401,3 @@ status: Ready - name: Documentation status: Ready -- name: "Popover" - type: "Element" - overallStatus: "In Progress" - libraries: - - name: Figma library - status: Ready - - name: RH Elements - status: Planned - - name: WebRH - status: Planned - - name: Documentation - status: Planned From 43285f90e8df4c6602ea825db6ca0fbaf2a38bdc Mon Sep 17 00:00:00 2001 From: Steven Spriggs Date: Mon, 15 Jul 2024 13:15:21 -0400 Subject: [PATCH 04/17] docs: upate renderCodeDocs to pull from doc object for docsPage --- docs/_plugins/shortcodes/renderCodeDocs.cjs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/_plugins/shortcodes/renderCodeDocs.cjs b/docs/_plugins/shortcodes/renderCodeDocs.cjs index de1b85bb2a..c8aa9ba4a0 100644 --- a/docs/_plugins/shortcodes/renderCodeDocs.cjs +++ b/docs/_plugins/shortcodes/renderCodeDocs.cjs @@ -49,10 +49,7 @@ class Renderers { * but a DocsPage instance, 11ty assigns it to this.ctx._ * @see https://github.com/11ty/eleventy/blob/bf7c0c0cce1b2cb01561f57fdd33db001df4cb7e/src/Plugins/RenderPlugin.js#L89-L93 */ - this.docsPage = page; - if (!this.docsPage?.manifest) { - console.log(page); - } + this.docsPage = page.doc.docsPage; this.manifest = this.docsPage.manifest; this.kwargs = kwargs; } From 80729fdc18169c6399081f79764fbbbd81a80d94 Mon Sep 17 00:00:00 2001 From: Steven Spriggs Date: Mon, 15 Jul 2024 13:16:11 -0400 Subject: [PATCH 05/17] docs: update repoStatusChecklist to pull from docs object for tagName --- docs/_plugins/shortcodes/repoStatus.cjs | 31 +++++++++++++------------ 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/docs/_plugins/shortcodes/repoStatus.cjs b/docs/_plugins/shortcodes/repoStatus.cjs index 85a46aee94..708262ae5e 100644 --- a/docs/_plugins/shortcodes/repoStatus.cjs +++ b/docs/_plugins/shortcodes/repoStatus.cjs @@ -86,17 +86,18 @@ const STATUS_CHECKLIST = { * @param {number} [options.level] heading level */ function repoStatusList({ repoStatus, heading = 'Status', level = 2 } = {}) { - // Removing Documentation status from the repoStatusList - const librariesList = this.ctx.doc ? - repoStatus.find(x => x.tagName === this.ctx.doc.tagName) - ?.libraries?.filter(repo => - repo.name !== 'Documentation') - : repoStatus.flatMap(x => x.libraries) ?? []; + // Removing Documentation status from the repoStatusList + const librariesList = this.ctx.doc ? + repoStatus.find(x => x.tagName === this.ctx.doc.tagName) + ?.libraries?.filter(repo => + repo.name !== 'Documentation') + : repoStatus.flatMap(x => x.libraries) ?? []; - if (!Array.isArray(librariesList) || !librariesList.length) { - return ''; - } else { - return html` + + if (!Array.isArray(librariesList) || !librariesList.length) { + return ''; + } else { + return html` @@ -175,12 +176,12 @@ function repoStatusTable({ repoStatus }) { * @param {number} [options.level] heading level */ function repoStatusChecklist({ repoStatus, heading = 'Status checklist', level = 2 } = {}) { - + // is repoStatus returning undefined ? const statusList = this.ctx.doc ? - repoStatus.find(x => x.tagName === this.ctx._.tagName) - ?.libraries?.filter(repo => - repo.name !== 'Documentation') - : repoStatus.flatMap(x => x.libraries) ?? []; + repoStatus.find(x => x.tagName === this.ctx.doc.tagName) + ?.libraries?.filter(repo => + repo.name !== 'Documentation') + : repoStatus.flatMap(x => x.libraries) ?? []; if (!Array.isArray(statusList) || !statusList.length) { return ''; From f6d22bc9bb852ccf63c1ae22485f186cad9b61fd Mon Sep 17 00:00:00 2001 From: Steven Spriggs Date: Mon, 15 Jul 2024 13:16:46 -0400 Subject: [PATCH 06/17] docs(popover): add repoStatusChecklist shortcode --- elements/rh-popover/docs/00-overview.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/elements/rh-popover/docs/00-overview.md b/elements/rh-popover/docs/00-overview.md index 6e41f2ccd9..a537c46515 100644 --- a/elements/rh-popover/docs/00-overview.md +++ b/elements/rh-popover/docs/00-overview.md @@ -7,10 +7,13 @@ This element is currently in progress and not yet available for use. A Popover displays content in a non-modal dialog and adds contextual information or provides resources via text and links. +{% repoStatusList repoStatus=repoStatus %} + ## Sample element Popover component sample -{% repoStatusList repoStatus=repoStatus %} + +{% repoStatusChecklist repoStatus=repoStatus %} From 912c12b47807e2c1ada47f808aad71c4c3b3a290 Mon Sep 17 00:00:00 2001 From: Steven Spriggs Date: Mon, 15 Jul 2024 13:19:13 -0400 Subject: [PATCH 07/17] docs: put computed data for elements back into frontmatter, permalink not calculating --- docs/elements/elements.11tydata.cjs | 16 ---------------- docs/elements/elements.html | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 16 deletions(-) delete mode 100644 docs/elements/elements.11tydata.cjs diff --git a/docs/elements/elements.11tydata.cjs b/docs/elements/elements.11tydata.cjs deleted file mode 100644 index e16a69b183..0000000000 --- a/docs/elements/elements.11tydata.cjs +++ /dev/null @@ -1,16 +0,0 @@ -module.exports = { - templateEngineOverride: 'njk', - hasToc: true, - layout: 'layouts/pages/elements.njk', - permalink: '{{ doc.permalink }}', - pagination: { - data: 'collections.elementDocs', - alias: 'doc', - size: 1, - }, - eleventyComputed: { - context(data) { - return data; - }, - }, -}; diff --git a/docs/elements/elements.html b/docs/elements/elements.html index 33c48b758f..ffe0518d26 100644 --- a/docs/elements/elements.html +++ b/docs/elements/elements.html @@ -1 +1,19 @@ +---js +{ + templateEngineOverride: 'njk', + hasToc: true, + layout: 'layouts/pages/elements.njk', + permalink: '{{ doc.permalink }}', + pagination: { + data: 'collections.elementDocs', + alias: 'doc', + size: 1, + }, + eleventyComputed: { + context(data) { + return data; + }, + }, +} +--- {% renderFile doc.filePath, context %} From 40294f1f7200cbad7959f2bc9ba1f1b8b80fed25 Mon Sep 17 00:00:00 2001 From: Steven Spriggs Date: Mon, 15 Jul 2024 13:24:54 -0400 Subject: [PATCH 08/17] docs: lint renderCodeDocs --- docs/_plugins/shortcodes/renderCodeDocs.cjs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/_plugins/shortcodes/renderCodeDocs.cjs b/docs/_plugins/shortcodes/renderCodeDocs.cjs index c8aa9ba4a0..6d86782718 100644 --- a/docs/_plugins/shortcodes/renderCodeDocs.cjs +++ b/docs/_plugins/shortcodes/renderCodeDocs.cjs @@ -10,12 +10,12 @@ const html = (...args) => .join('\n'); module.exports = function(eleventyConfig) { - eleventyConfig.addPairedShortcode('renderCodeDocs', function renderCodeDocs(content, kwargs = {}) { - const page = this.context?.doc ?? this.ctx; - const renderers = new Renderers(page, kwargs); - return renderers.renderAll(content); - } - ); + eleventyConfig + .addPairedShortcode('renderCodeDocs', function renderCodeDocs(content, kwargs = {}) { + const page = this.context?.doc ?? this.ctx; + const renderers = new Renderers(page, kwargs); + return renderers.renderAll(content); + }); }; function innerMD(content = '') { From 04ef109f34df54140374b1102e60bcff9b817b82 Mon Sep 17 00:00:00 2001 From: Steven Spriggs Date: Mon, 15 Jul 2024 14:52:39 -0400 Subject: [PATCH 09/17] docs(popover): add code tab --- elements/rh-popover/docs/00-overview.md | 4 ---- elements/rh-popover/docs/30-code.md | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 elements/rh-popover/docs/30-code.md diff --git a/elements/rh-popover/docs/00-overview.md b/elements/rh-popover/docs/00-overview.md index a537c46515..02cdcb6e74 100644 --- a/elements/rh-popover/docs/00-overview.md +++ b/elements/rh-popover/docs/00-overview.md @@ -1,7 +1,3 @@ -## Coming soon! - -This element is currently in progress and not yet available for use. - ## Overview A Popover displays content in a non-modal dialog and adds contextual diff --git a/elements/rh-popover/docs/30-code.md b/elements/rh-popover/docs/30-code.md new file mode 100644 index 0000000000..8e659b1416 --- /dev/null +++ b/elements/rh-popover/docs/30-code.md @@ -0,0 +1,3 @@ +## Coming soon! + +This element is currently in progress and not yet available for use. \ No newline at end of file From 19f0bfac5e342b95376d9f35f7e7067f2c478fac Mon Sep 17 00:00:00 2001 From: Steven Spriggs Date: Mon, 15 Jul 2024 14:52:49 -0400 Subject: [PATCH 10/17] docs(progess-stops): add code tab --- elements/rh-progress-steps/docs/00-overview.md | 8 ++++---- elements/rh-progress-steps/docs/30-code.md | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 elements/rh-progress-steps/docs/30-code.md diff --git a/elements/rh-progress-steps/docs/00-overview.md b/elements/rh-progress-steps/docs/00-overview.md index 730b7991d8..ad90cee1df 100644 --- a/elements/rh-progress-steps/docs/00-overview.md +++ b/elements/rh-progress-steps/docs/00-overview.md @@ -1,14 +1,14 @@ -## Coming soon! - -This element is currently in progress and not yet available for use. - ## Overview Progress steps guide a user through a task with multiple sequential steps toward the completion of a linear process. +{% repoStatusList repoStatus=repoStatus %} + ## Sample element Progress steps component sample + +{% repoStatusChecklist repoStatus=repoStatus %} \ No newline at end of file diff --git a/elements/rh-progress-steps/docs/30-code.md b/elements/rh-progress-steps/docs/30-code.md new file mode 100644 index 0000000000..b9cddcad45 --- /dev/null +++ b/elements/rh-progress-steps/docs/30-code.md @@ -0,0 +1,3 @@ +## Coming soon! + +This element is currently in progress and not yet available for use. From 4483a575bc4bea67935606e3fa329085c46a2a4b Mon Sep 17 00:00:00 2001 From: Steven Spriggs Date: Mon, 15 Jul 2024 14:55:59 -0400 Subject: [PATCH 11/17] docs: update repoStatus with progres steps --- docs/_data/repoStatus.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/_data/repoStatus.yaml b/docs/_data/repoStatus.yaml index 42f69022e9..e4c4aff86f 100644 --- a/docs/_data/repoStatus.yaml +++ b/docs/_data/repoStatus.yaml @@ -232,6 +232,19 @@ status: Planned - name: Documentation status: Ready +- tagName: rh-progress-steps + name: "Progess Steps" + type: "Element" + overallStatus: "Available" + libraries: + - name: Figma library + status: Ready + - name: RH Elements + status: Planned + - name: WebRH + status: Planned + - name: Documentation + status: Ready - tagName: rh-skip-link name: "Skip Link" type: "Element" From 1637174fd94dffd44dd41eacacb283445e28e6bf Mon Sep 17 00:00:00 2001 From: Steven Spriggs Date: Mon, 15 Jul 2024 15:15:01 -0400 Subject: [PATCH 12/17] docs: rename webRH to RH Shared Libs --- docs/_data/repoStatus.yaml | 64 ++++++++++++------------- docs/_plugins/shortcodes/repoStatus.cjs | 12 ++--- 2 files changed, 38 insertions(+), 38 deletions(-) diff --git a/docs/_data/repoStatus.yaml b/docs/_data/repoStatus.yaml index e4c4aff86f..fdf3002ecf 100644 --- a/docs/_data/repoStatus.yaml +++ b/docs/_data/repoStatus.yaml @@ -7,7 +7,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Ready - name: Documentation status: Ready @@ -20,7 +20,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Ready - name: Documentation status: Ready @@ -33,7 +33,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Ready - name: Documentation status: Ready @@ -46,7 +46,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Ready - name: Documentation status: Ready @@ -59,7 +59,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Planned - name: Documentation status: In Progress @@ -72,7 +72,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Ready - name: Documentation status: Ready @@ -85,7 +85,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Ready - name: Documentation status: Ready @@ -98,7 +98,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Ready - name: Documentation status: Ready @@ -111,7 +111,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Ready - name: Documentation status: Ready @@ -124,7 +124,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Ready - name: Documentation status: Ready @@ -137,7 +137,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Ready - name: Documentation status: Ready @@ -150,7 +150,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Ready - name: Documentation status: Ready @@ -163,7 +163,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Ready - name: Documentation status: Ready @@ -176,7 +176,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Planned - name: Documentation status: Ready @@ -189,7 +189,7 @@ status: N/A - name: RH Elements status: N/A - - name: WebRH + - name: RH Shared Libs status: N/A - name: Documentation status: Ready @@ -202,7 +202,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Ready - name: Documentation status: Ready @@ -215,7 +215,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Ready - name: Documentation status: Ready @@ -228,7 +228,7 @@ status: Ready - name: RH Elements status: Planned - - name: WebRH + - name: RH Shared Libs status: Planned - name: Documentation status: Ready @@ -241,7 +241,7 @@ status: Ready - name: RH Elements status: Planned - - name: WebRH + - name: RH Shared Libs status: Planned - name: Documentation status: Ready @@ -254,7 +254,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Planned - name: Documentation status: Ready @@ -267,7 +267,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Planned - name: Documentation status: Ready @@ -280,7 +280,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Ready - name: Documentation status: Ready @@ -293,7 +293,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Ready - name: Documentation status: Ready @@ -306,7 +306,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Ready - name: Documentation status: Ready @@ -319,7 +319,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Ready - name: Documentation status: Ready @@ -332,7 +332,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Planned - name: Documentation status: Ready @@ -345,7 +345,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Ready - name: Documentation status: Ready @@ -358,7 +358,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Ready - name: Documentation status: Ready @@ -371,7 +371,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Ready - name: Documentation status: Ready @@ -384,7 +384,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Ready - name: Documentation status: Ready @@ -397,7 +397,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Ready - name: Documentation status: Ready @@ -410,7 +410,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Ready - name: Documentation status: Ready diff --git a/docs/_plugins/shortcodes/repoStatus.cjs b/docs/_plugins/shortcodes/repoStatus.cjs index 708262ae5e..b919053692 100644 --- a/docs/_plugins/shortcodes/repoStatus.cjs +++ b/docs/_plugins/shortcodes/repoStatus.cjs @@ -70,11 +70,11 @@ const STATUS_CHECKLIST = { 'Deprecated': 'Component is no longer available in the RH Elements repo', 'N/A': 'Not planned, not available, or does not apply', }, - 'WebRH': { - 'Ready': 'Component is available in the WebRH repo', - 'In progress': 'Component will be added to the WebRH repo when finished', - 'Planned': 'Component should be added to the WebRH repo at a later date', - 'Deprecated': 'Component is no longer available in the WebRH repo', + 'RH Shared Libs': { + 'Ready': 'Component is available in the RH Shared Libs repo', + 'In progress': 'Component will be added to the RH Shared Libs repo when finished', + 'Planned': 'Component should be added to the RH Shared Libs repo at a later date', + 'Deprecated': 'Component is no longer available in the RH Shared Libs repo', 'N/A': 'Not planned, not available, or does not apply', }, }; @@ -144,7 +144,7 @@ function repoStatusTable({ repoStatus }) { Name Figma library RH Elements - WebRH + RH Shared Libs Documentation From b6a46ff246caaaa60bc0480f9285f791fd42a213 Mon Sep 17 00:00:00 2001 From: Steven Spriggs Date: Mon, 15 Jul 2024 15:48:22 -0400 Subject: [PATCH 13/17] docs: add getPrettyName filter which loads from tagName instead of docs --- docs/_plugins/rhds.cjs | 7 +++++++ docs/elements/index.njk | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/_plugins/rhds.cjs b/docs/_plugins/rhds.cjs index 2ac192a295..275bd3a47e 100644 --- a/docs/_plugins/rhds.cjs +++ b/docs/_plugins/rhds.cjs @@ -189,6 +189,13 @@ module.exports = function(eleventyConfig, { tagsToAlphabetize }) { return content; }); + eleventyConfig.addFilter('getPrettyName', function(tagName) { + const { pfeconfig } = eleventyConfig?.globalData ?? {}; + const slug = getTagNameSlug(tagName, pfeconfig); + const deslugify = eleventyConfig.getFilter('deslugify'); + return pfeconfig.aliases[tagName] || deslugify(slug); + }); + eleventyConfig.addFilter('getTitleFromDocs', function(docs) { return docs.find(x => x.docsPage?.title)?.alias ?? docs[0]?.alias diff --git a/docs/elements/index.njk b/docs/elements/index.njk index 2060ade7bd..ae816ffe47 100644 --- a/docs/elements/index.njk +++ b/docs/elements/index.njk @@ -38,7 +38,7 @@ importElements: {%- for tagName, docs in collections.elementDocs | groupby('tagName') -%} {%- set doc = docs[0] -%} {%- set slug = doc.slug -%} - {%- set title = docs | getTitleFromDocs | makeSentenceCase -%} + {%- set title = tagName | getPrettyName | makeSentenceCase -%} {%- set comingSoon = tagName in comingSoonItems -%} {%- set summary = doc.docsPage.summary -%} {% if not summary %} From 18aca5679559b560ba43250bad4c310330c4a15d Mon Sep 17 00:00:00 2001 From: Steven Spriggs Date: Tue, 16 Jul 2024 09:10:38 -0400 Subject: [PATCH 14/17] docs: change filter name to getPrettyElementName MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Benny Powers - עם ישראל חי! --- docs/elements/index.njk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/elements/index.njk b/docs/elements/index.njk index ae816ffe47..c4d578b611 100644 --- a/docs/elements/index.njk +++ b/docs/elements/index.njk @@ -38,7 +38,7 @@ importElements: {%- for tagName, docs in collections.elementDocs | groupby('tagName') -%} {%- set doc = docs[0] -%} {%- set slug = doc.slug -%} - {%- set title = tagName | getPrettyName | makeSentenceCase -%} + {%- set title = tagName | getPrettyElementName | makeSentenceCase -%} {%- set comingSoon = tagName in comingSoonItems -%} {%- set summary = doc.docsPage.summary -%} {% if not summary %} From be1cb8bfb38af716bb428b05b349aacc2403bd60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benny=20Powers=20-=20=D7=A2=D7=9D=20=D7=99=D7=A9=D7=A8?= =?UTF-8?q?=D7=90=D7=9C=20=D7=97=D7=99!?= Date: Tue, 16 Jul 2024 16:52:28 +0300 Subject: [PATCH 15/17] docs: update docs/_plugins/rhds.cjs --- docs/_plugins/rhds.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_plugins/rhds.cjs b/docs/_plugins/rhds.cjs index 275bd3a47e..9879a0b4b8 100644 --- a/docs/_plugins/rhds.cjs +++ b/docs/_plugins/rhds.cjs @@ -189,7 +189,7 @@ module.exports = function(eleventyConfig, { tagsToAlphabetize }) { return content; }); - eleventyConfig.addFilter('getPrettyName', function(tagName) { + eleventyConfig.addFilter('getPrettyElementName', function(tagName) { const { pfeconfig } = eleventyConfig?.globalData ?? {}; const slug = getTagNameSlug(tagName, pfeconfig); const deslugify = eleventyConfig.getFilter('deslugify'); From 9724dc73c53beb0c47a6ef6d33ab85c74f8d30a9 Mon Sep 17 00:00:00 2001 From: Steven Spriggs Date: Tue, 16 Jul 2024 10:06:58 -0400 Subject: [PATCH 16/17] docs: fix merge --- docs/_data/repoStatus.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_data/repoStatus.yaml b/docs/_data/repoStatus.yaml index c7fcb14968..83c1ba258f 100644 --- a/docs/_data/repoStatus.yaml +++ b/docs/_data/repoStatus.yaml @@ -98,7 +98,7 @@ status: Ready - name: RH Elements status: Ready - - name: WebRH + - name: RH Shared Libs status: Ready - name: Documentation status: Ready From c680eecd1843e06b6a2ab9bac040f4b1c117c197 Mon Sep 17 00:00:00 2001 From: Steven Spriggs Date: Tue, 16 Jul 2024 10:34:45 -0400 Subject: [PATCH 17/17] docs(breadcrumb): add repoStatus data to shortcodes --- elements/rh-breadcrumb/docs/00-overview.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elements/rh-breadcrumb/docs/00-overview.md b/elements/rh-breadcrumb/docs/00-overview.md index a8b1665f15..2c9e3a68f0 100644 --- a/elements/rh-breadcrumb/docs/00-overview.md +++ b/elements/rh-breadcrumb/docs/00-overview.md @@ -8,7 +8,7 @@ Three placeholder breadcrumb links and a current page breadcrumb -{% repoStatusList %} +{% repoStatusList repoStatus=repoStatus %} ## Sample element @@ -28,4 +28,4 @@ - When you want to help orient a user and and show where they are in the page hierarchy - When you want to provide a secondary method for navigating to parent pages of the current page -{% repoStatusChecklist %} \ No newline at end of file +{% repoStatusChecklist repoStatus=repoStatus %} \ No newline at end of file