Skip to content

Commit ee25502

Browse files
authored
chore: add archived notice to docs site (#4351)
1 parent 2f2a579 commit ee25502

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.storybook/assets/index.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,30 @@ body:lang(he) {
3636
font-family: var(--spectrum-font-family-he);
3737
}
3838

39+
#archived-notice {
40+
background-color: rgb(215, 50, 32);
41+
color: rgb(255, 255, 255);
42+
font-family:
43+
adobe-clean,
44+
"Source Sans Pro",
45+
-apple-system,
46+
BlinkMacSystemFont,
47+
"Segoe UI",
48+
Roboto,
49+
Ubuntu,
50+
"Trebuchet MS",
51+
"Lucida Grande",
52+
sans-serif;
53+
font-size: 16px;
54+
padding: 6px;
55+
text-align: center;
56+
}
57+
58+
#archived-notice a {
59+
color: rgb(255, 255, 255);
60+
text-decoration: underline;
61+
}
62+
3963
/* Hide the SVG elements that only include references */
4064
svg:has(symbol):not(:has(use)) {
4165
display: none;

.storybook/manager.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ import pkg from "./package.json";
99
const root = document.body ?? document.documentElement;
1010
if (root) root.classList.add("spectrum", "spectrum--light", "spectrum--medium");
1111

12+
const archivedNotice = document.createElement("div");
13+
archivedNotice.id = "archived-notice";
14+
archivedNotice.innerHTML = `
15+
<p>This documentation is archived. It is no longer being updated, but is available for reference. <br>View the <a href='https://github.com/adobe/spectrum-web-components/blob/main/CONTRIBUTOR-DOCS/README.md'>Spectrum Web Components contribution guidelines</a> for more information on how to contribute to the project.</p>
16+
`;
17+
18+
root.insertBefore(archivedNotice, root.firstChild);
19+
1220
addons.setConfig({
1321
theme: create({
1422
base: "light",

0 commit comments

Comments
 (0)