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
:fn-diataxis: footnote:diataxis[Procida, D. Diátaxis documentation framework. https://diataxis.fr/]
10
11
@@ -39,28 +40,32 @@ To ensure that your content shows up correctly on the link:https://quarkus.io/gu
39
40
TIP: To help you decide, see the content type descriptions in xref:{doc-guides}/doc-reference.adoc#titles-and-headings[Titles and headings] on the "About Quarkus documentation" page.
40
41
41
42
. Go to the `src/main/asciidoc/_templates` directory, and make a copy of the relevant template for the content type you have chosen. Be sure to:
42
-
** Use the filename syntax of`<category>-<titlekeyword>-<titlekeyword>-<content-type>.adoc`. For example, `security-basic-authentication-tutorial.adoc`.
43
+
** Use the filename syntax of`<category>-<titlekeyword>-<titlekeyword>.adoc`. For example, `security-basic-authentication.adoc`.
44
+
** Include the diataxis type (concept, howto, reference, tutorial) in the file name if it makes sense to do so.
45
+
For example, `telemetry-micrometer.adoc` is a reference, and `telemetry-micrometer-tutorial.adoc` is a tutorial.
43
46
** Save the file to the `docs/src/main/asciidoc` folder in the `quarkus` repository.
44
47
45
48
. Set the minimum required header information to ensure that the content renders correctly in the website portal and on the documentation home page, as outlined in the following example:
46
49
+
47
50
[source,asciidoc]
48
51
----
49
-
[id="security-basic-authentication-howto"] <1>
52
+
[id="security-basic-authentication"] <1>
50
53
= Secure a Quarkus application with basic authentication <2>
51
54
include::_attributes.adoc[] <3>
52
-
:categories: security,web <4>
53
-
<5>
55
+
:diataxis-type: howto <4>
56
+
:categories: security,web <5>
57
+
<6>
54
58
----
55
-
<1> Set the `id` value to be the same as the file name but without the extension. You can shorten this if the file name is too long.
59
+
<1> Set the `id` value to be the same as the file name but without the extension.
56
60
<2> For information about how to create a good title for each content type, see xref:{doc-guides}/doc-reference.adoc#titles-and-headings[Titles and headings] on the "Quarkus style and content guidelines" page.
57
61
<3> The `_attributes.adoc` include is required to ensure that attributes get resolved and the table of contents is generated.
58
-
<4> Set at least one category to ensure that the content is findable on the link:https://quarkus.io/guides/[Quarkus documentation home page]. For a list of Quarkus categories, see xref:{doc-guides}/doc-reference.adoc#document-attributes-and-variables[Document attributes and variables] on the "Quarkus style and content guidelines" page.
59
-
<5> Insert a blank line before the abstract.
62
+
<4> Specify the diataxis type: `concept`, `howto`, `reference`, or `tutorial`.
63
+
<5> Set at least one category to ensure that the content is findable on the link:https://quarkus.io/guides/[Quarkus documentation home page]. For a list of Quarkus categories, see xref:{doc-guides}/doc-reference.adoc#document-attributes-and-variables[Document attributes and variables] on the "Quarkus style and content guidelines" page.
64
+
<6> Insert a blank line after all document attributes and before the abstract.
60
65
+
61
66
[IMPORTANT]
62
67
====
63
-
Ensure there are no line breaks in the header section until after `:categories:` line.
68
+
Ensure there are no blank lines between the document id and title, the attribute include (`include::_attributes.adoc[]`) and the declaration of other document attributes(`:attribute:`).
64
69
====
65
70
66
71
. Add an abstract that describes the purpose of the guide.
Create a new tutorial that guides users through creating, running, and testing a Quarkus application that uses annotations from an imaginary extension.
@@ -29,7 +30,8 @@ For this example, we will use `acme-serve-http-requests-tutorial.adoc`:
29
30
30
31
- `acme-` will group this guide with other resources related to the acme extension
31
32
- `serve-http-requests` is a derivative of the document title
32
-
- `-tutorial.adoc` will indicate that this document is a tutorial
33
+
- `-tutorial` will indicate that this document is a tutorial (optional)
Guidelines are provided to help you to contribute clear and consistent content that is also sourced in the required diataxis structure and composition of Quarkus documentation.
@@ -132,13 +133,12 @@ Use all lowercase letters, separate words with hyphens, and avoid symbols and sp
132
133
Prefix:: Use a common prefix to group-related documents.
133
134
Documents related to writing and contributing to Quarkus docs share the `doc-` prefix, for example.
134
135
135
-
Suffix:: The file name should reflect the document type:
136
-
137
-
- Concept documents should end in `-concept.adoc`
138
-
- How-to guides should end in `-howto.adoc`
139
-
- References should end in `-reference.adoc`
140
-
- Tutorials should end in `-tutorial.adoc`
136
+
Suffix:: Use a suffix that reflects the document type (optional):
141
137
138
+
- `-concept.adoc` for concept documents
139
+
- `-howto.adoc` for how-to guides
140
+
- `-reference.adoc` for references
141
+
- `-tutorial.adoc` for tutorials
142
142
143
143
[[doc-structure]]
144
144
== Document structure
@@ -156,13 +156,15 @@ Minimally, each document should define and id and a title, and include common at
156
156
[id="doc-reference"] // <1>
157
157
= Quarkus style and content guidelines // <2>
158
158
\include::_attributes.adoc[] // <3>
159
-
:categories: contributing // <4>
159
+
:diataxis-type: {type} // <4>
160
+
:categories: contributing // <5>
160
161
----
161
162
162
163
<1> Use the filename as the ID for the document.
163
164
<2> Define the document title following guidance in <<titles-headings>>.
164
165
<3> Include common document attributes.
165
-
<4> Specify the relevant <<categories>> (comma separated).
166
+
<4> Specify the diataxis type: `concept`, `howto`, `reference`, or `tutorial`.
167
+
<5> Specify the relevant <<categories>> (comma separated).
0 commit comments