Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: layout css rewrite, and adding uxdot-components and more... #1465

Merged
merged 311 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from 204 commits
Commits
Show all changes
311 commits
Select commit Hold shift + click to select a range
0306c76
docs: improve tokens overview
zeroedin Feb 6, 2024
64f2973
docs: improve patterns overview
zeroedin Feb 6, 2024
977a494
docs: fix sidenav token overview active
zeroedin Feb 6, 2024
ae98cfe
docs: implement inital styles for rh-table on tokens pages and uxdot-…
zeroedin Feb 7, 2024
186735e
docs: fix import of toast
zeroedin Feb 7, 2024
f205737
docs: add text to github masthead link
zeroedin Feb 7, 2024
b63c307
docs: improve masthead styles
zeroedin Feb 7, 2024
f1243a4
docs: improve masthead styles
zeroedin Feb 7, 2024
811ba60
docs: improve cls
zeroedin Feb 7, 2024
fef510b
docs: improve token pages
zeroedin Feb 7, 2024
f725ad6
docs: reduce cls
zeroedin Feb 7, 2024
a5fdee0
docs: more cls reduction
zeroedin Feb 7, 2024
61c7e1f
docs: improve token styles
zeroedin Feb 7, 2024
592142a
docs: improve tokens styles, reduce number of sections
zeroedin Feb 7, 2024
e0fc72c
docs: improve token pages styles
zeroedin Feb 8, 2024
2a4b2f3
docs: breakpoint tokens icon size
zeroedin Feb 8, 2024
1d93f4f
docs: fix broken links in tile nav for tokens
zeroedin Feb 8, 2024
7675405
docs: improve token typography styles
zeroedin Feb 8, 2024
e6a88a6
docs: improve token typography styles adding code and correctly famil…
zeroedin Feb 8, 2024
389ada2
docs: intiial work on elements pages styles
zeroedin Feb 8, 2024
38a6044
docs: move rh-tile fix to styles.css
zeroedin Feb 8, 2024
cc0cdba
docs: elements page template, accordion style improvements
zeroedin Feb 8, 2024
b958a28
docs: when tile is compact remove uxdot-example extra margin
zeroedin Feb 8, 2024
3188e21
docs: update accordion guidelines
zeroedin Feb 8, 2024
a08d273
docs: reorganize includes folder, relink includes
zeroedin Feb 8, 2024
5a6a037
docs: improve release notes
zeroedin Feb 8, 2024
e36ce27
docs: reorganize font location, implment css layers
zeroedin Feb 9, 2024
8db41b4
docs: add not defined styles for subnav
zeroedin Feb 9, 2024
1b901a1
docs: add not defined styles uxdot header h1reduce jitter
zeroedin Feb 9, 2024
8c3ffb7
docs: move header to a component partial
zeroedin Feb 9, 2024
97ee2f0
docs: clean up base layout more
zeroedin Feb 9, 2024
63898c1
docs: remove unused setting of no-js js class
zeroedin Feb 9, 2024
3cca217
docs: remove class from sections
zeroedin Feb 9, 2024
17630d3
docs: fix font weight in feedback
zeroedin Feb 9, 2024
8844b66
docs: reenvision code tab
zeroedin Feb 9, 2024
e74fd30
docs: remove usersnap from base layout
zeroedin Feb 9, 2024
47dc5b2
docs: clean up playground and demo css
zeroedin Feb 9, 2024
b4bbea7
docs: fix default body text size
zeroedin Feb 9, 2024
ab67013
docs: update alert docs pages
zeroedin Feb 9, 2024
7cf878d
docs: make subnav sticky, reorg some css
zeroedin Feb 12, 2024
8021d4d
docs: more css organization
zeroedin Feb 12, 2024
d39adec
even more css organization
zeroedin Feb 12, 2024
5514d62
docs: lint
zeroedin Feb 12, 2024
58625a0
docs: update rh-audio docs
zeroedin Feb 12, 2024
c5f04fd
docs: remove duplication of container, fix z-index
zeroedin Feb 12, 2024
3d9a9a8
docs: correct scroll jank with sidenav
zeroedin Feb 12, 2024
23dbae2
docs: clean up masthead styles
zeroedin Feb 12, 2024
854cd0a
docs: re-add overflow on sidenav
zeroedin Feb 12, 2024
22216c4
docs: fix path to backpage.css
zeroedin Feb 13, 2024
225fa53
docs: improve avatar docs
zeroedin Feb 13, 2024
007fd1c
docs: fix offset on spacerTokensTable
zeroedin Feb 13, 2024
cfa53f4
docs: update badge docs
zeroedin Feb 13, 2024
382d809
docs: update blockquote docs
zeroedin Feb 13, 2024
cddd485
docs: move rule to masthead lightdom
zeroedin Feb 13, 2024
759d437
docs: update button docs
zeroedin Feb 13, 2024
2dc4461
docs: update card docs
zeroedin Feb 13, 2024
66ab3f7
docs: improve codeblock docs
zeroedin Feb 13, 2024
fdf4ba3
docs: update cta docs
zeroedin Feb 13, 2024
6dd0143
docs: fix typo
zeroedin Feb 13, 2024
d3fb9df
docs: adjust whitespace in card grid
zeroedin Feb 14, 2024
e5d9870
docs: update dialog docs
zeroedin Feb 14, 2024
af2bc00
docs: improve whitespace flow styles with uxdot example
zeroedin Feb 14, 2024
162c23e
docs: remove margin when a uxdot example is used in a figure
zeroedin Feb 14, 2024
de3aa5a
docs: improve deprecated docs details styles
zeroedin Feb 14, 2024
de5c193
docs: update footer docs
zeroedin Feb 14, 2024
18aa1c4
docs: use rh-tile disabled feature for coming soon items
zeroedin Feb 14, 2024
1b7bbfa
docs: udpate secondary nav docs
zeroedin Feb 14, 2024
e5d8a4e
docs: update pagination styles
zeroedin Feb 14, 2024
8b15be8
docs: update navigation docs
zeroedin Feb 14, 2024
4b7366b
docs: fix headers that have search
zeroedin Feb 15, 2024
d10442f
docs: ensure header font styles
zeroedin Feb 15, 2024
e79e6d2
docs: update popover docs
zeroedin Feb 15, 2024
2ce3e41
docs: update progress steps
zeroedin Feb 15, 2024
51164d3
docs: update spinner docs
zeroedin Feb 15, 2024
c437164
docs: reduce spacing between sibling h2 and h3
zeroedin Feb 15, 2024
fcc9883
docs: update stat docs
zeroedin Feb 15, 2024
5f5701d
docs: reduce bounce of masthead on load
zeroedin Feb 15, 2024
6658ae9
docs: update subnav docs
zeroedin Feb 15, 2024
5b65f3c
docs: fix example darkest background
zeroedin Feb 15, 2024
edccda4
docs: improve uxdot-best-practice
zeroedin Feb 15, 2024
1fe72e4
docs: make uxdot-example a color context provider and consumer
zeroedin Feb 16, 2024
81b904b
docs: fix uxdot-example borders last commit broke
zeroedin Feb 16, 2024
fdf4f53
docs: add transparent to foundations personalization examples
zeroedin Feb 16, 2024
8ede2d2
docs: correct image width on foundations color
zeroedin Feb 16, 2024
61bace5
docs: update surface
zeroedin Feb 16, 2024
986be88
docs: fix danger border color in uxdot-example
zeroedin Feb 16, 2024
1512b34
docs: update table docs
zeroedin Feb 16, 2024
f39c0cd
docs: update tabs docs
zeroedin Feb 16, 2024
a1ce846
docs: reduce header bounce on load
zeroedin Feb 16, 2024
89f3d5c
docs: update tag docs
zeroedin Feb 16, 2024
adf251f
docs: update tile docs
zeroedin Feb 16, 2024
f307f9a
docs: update timestamp docs
zeroedin Feb 16, 2024
589b2ad
docs: add a :target rule for hash links scroll margin
zeroedin Feb 16, 2024
3162dc7
docs update tooltip docs
zeroedin Feb 16, 2024
2c2d463
docs: update design-code-status rh-table
zeroedin Feb 16, 2024
9fcf738
docs: initial sidenav functionality
zeroedin Feb 20, 2024
701f366
docs: improve lightdom css of uxdot elements
zeroedin Feb 20, 2024
3952098
docs: switch masthead to a fixed position to reduce bounce on scroll
zeroedin Feb 20, 2024
b3b9d66
docs: correct padding when has subnav
zeroedin Feb 20, 2024
c0718da
docs: correct padding
zeroedin Feb 20, 2024
4a8dff1
docs: add :not(:defined) ahref active border style
zeroedin Feb 20, 2024
ab8e278
docs: remove commment
zeroedin Feb 20, 2024
b086576
docs: inital work to get toc working
zeroedin Feb 20, 2024
8630d65
docs: update about how we build for toc
zeroedin Feb 20, 2024
4b0ca92
docs: hide details marker in safari
zeroedin Feb 20, 2024
220b053
docs: adjust aside header size
zeroedin Feb 20, 2024
3c23471
docs: all elements active
zeroedin Feb 20, 2024
c50d3ef
docs: fix ids on personalization for toc
zeroedin Feb 20, 2024
b1ce8bb
docs: fix ids in grid for personalization
zeroedin Feb 20, 2024
c8063b2
docs: remove debug test
zeroedin Feb 20, 2024
25c7f1d
docs: update pattern docs
zeroedin Feb 20, 2024
c043673
docs: update link pattern
zeroedin Feb 21, 2024
9c032f8
docs: update container width to more match layout exploration
zeroedin Feb 21, 2024
790a582
docs: update home styles to match layout changes
zeroedin Feb 21, 2024
4f7ecbe
docs: update link search-bar and skip nav pattern docs
zeroedin Feb 21, 2024
1649937
docs: update sticky banner, sticky card and video thumbnail patterns
zeroedin Feb 21, 2024
d3dd4fc
docs: fix not defined sidenav style
zeroedin Feb 21, 2024
3e09d1a
docs: remove margin from ul in sidenav
zeroedin Feb 21, 2024
ad118c8
docs: normalize ordering
zeroedin Feb 21, 2024
0063dce
docs: remove unused ordering plugin
zeroedin Feb 21, 2024
896c8b9
docs: remove test class
zeroedin Feb 21, 2024
106e2bf
docs: clean up typography styles
zeroedin Feb 21, 2024
30c9779
docs: add skip nav component
zeroedin Feb 21, 2024
548666f
docs: alphabetize guard
zeroedin Feb 26, 2024
89e3f4c
docs: improve sidenav
zeroedin Feb 26, 2024
d4011e5
docs: lint
zeroedin Feb 26, 2024
2d268f3
docs: full height sidenav
zeroedin Feb 26, 2024
308bf8c
docs: await update to move focus
zeroedin Feb 26, 2024
cc8a729
docs: update masthead link order
zeroedin Feb 26, 2024
43aebf7
Merge branch 'main' into docs/uxdot-masthead-component
zeroedin Feb 26, 2024
92b0e00
docs: add accessibility docs to sidenav, fix merge errors
zeroedin Feb 26, 2024
5c6375a
Merge branch 'main' into docs/uxdot-masthead-component
zeroedin Feb 26, 2024
9b5d3ee
docs: update accessibility format to match branch
zeroedin Feb 26, 2024
5f32105
docs: add escape key closing to sidenav
zeroedin Feb 26, 2024
bf18e43
docs: add main id to elements pages
zeroedin Feb 26, 2024
6844c21
docs: add toc to accessibility section
zeroedin Feb 27, 2024
c68b005
docs: fix 404 links in prerelease, rename to md
zeroedin Feb 27, 2024
a6b6d6e
docs: remove unused files
zeroedin Feb 27, 2024
3fab786
docs: reorganize assets move all javascript to single folder
zeroedin Feb 27, 2024
88334bd
docs: fix lightdom css for elements broken by previous commit
zeroedin Feb 27, 2024
68cd964
docs: style tweaks
zeroedin Feb 27, 2024
154c92b
docs: remove headline feature from uxdot-example, not used
zeroedin Feb 27, 2024
2c9c734
docs: remove headerlevel attribute
zeroedin Feb 27, 2024
08382ff
docs: fix best-practice implementation
zeroedin Feb 27, 2024
499adb4
docs: fix best-practice implementation
zeroedin Feb 27, 2024
b5c22e2
docs: add grid
zeroedin Feb 27, 2024
4f7a96c
docs: adjusted layout with toc and added max-width to paras and headings
markcaron Feb 27, 2024
5b298bc
docs: fixing accessibility pages and styling code and kbd elements
markcaron Feb 27, 2024
c032ed9
docs: adjusting para line-length
markcaron Feb 27, 2024
234efd6
docs: update qa testing permalink and heading
zeroedin Feb 28, 2024
92fff2d
docs: remove unused shortcodes
zeroedin Feb 29, 2024
3384897
docs: fix shortcodes that were missed and more cleanup
zeroedin Feb 29, 2024
447e96c
docs: rename confusing heading frontmatter for sidenavTitle
zeroedin Feb 29, 2024
217b30a
docs: fix typo
zeroedin Feb 29, 2024
3caae9c
docs: update 404 with additional sitemap items
zeroedin Feb 29, 2024
39cd82d
docs: correct aria role
zeroedin Feb 29, 2024
d4c4490
docs: add aria-label to patterns tile nav
zeroedin Feb 29, 2024
2d99248
docs: add aria-label get started nav
zeroedin Feb 29, 2024
15c91bf
docs: add aria-label elements nav
zeroedin Feb 29, 2024
7873dec
docs: add aria-label to sidenav
zeroedin Feb 29, 2024
7f3d6e3
docs: initial RTI implementation
zeroedin Feb 29, 2024
a54a249
docs: rename prism.css to prism-rhds.css to reflect that it is a theme
zeroedin Feb 29, 2024
0f8e917
docs: reorganize dev-server styles
zeroedin Mar 5, 2024
39c274c
docs: correct path to woff file, eot does not exist
zeroedin Mar 5, 2024
2354797
docs: fix all font paths
zeroedin Mar 5, 2024
c79c2e7
docs: add margin-block to li
zeroedin Mar 5, 2024
6d743e6
docs: remove underline from aside nav links
zeroedin Mar 5, 2024
28bb445
docs: fix token header link style
zeroedin Mar 5, 2024
b35b022
docs: set grid gap to 32px
zeroedin Mar 5, 2024
9c272ea
docs: reduce sidenav font size
zeroedin Mar 5, 2024
0d65416
docs: lint
zeroedin Mar 5, 2024
3578a89
docs: base text color set to primary on light
zeroedin Mar 6, 2024
7898d82
docs: fix visited link color
zeroedin Mar 6, 2024
a3f881c
docs: use es6 syntax for backtop script
zeroedin Mar 6, 2024
49e2e92
docs: fix extra margin in sidenav
zeroedin Mar 6, 2024
24c44f5
docs: add passive to scroll listener for backtotop
zeroedin Mar 6, 2024
301498a
Merge branch 'main' into docs/uxdot-masthead-component
zeroedin Apr 22, 2024
19f67b9
docs: merge updates missed in branch merge
zeroedin Apr 22, 2024
4acf9bd
docs: update merged code to use uxdot components
zeroedin Apr 23, 2024
e5b9947
docs: uxdot-repo-status-list component
zeroedin Apr 23, 2024
3f8d286
chore: lint
zeroedin Apr 23, 2024
ab974d7
docs: add support for declarative shadowdom
zeroedin Apr 24, 2024
5af59ac
docs: remove tile override fixed at component level
zeroedin Apr 25, 2024
a6c5882
docs: remove masthead lightdom styles
zeroedin Apr 25, 2024
0b2aafc
docs: fix missing semicolon
zeroedin Apr 25, 2024
f5a1bc9
docs: remove header lightdom styles
zeroedin Apr 25, 2024
278b82e
docs: remove skipnav lightdom styles
zeroedin Apr 25, 2024
279629e
docs: fix typo
zeroedin Apr 25, 2024
9ab0f7f
docs: thin down sidenav lightdom to only deeply nested slotted elemen…
zeroedin Apr 25, 2024
0682457
docs: ensure link color
zeroedin Apr 25, 2024
8a3eb96
docs: fix sidenav missing style
zeroedin Apr 25, 2024
b64db98
docs: remove extra margin on slotted ul in sidenav
zeroedin Apr 25, 2024
519b053
docs: removed unused helper from uxdot-example
zeroedin Apr 25, 2024
511ee14
docs: add hero, feedback, copy-permalink to dsd list
zeroedin Apr 25, 2024
484629f
docs: lint
zeroedin Apr 25, 2024
fd7c1b0
docs: remove permalink lightdom styles
zeroedin Apr 25, 2024
360bbcc
docs: add permalink lightdom styles back to support deep nested slott…
zeroedin Apr 25, 2024
d6a41fe
docs: add meta description, seo suggestion from lighthouse
zeroedin Apr 25, 2024
4806e2c
docs: fix about generic link text, lighthouse suggestion
zeroedin Apr 25, 2024
6d47922
docs: fix about generic link text, lighthouse suggestion x2
zeroedin Apr 25, 2024
5e4cf20
docs: add more uxdot components for DSD, reduce CLS with uxdot-header
zeroedin Apr 25, 2024
9505200
docs: add isServer check for uxdot-search, hard code has-subnav for e…
zeroedin Apr 25, 2024
0439d8c
docs: lint
zeroedin Apr 26, 2024
0b5f8bf
docs: adjust flow given typography page specs
zeroedin May 1, 2024
8b5d261
docs: adjust more spacing flow based on spacing spec
zeroedin May 1, 2024
b16c72d
docs: switch foundations overview to use tiles instead of cards
zeroedin May 1, 2024
ee95ed4
Merge branch 'main' into docs/uxdot-masthead-component
zeroedin May 1, 2024
dd2999f
docs: convert toc to a uxdot component
zeroedin May 3, 2024
74e063e
docs: remove marker for webkit
zeroedin May 3, 2024
7484400
docs: tweak spacing per spec
zeroedin May 3, 2024
971bfb4
docs : only show toc when it has content
zeroedin May 3, 2024
127cbbe
docs: correct max-width for h2 and p in get-started section of homepage
zeroedin May 8, 2024
e19a6b2
docs: only load the js for components that need hydrated
zeroedin May 8, 2024
3cedaff
Merge branch 'main' into docs/uxdot-masthead-component
zeroedin May 17, 2024
44dacb7
docs: remove fallback max-width
zeroedin May 17, 2024
240f858
docs: missing list indention causing early div closure for container
zeroedin May 17, 2024
38829a4
docs: consolidate grid classes
zeroedin May 17, 2024
d9ded83
docs: remove duplicate figcaption style
zeroedin May 17, 2024
fdb5ba1
docs: backpage first child margin style
zeroedin May 17, 2024
9be2734
docs: fix header centering on about page
zeroedin May 17, 2024
4b5e929
docs: remove custom flow styles from about page wip
zeroedin May 17, 2024
3a13ba1
docs: reclassify styles
zeroedin May 17, 2024
4a64a25
docs: whoops forgot to save
zeroedin May 17, 2024
b906871
docs: ssr toc
zeroedin May 20, 2024
ab64375
docs: opt just to duplicate html
zeroedin May 20, 2024
6daac1b
docs: add `aria-labelledby` to `<section>` tags
adamjohnson May 21, 2024
ac799a3
docs: add rti to sidenav
zeroedin Jun 4, 2024
60f1c1a
Merge branch 'main' into docs/uxdot-masthead-component
zeroedin Jun 4, 2024
1f36283
chore: update comment
zeroedin Jun 4, 2024
26fc201
docs: reduce jank in hero load
zeroedin Jun 4, 2024
5c18f40
docs: undo hiding of the dom on dsd hydration if noscript
zeroedin Jun 4, 2024
f76765e
docs: masthead hide link text visually on narrow screens
zeroedin Jun 4, 2024
5e953db
docs: handle spacing when toc is not present
zeroedin Jun 4, 2024
49bcf51
docs: fix missing columns
zeroedin Jun 4, 2024
c6bffca
docs: ensure spacing between header sections
zeroedin Jun 4, 2024
9c075bc
docs: improve back-to-top positioning
zeroedin Jun 4, 2024
92f7b3c
docs: fix incorrect breakpoint value
zeroedin Jun 4, 2024
d1b1f68
docs: fix all other incorrect breakpoint values
zeroedin Jun 4, 2024
b171a1b
docs: fix more incorrect breakpoint values
zeroedin Jun 4, 2024
43a41bc
docs: fix aside toc for elements pages
zeroedin Jun 4, 2024
6e9a725
docs: fix sidenav tab keyboard navigation
zeroedin Jun 5, 2024
b5fac8b
docs: fix sidenave keyboard navigation tabs and rti
zeroedin Jun 5, 2024
f4f629f
docs: lint sidenav
zeroedin Jun 5, 2024
6dedd99
docs: sidenav revert change with typo
zeroedin Jun 6, 2024
12ddc70
docs: fix code status urls
zeroedin Jun 7, 2024
008fdd6
docs: remove extra space from repo status svgs to eliminate markdown…
zeroedin Jun 7, 2024
a52648c
docs: add important to margin-block of repo-status-list
zeroedin Jun 7, 2024
6af9f43
docs: sidenav dynamically add to RTi when details element is opened
zeroedin Jun 7, 2024
89bdbea
docs: remove commented out code
zeroedin Jun 7, 2024
1fdd4c2
docs: if target is a link dont preventDefault
zeroedin Jun 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 1 addition & 2 deletions .pfe.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"description": "Red Hat Design System",
"componentSubpath": "elements",
"stylesheets": [
"/docs/assets/base.css",
"/docs/assets/demos.css"
"/docs/styles/pages/dev-server.css"
]
}
}
12 changes: 6 additions & 6 deletions CONTRIBUTING_DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Most pages should have front matter that looks like this:

```jinja
---
layout: layout-basic.njk
layout: layouts/pages/basic.njk
title: Grid
order: -10
tags:
Expand All @@ -73,7 +73,7 @@ tags:
### Getting pages into the navigation

The navigation is an included template:
`pages/component/header.njk`
`pages/partials/component/sidenav.njk`
zeroedin marked this conversation as resolved.
Show resolved Hide resolved

It is a mixture of hardcoding and dynamic listing so that it's _hopefully_ easy to understand.

Expand Down Expand Up @@ -129,14 +129,14 @@ Here's a two simple examples:

```jinja
---
layout: layout-basic.njk
layout: blayouts/pages/basic.njk
zeroedin marked this conversation as resolved.
Show resolved Hide resolved
title: Example page
---
```

```jinja
---
layout: layout-home.njk
layout: layouts/pages/home.njk
title: Home
---
```
Expand All @@ -146,7 +146,7 @@ This tells 11ty what the page template should be (relative to the `pages` folder
Here's an example including tags, which is a multi-value piece of data.
```jinja
---
layout: layout-basic.njk
layout: layouts/pages/basic.njk
title: Accordion Element
tags:
- javascript
Expand All @@ -164,7 +164,7 @@ the components to be used on the page:

```jinja
---
layout: layout-basic.njk
layout: layouts/pages/basic.njk
title: Card
tags:
- component
Expand Down
49 changes: 21 additions & 28 deletions docs/404.njk
Original file line number Diff line number Diff line change
@@ -1,35 +1,28 @@
---
layout: layout-basic.njk
layout: layouts/pages/basic.njk
title: Oops!
permalink: 404.html
---
<!doctype html>

{% import 'component/components.njk' as components %}

<div class="centered feature-box">
<h1 class="section-headline">404 error</h1>
<h2 class="pfe-headline-alpha">This is embarrassing, we can’t find that page</h2>
<h3 class="pfe-headline-gamma" style="margin-top:48px;">Try one of these popular links instead</h3>
<ul class="inline-list">
<li><a href="/about">About this website</a></li>
<li><a href="/foundations">Foundations</a></li>
<li><a href="/elements">Elements</a></li>
<li><a href="/patterns">Patterns</a></li>
<li><a href="/get-started">Get started</a></li>
</ul>
</div>
<div class="centered feature-box">
<h1 class="section-headline">404 error</h1>
<h2 class="pfe-headline-alpha">This is embarrassing, we can’t find that page</h2>
<h3 class="pfe-headline-gamma" style="margin-top:48px;">Try one of these popular links instead</h3>
<ul class="inline-list">
<li><a href="/about">About this website</a></li>
<li><a href="/foundations">Foundations</a></li>
<li><a href="/elements">Elements</a></li>
<li><a href="/patterns">Patterns</a></li>
<li><a href="/get-started">Get started</a></li>
zeroedin marked this conversation as resolved.
Show resolved Hide resolved
</ul>
</div>

<div class="multi-column--min-300-wide section section--palette-default container feedback">
<section>
<h2>Contact us</h2>
<p>If you feel that you reached this page in error, <a href="../get-started">contact us</a> and we'll point you in the right direction.</p>

<div>
{% call components.section("Feedback or requests") -%}
<p>Do you have any feedback? Or do you need to request something? Create an issue in our <a href="https://github.com/patternfly/patternfly-elements">GitHub repo</a> if so.</p>
{%- endcall %}
</div>
<div>
{% call components.section("Contact us") -%}
<p>If you feel that you reached this page in error, <a href="../get-started">contact us</a> and we'll point you in the right direction.</p>
{%- endcall %}
</div>
</div>
<uxdot-feedback>
<h3 slot="header">Feedback or requests</h3>
<p slot="content">Do you have any feedback? Or do you need to request something? Create an issue in our <a href="https://github.com/patternfly/patternfly-elements">GitHub repo</a> if so.</p>
</uxdot-feedback>
</section>
3 changes: 2 additions & 1 deletion docs/_data/comingSoonItems.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
- rh-breadcrumb
- rh-footnote
- rh-footnote
- rh-jump-links
37 changes: 26 additions & 11 deletions docs/_data/playgrounds.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,12 @@ module.exports = async function(data) {

const playgroundConfigsMap = new Map();

const baseCssPath = url.pathToFileURL(path.join(process.cwd(), 'docs/assets/base.css'));
const baseCssSource = await fs.readFile(baseCssPath.pathname, 'utf8');
const resetCSS = url.pathToFileURL(path.join(process.cwd(), 'docs/styles/reset.css'));
const resetCSSSource = await fs.readFile(resetCSS.pathname, 'utf8');
const fontsCSS = url.pathToFileURL(path.join(process.cwd(), 'docs/styles/fonts.css'));
const fontsCSSSource = await fs.readFile(fontsCSS.pathname, 'utf8');
const typographyCSS = url.pathToFileURL(path.join(process.cwd(), 'docs/styles/typography.css'));
const typographyCSSSource = await fs.readFile(typographyCSS.pathname, 'utf8');

for (const [primaryElementName, demos] of Object.entries(demoManifests)) {
const fileMap = new Map();
Expand All @@ -120,25 +124,24 @@ module.exports = async function(data) {
}

const demoSource = await fs.readFile(demo.filePath, 'utf8');

const fragment = parseFragment(demoSource);

const baseCssPathPrefix = demo.filePath.match(DEMO_FILEPATH_IS_MAIN_DEMO_RE) ? '' : '../';
const cssPrefix = demo.filePath.match(DEMO_FILEPATH_IS_MAIN_DEMO_RE) ? '' : '../';

append(
fragment,
Tools.createCommentNode('playground-fold'),
Tools.createElement('link', {
rel: 'stylesheet',
href: 'https://static.redhat.com/libs/redhat/redhat-font/4/webfonts/red-hat-font.min.css'
href: `${cssPrefix}reset.css`,
}),
Tools.createElement('link', {
rel: 'stylesheet',
href: 'https://static.redhat.com/libs/redhat/redhat-theme/6/advanced-theme.css'
href: `${cssPrefix}fonts.css`,
}),
Tools.createElement('link', {
rel: 'stylesheet',
href: `${baseCssPathPrefix}rhds-demo-base.css`,
href: `${cssPrefix}typography.css`,
}),
Tools.createTextNode('\n\n'),
Tools.createCommentNode('playground-fold-end'),
Expand Down Expand Up @@ -176,9 +179,21 @@ module.exports = async function(data) {
}
};

fileMap.set('demo/rhds-demo-base.css', {
fileMap.set('demo/reset.css', {
contentType: 'text/css',
content: resetCSSSource,
hidden: true,
});

fileMap.set('demo/fonts.css', {
contentType: 'text/css',
content: fontsCSSSource,
hidden: true,
});

fileMap.set('demo/typography.css', {
contentType: 'text/css',
content: baseCssSource,
content: typographyCSSSource,
hidden: true,
});

Expand All @@ -197,9 +212,9 @@ module.exports = async function(data) {
const attrs = getAttrMap(el);
await addSubresourceURL(attrs.href);
} catch (e) {
// we can swallow the error for the demo base file because we wrote it ourselves above.
// we can swallow the error for the demo typography and font file because we wrote it ourselves above.
// maybe not the most elegant solution, but it works
if (e.subresourceFileURL?.href?.endsWith('rhds-demo-base.css')) {
if (e.subresourceFileURL?.href?.endsWith('typography.css') || e.subresourceFileURL?.href?.endsWith('fonts.css')) {
continue;
} else {
// In order to surface the error to the user, let's enable console logging
Expand Down
33 changes: 0 additions & 33 deletions docs/_includes/component/about.njk

This file was deleted.

35 changes: 0 additions & 35 deletions docs/_includes/component/components.njk

This file was deleted.

10 changes: 0 additions & 10 deletions docs/_includes/component/documentation.njk

This file was deleted.

33 changes: 0 additions & 33 deletions docs/_includes/component/foundations.njk

This file was deleted.

33 changes: 0 additions & 33 deletions docs/_includes/component/get-started.njk

This file was deleted.

Loading
Loading