Skip to content

Commit d995c6c

Browse files
authored
Merge pull request #1081 from st3phhays/add-highlight-information
2 parents c279871 + e472023 commit d995c6c

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,39 @@ The [Chocolatey Design System](https://design.chocolatey.org) and [choco-astro](
116116

117117
[Mermaid](https://mermaid.js.org/) via an [Astro integration](https://github.com/chocolatey/choco-astro/blob/main/astro.config.mjs.json) allows an easy way to display information with diagrams written in markdown. Find more information on usage at the [choco-astro repository](https://github.com/chocolatey/choco-astro?tab=readme-ov-file#markdown-diagrams-with-mermaid).
118118

119+
## Adding A New Highlight
120+
121+
A Highlight is what is shown on the home page of docs.chocolatey.org and the left sidebar. These need updated every so often, especially when there has been a new release. Follow the steps below to add a new Highlight.
122+
123+
### Front Page Highlight
124+
125+
1. Navigate to `src/content/docs/en-us/highlights` then into the current year folder.
126+
1. Copy a file that does not have a `-sidebar` in the file name.
127+
1. Change the name of the new file to include the month number as the first characters in the name, such as `10-testing-home.md`.
128+
1. Fill in details needed and follow the current naming convention for xrefs in the file.
129+
1. Change the `ctaText` value to something unique.
130+
131+
### Left Sidebar Highlight
132+
133+
1. Navigate to `src/content/docs/en-us/highlights` then into the current year folder.
134+
1. Copy a file that has a `-sidebar` in the file name.
135+
1. Change the name of the new file to include the month number as the first characters in the name, such as `10-testing-home-sidebar.md`. Ensure the `-sidebar` in the name is retained.
136+
1. In the nested `highlight` front matter, ensure the following are set:
137+
```markdown
138+
showOnHome: false
139+
showOnHighlights: false
140+
showInSidebar: true
141+
```
142+
1. Fill in the rest of the details needed and follow the current naming convention for xrefs in the file.
143+
1. Change the `ctaText` value to something unique.
144+
1. If there is a Sidebar Highlight already active, find the file that it is referencing. The title and post date can be a clue as to what file this is inside of the `src/content/docs/en-us/highlights` folder.
145+
1. In the nested `highlight` front matter on the OLD file, ensure the following are set:
146+
```markdown
147+
showOnHome: false
148+
showOnHighlights: false
149+
showInSidebar: false
150+
```
151+
119152
## Running Playwright Tests
120153

121154
To run all the Playwright tests, first run the following command:

0 commit comments

Comments
 (0)