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
|`server-admin`| Server administration guides |`docs/server-admin-4.*/`|
@@ -47,248 +47,12 @@ component/
47
47
48
48
## AsciiDoc Essentials
49
49
50
-
The CircleCI docs site uses [AsciiDoc](https://asciidoc.org/) for content authoring. Here's how to use it effectively:
50
+
The CircleCI docs site uses [AsciiDoc](https://asciidoc.org/) for content authoring. For a guide to using AsciiDoc and writing to follow the CircleCI docs style, see the following pages:
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.
94
-
95
-
#### Basic Usage
96
-
97
-
```asciidoc
98
-
= Page Title
99
-
:page-badge: Preview
100
-
```
101
-
102
-
This displays a simple badge with default styling (black text, border, no background).
Currently we are not adding styling to these badges but this may change in future.
130
-
131
-
#### Badge Attributes Reference
132
-
133
-
- **`:page-badge:`** - The text to display in the badge (required)
134
-
- **`:page-badge-classes:`** - Tailwind CSS classes for styling (optional, defaults to `text-terminal-black border`)
135
-
- **`:page-badge-bg:`** - Hex color code for background (optional, overrides classes)
136
-
- **`:page-badge-border:`** - Hex color code for border (optional, requires `page-badge-bg`)
137
-
138
-
### Admonitions
139
-
140
-
Use admonitions to call attention to important information:
141
-
142
-
```asciidoc
143
-
NOTE: This is a note admonition.
144
-
145
-
TIP: This provides helpful advice.
146
-
147
-
IMPORTANT: This is important information.
148
-
149
-
WARNING: This is a warning.
150
-
151
-
CAUTION: This requires special attention.
152
-
```
153
-
154
-
## Document Structure
155
-
156
-
### Page Structure Template
157
-
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.
159
-
160
-
161
-
### Headings
162
-
163
-
Use hierarchical headings to structure your content:
164
-
165
-
```asciidoc
166
-
= Level 0 (Page Title)
167
-
== Level 1
168
-
=== Level 2
169
-
==== Level 3
170
-
```
171
-
172
-
Avoid skipping levels, and don't go deeper than level 4 unless absolutely necessary.
173
-
174
-
## Advanced Formatting
175
-
176
-
### Code Blocks
177
-
178
-
For code blocks with syntax highlighting:
179
-
180
-
```asciidoc
181
-
.Title for code block, explain what it is and what it does
182
-
[source,yaml]
183
-
----
184
-
version: 2.1
185
-
jobs:
186
-
build:
187
-
docker:
188
-
- image: cimg/node:18.0
189
-
steps:
190
-
- checkout
191
-
- run: npm install
192
-
- run: npm test
193
-
----
194
-
```
195
-
196
-
### Tables
197
-
198
-
Create formatted tables that can scroll horizontally as needed:
199
-
200
-
```asciidoc
201
-
[.table-scroll]
202
-
--
203
-
.Table Title
204
-
[cols="1,1,2", options="header"]
205
-
|===
206
-
|Column 1 |Column 2 |Column 3
207
-
208
-
|Row 1, Cell 1
209
-
|Row 1, Cell 2
210
-
|Row 1, Cell 3
211
-
212
-
|Row 2, Cell 1
213
-
|Row 2, Cell 2
214
-
|Row 2, Cell 3
215
-
|===
216
-
--
217
-
```
218
-
219
-
### Tabs
220
-
221
-
Use tabs for showing different options:
222
-
223
-
```asciidoc
224
-
[tabs]
225
-
====
226
-
Tab A::
227
-
+
228
-
--
229
-
Content for Tab A
230
-
--
231
-
Tab B::
232
-
+
233
-
--
234
-
Content for Tab B
235
-
--
236
-
====
237
-
```
238
-
239
-
### Collapsible Sections
240
-
241
-
**We do not currently use collapsible sections.**
242
-
243
-
For long content that might be hidden initially:
244
-
245
-
```asciidoc
246
-
.Click to expand
247
-
[%collapsible]
248
-
====
249
-
This content is initially collapsed but can be expanded by clicking.
250
-
====
251
-
```
252
-
253
-
## Navigation and Cross-References
254
-
255
-
### Internal Cross-References
256
-
257
-
Link to other pages within the documentation:
258
-
259
-
```asciidoc
260
-
xref:page-name.adoc[Link Text]
261
-
```
262
-
263
-
To link to a page in another module in the same component:
0 commit comments