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)
0 commit comments