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
Add visual badges next to page titles to indicate content status (e.g., Preview, Beta, Deprecated):
90
+
Add visual badges next to page titles to indicate content status. Currently we are using a `Preview` badge to indicate when a page is for a feature in open or closed preview.
91
+
92
+
A page is closed preview will display the `Preview` badge and **will not be** listed in the navigation.
93
+
A page in open preview will display the `Preview` badge and **will be** listed in the navigation.
90
94
91
95
#### Basic Usage
92
96
@@ -117,23 +121,12 @@ This displays a simple badge with default styling (black text, border, no backgr
Currently we are not adding styling to these badges but this may change in future.
137
130
138
131
#### Badge Attributes Reference
139
132
@@ -162,31 +155,8 @@ CAUTION: This requires special attention.
162
155
163
156
### Page Structure Template
164
157
165
-
Use this template as a starting point for new pages:
166
-
167
-
```asciidoc
168
-
= Page Title
169
-
:description: Concise description of the page content
170
-
:page-toclevels: 3
171
-
172
-
[abstract]
173
-
--
174
-
A brief introduction to what this page covers and why it's important.
175
-
--
158
+
Use the [template pages](https://github.com/circleci/circleci-docs/tree/main/docs/contributors/modules/templates/pages) as a starting point for new content.
176
159
177
-
== First Major Section
178
-
Introduction to this section.
179
-
180
-
=== Subsection
181
-
Content for the subsection.
182
-
183
-
== Second Major Section
184
-
Content for the second major section.
185
-
186
-
== Related Information
187
-
* xref:related-page.adoc[Related Page]
188
-
* xref:another-related-page.adoc[Another Related Page]
189
-
```
190
160
191
161
### Headings
192
162
@@ -197,7 +167,6 @@ Use hierarchical headings to structure your content:
197
167
== Level 1
198
168
=== Level 2
199
169
==== Level 3
200
-
===== Level 4
201
170
```
202
171
203
172
Avoid skipping levels, and don't go deeper than level 4 unless absolutely necessary.
@@ -209,6 +178,7 @@ Avoid skipping levels, and don't go deeper than level 4 unless absolutely necess
209
178
For code blocks with syntax highlighting:
210
179
211
180
```asciidoc
181
+
.Title for code block, explain what it is and what it does
212
182
[source,yaml]
213
183
----
214
184
version: 2.1
@@ -225,9 +195,11 @@ jobs:
225
195
226
196
### Tables
227
197
228
-
Create formatted tables:
198
+
Create formatted tables that can scroll horizontally as needed:
229
199
230
200
```asciidoc
201
+
[.table-scroll]
202
+
--
231
203
.Table Title
232
204
[cols="1,1,2", options="header"]
233
205
|===
@@ -241,6 +213,7 @@ Create formatted tables:
241
213
|Row 2, Cell 2
242
214
|Row 2, Cell 3
243
215
|===
216
+
--
244
217
```
245
218
246
219
### Tabs
@@ -265,6 +238,8 @@ Content for Tab B
265
238
266
239
### Collapsible Sections
267
240
241
+
**We do not currently use collapsible sections.**
242
+
268
243
For long content that might be hidden initially:
269
244
270
245
```asciidoc
@@ -285,10 +260,16 @@ Link to other pages within the documentation:
285
260
xref:page-name.adoc[Link Text]
286
261
```
287
262
263
+
To link to a page in another module in the same component:
For complex diagrams, use image files created with diagramming software.
327
+
You can add mermaid diagrams to a page, as follows:
344
328
345
-
For simple diagrams, you can use AsciiDoc's built-in diagramming through extensions like Asciidoctor Diagram.
329
+
```asciidoc
330
+
.Example of a mermaid diagram
331
+
[mermaid]
332
+
....
333
+
sequenceDiagram
334
+
participant Alice
335
+
participant Bob
336
+
Alice->>Bob: Hello Bob, how are you?
337
+
Bob-->>Alice: Great!
338
+
....
339
+
```
346
340
347
341
## Semantic Guidelines
348
342
@@ -365,11 +359,11 @@ Structure your content based on its purpose:
365
359
366
360
### Versioning Content
367
361
368
-
For version-specific content, use conditional statements:
362
+
For version-specific content, use negative conditional statements ([ifndef directive](https://docs.asciidoctor.org/asciidoc/latest/directives/ifdef-ifndef/)) :
369
363
370
364
```asciidoc
371
-
ifeval::["{serverversion}" == "4.0"]
372
-
This content is only visible for server version 4.0.
365
+
ifndef::aws
366
+
This content is only visible for non-AWS pages and sections
373
367
endif::[]
374
368
```
375
369
@@ -391,18 +385,8 @@ Before submitting content for review, check that:
391
385
392
386
All content should go through peer review:
393
387
394
-
1. Create a pull request with your changes
395
-
2. Request review from subject matter experts
396
-
3. Address any feedback or suggestions
397
-
4. Update based on technical accuracy review
398
-
5. Final editorial review for consistency and style
399
-
400
-
### Common Feedback Points
401
-
402
-
- Technical accuracy and completeness
403
-
- Structure and organization
404
-
- Language clarity
405
-
- Cross-referencing correctness
406
-
- Code sample functionality
407
-
- Image quality and relevance
408
-
- Navigation placement
388
+
1. Create a pull request with your changes. Code ownders will be pinged for review automatically (docs team and PM team).
389
+
2. Request review from subject matter experts, for most changes we will want a review from an engineer in the relevant team or the PM for the feature. The docs team can manage this process for you.
390
+
3. Address any feedback or suggestions.
391
+
4. Update based on technical accuracy review.
392
+
5. Final editorial review for consistency and style.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+19-29Lines changed: 19 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# CircleCI Docs Static Site: Contributing Guide
2
2
3
-
This guide provides comprehensive information for contributors to the CircleCI Docs Static Site project.
3
+
This guide provides comprehensive information for contributors to the CircleCI docs project.
4
4
5
5
## Table of Contents
6
6
-[Ways to Contribute](#ways-to-contribute)
@@ -14,19 +14,18 @@ This guide provides comprehensive information for contributors to the CircleCI D
14
14
15
15
## Ways to Contribute
16
16
17
-
There are several ways to contribute to the CircleCI Docs Static Site:
17
+
There are several ways to contribute to the CircleCI docs project:
18
18
19
19
1.**Documentation content**: Add or improve documentation pages
20
20
2.**Technical improvements**: Enhance the site's functionality
21
21
3.**UI improvements**: Improve the user interface and experience
22
22
4.**Bug fixes**: Fix issues with the site or content
23
-
5.**Feature requests**: Suggest new features or improvements
23
+
5.**Feature requests**: Suggest new features or improvements. You can do this by submitting a [GitHub issue](https://github.com/circleci/circleci-docs/issues) or using the feedback form on the docs site itself.
24
24
25
25
### Types of Contributions Needed
26
26
27
27
- Writing tutorials and how-to guides
28
28
- Improving API and reference documentation
29
-
- Translating content
30
29
- Fixing typos and clarifying explanations
31
30
- Developing new UI components
32
31
- Improving build performance
@@ -45,7 +44,7 @@ There are several ways to contribute to the CircleCI Docs Static Site:
- Click the "Fork" button to create your own copy. If you are a CircleCI employee you can simply clone the repo rather than creating a fork.
49
48
50
49
2.**Clone your fork**:
51
50
```bash
@@ -109,12 +108,12 @@ Example: `docs/add-kubernetes-guide` or `fix/broken-navigation`
109
108
git commit -m "Your commit message"
110
109
```
111
110
112
-
Commit message format:
111
+
Commit message format:
113
112
```
114
113
type(scope): Brief description
115
-
114
+
116
115
Longer description if needed
117
-
116
+
118
117
Fixes #123
119
118
```
120
119
@@ -194,9 +193,10 @@ function performTask(input) {
194
193
195
194
### Types of Tests
196
195
197
-
-**Content validation**: Ensuring documentation is accurate
198
-
-**Link checking**: Verifying all links work correctly
199
-
-**UI testing**: Checking for visual and interactive issues
196
+
-**Content validation**: This is a manual text. As far as reasonably possible all docs changes and additions should be manually tested. A member of the CircleCI docs team (or other team) should run through the documented task following any steps outlined in the doc closely to check they are both correct and complete, no missing steps where users could get stuck. Changes to technical content should be reviewed by a member of the engineering team that owns the feature.
197
+
-**Content style checking**: We use [Vale](https://vale.sh/) for content linting. We have vale rules set up to enforce style. You can take a look at these rules in the `/styles` folder. Vale runs in our CI/CD pipeline so you can check for error and warnings when pushing your changes to GitHub. You can also install vale locally on your machine and run vale on the file you are editing or even using an [extension in your IDE](https://marketplace.visualstudio.com/items?itemName=chrischinchilla.vale-vscode).
198
+
-**Link checking**: Verifying all links work correctly. Links are checked as part of our CI build
199
+
-**UI testing**: Checking for visual and interactive issues (we do not currently have any UI testing set up)
200
200
-**Build testing**: Ensuring the site builds correctly
201
201
202
202
### Running Tests
@@ -208,7 +208,7 @@ function performTask(input) {
208
208
Review the site locally for content issues.
209
209
210
210
-**Link checking**:
211
-
The CI pipeline includes automatic link checking.
211
+
The CI pipeline includes automatic link checking. Check the outcome of the `Validate` job for issues.
212
212
213
213
## Documentation Guidelines
214
214
@@ -251,13 +251,13 @@ All contributions go through a review process:
251
251
- Are there adequate tests?
252
252
- Does it follow project conventions?
253
253
254
-
### After Approval
254
+
During the review process further discussion might be needed. This will happen in comments in the PR. The docs team review might push changes to your branch to fix style and formatting issues but larger issues will be discussed first.
255
+
256
+
The speed at which we can process changes will depend on the scope of the change and the existing workload that the docs team has at that time. We would try to respond to contributions within two days of submission.
255
257
256
-
Once your PR is approved:
258
+
### After Approval
257
259
258
-
1. It will be merged by a maintainer
259
-
2. Your contribution will be included in the next release
260
-
3. You'll be credited as a contributor
260
+
Once your PR is approved it will be merged by a maintainer. Your contribution will be published immediately (well, around 4 minutes for the pipeline to build!)
261
261
262
262
## Release Process
263
263
@@ -266,16 +266,14 @@ Once your PR is approved:
266
266
The CircleCI Docs Static Site follows a continuous delivery model:
267
267
268
268
- Documentation changes: Released as soon as they're approved
269
-
- Technical changes: Released on a scheduled basis
269
+
- Technical changes: Released as and when ready
270
270
- Emergency fixes: Released as needed
271
271
272
272
### Release Process
273
273
274
274
1. Changes are merged to `main`
275
275
2. CI pipeline builds and tests the site
276
-
3. Automatic deployment to staging environment
277
-
4. Review and testing in staging
278
-
5. Deployment to production
276
+
3. Deployment to production
279
277
280
278
### Versioning
281
279
@@ -295,12 +293,4 @@ If you need help with your contribution:
295
293
-**Discussions**: Use GitHub Discussions for questions
296
294
-**Documentation**: Refer to the technical docs
297
295
298
-
## Recognition
299
-
300
-
Contributors are recognized in several ways:
301
-
302
-
- Attribution in commit history
303
-
- Inclusion in the contributors list
304
-
- Recognition in release notes for significant contributions
305
-
306
296
Thank you for contributing to the CircleCI Docs Static Site!
0 commit comments