Skip to content

Commit 52f1180

Browse files
authored
Revert inadvertent changes to stay-up-to-date guide's index page (#701)
1 parent 7537e20 commit 52f1180

File tree

2 files changed

+45
-3
lines changed

2 files changed

+45
-3
lines changed

docs/guides/stay-up-to-date/index.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,22 @@ import CardGroup from "/src/components/CardGroup"
1616

1717
<CardGroup cols={1} gap="1rem" stacked equalHeightRows={false} commonCardProps={{padding: "1.25rem"}}>
1818

19-
<!-- replaced-by-docs-sourcer-automatically-do-not-edit -->
19+
<Card title="Update to 2023-02" href="/guides/stay-up-to-date/releases/2023-02" />
20+
<Card title="Update to 2023-01" href="/guides/stay-up-to-date/releases/2023-01" />
21+
<Card title="Update to 2022-12" href="/guides/stay-up-to-date/releases/2022-12" />
22+
<Card title="Update to 2022-11" href="/guides/stay-up-to-date/releases/2022-11" />
23+
<Card title="Update to 2022-10" href="/guides/stay-up-to-date/releases/2022-10" />
24+
<Card title="Update to 2022-09" href="/guides/stay-up-to-date/releases/2022-09" />
25+
<Card title="Update to 2022-08" href="/guides/stay-up-to-date/releases/2022-08" />
26+
<Card title="Update to 2022-07" href="/guides/stay-up-to-date/releases/2022-07" />
27+
<Card title="Update to 2022-06" href="/guides/stay-up-to-date/releases/2022-06" />
28+
<Card title="Update to 2022-05" href="/guides/stay-up-to-date/releases/2022-05" />
29+
<Card title="Update to 2022-04" href="/guides/stay-up-to-date/releases/2022-04" />
30+
<Card title="Update to 2022-03" href="/guides/stay-up-to-date/releases/2022-03" />
31+
<Card title="Update to 2022-02" href="/guides/stay-up-to-date/releases/2022-02" />
32+
<Card title="Update to 2022-01" href="/guides/stay-up-to-date/releases/2022-01" />
33+
<Card title="Update to 2021-12" href="/guides/stay-up-to-date/releases/2021-12" />
34+
<Card title="See older releases" href="/guides/stay-up-to-date/releases" />
2035

2136
</CardGroup>
2237

@@ -98,7 +113,7 @@ href="/guides/stay-up-to-date/cis/cis-1.5.0"
98113

99114
<!-- ##DOCS-SOURCER-START
100115
{
101-
"sourcePlugin": "local-copier",
102-
"hash": "83b5997fd4c9852bc578ed27cb2e494e"
116+
"sourcePlugin": "releases",
117+
"hash": "62b70a3abb786b70597a9ce74277234a"
103118
}
104119
##DOCS-SOURCER-END -->
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
const fs = require("fs")
2+
3+
const stayUpToDateIndexFile = fs.readFileSync(
4+
"docs/guides/stay-up-to-date/index.md",
5+
"utf8"
6+
)
7+
8+
const stayUpToDateIndexFileInDocsSources = fs.readFileSync(
9+
"_docs-sources/guides/stay-up-to-date/index.md",
10+
"utf8"
11+
)
12+
13+
const releasesPlaceholder =
14+
"<!-- replaced-by-docs-sourcer-automatically-do-not-edit -->"
15+
16+
describe("Guides: stay-up-to-date index file", () => {
17+
// This a temporary workaround to prevent the inadvertent changes to the
18+
// placeholder or the index page in docs from being overwritten with the
19+
// releases placeholder & committed to the main branch. The local plugin
20+
// of the docs-sourcer package automatically copies `_docs-sources/` into `docs`
21+
// When this test fails, revert the change made to `docs/guides/stay-up-to-date/index.md`
22+
// or `_docs-sources/guides/stay-up-to-date/index.md`
23+
it("should have releases placeholder in only _docs-sources", () => {
24+
expect(stayUpToDateIndexFileInDocsSources).toContain(releasesPlaceholder)
25+
expect(stayUpToDateIndexFile).not.toContain(releasesPlaceholder)
26+
})
27+
})

0 commit comments

Comments
 (0)