You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,6 +116,39 @@ The [Chocolatey Design System](https://design.chocolatey.org) and [choco-astro](
116
116
117
117
[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).
118
118
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
+
119
152
## Running Playwright Tests
120
153
121
154
To run all the Playwright tests, first run the following command:
0 commit comments