Skip to content

Commit b384805

Browse files
authored
RHIDP-6146: Create developer-focused TechDocs content (#1082)
* RHIDP-6146: Create developer-focused TechDocs content * RHIDP-6146: Apply review comments
1 parent 6625fb9 commit b384805

7 files changed

+141
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
:_mod-docs-content-type: ASSEMBLY
2+
:context: assembly-techdocs-add-docs
3+
[id="{context}"]
4+
= Adding documentation to TechDocs
5+
6+
After an administrator configures the TechDocs plugin, a developer can add documentation to TechDocs by importing it from a remote repository. Any authorized user or group can access the documentation that is imported into the TechDocs plugin.
7+
8+
include::modules/techdocs/proc-techdocs-add-docs-from-remote-repo.adoc[leveloffset=+1]
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
:_mod-docs-content-type: ASSEMBLY
2+
:context: assembly-using-techdocs
3+
[id="{context}"]
4+
= Using TechDocs
5+
6+
The TechDocs plugin is installed and enabled on your {product} instance by default. After an administrator configures the TechDocs plugin, an authorized developer can use the TechDocs plugin to add, view, or manage documentation.
7+
8+
include::assembly-techdocs-add-docs.adoc[leveloffset=+1]
9+
10+
include::modules/techdocs/proc-techdocs-find-docs.adoc[leveloffset=+1]
11+
12+
include::modules/techdocs/proc-techdocs-view-docs.adoc[leveloffset=+1]
13+
14+
include::modules/techdocs/proc-techdocs-edit-docs.adoc[leveloffset=+1]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * assemblies/assembly-techdocs-add-docs.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="proc-techdocs-add-docs-from-remote-repo_{context}"]
7+
= Importing documentation into TechDocs from a remote repository
8+
9+
Teams can store their documentation files in the same remote repository where they store their code files. You can import documentation into your TechDocs plugin from a remote repository that contains the documentation files that your team uses.
10+
11+
.Prerequisites
12+
13+
* Your organization has documentation files stored in a remote repository.
14+
* You have a `mkdocs.yaml` file in the root directory of your repository.
15+
* You have the `catalog.entity.create` and `catalog.location.create` permissions to import documentation into TechDocs from a remote repository.
16+
17+
.Procedure
18+
19+
. In your {product} instance, click *Catalog > Self-service > Register Existing Component*.
20+
. In the *Select URL* box, enter the URL to the `catalog-info.yaml` file that you want to import from your repository using the following format:
21+
+
22+
`https://github.com/_<project_name>_/_<repo_name>_/blob/_<branch_name>_/_<file_directory>_/catalog-info.yaml`
23+
+
24+
. Click *Analyze*
25+
. Click *Finish*
26+
27+
.Verification
28+
29+
. In the {product} navigation menu, click *Docs*.
30+
. Verify that the documentation that you imported is listed in the table on the *Documentation* page.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * assemblies/assembly-using-techdocs.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="proc-techdocs-edit-docs_{context}"]
7+
= Editing documentation in TechDocs
8+
9+
You can edit a document in your TechDocs plugin directly from the document book page. Any authorized user in your organization can edit a document regardless of whether or not they are the owner of the document.
10+
11+
.Procedure
12+
13+
. In the {product} navigation menu, click *Docs*.
14+
. In the *Documentation* table, click the name of the document that you want to edit.
15+
. In the document, click the *Edit this page* icon to open the document in your remote repository.
16+
. In your remote repository, edit the document as needed.
17+
. Use the repository provider UI and your usual team processes to commit and merge your changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * assemblies/assembly-using-techdocs.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="proc-techdocs-find-docs_{context}"]
7+
= Finding documentation in TechDocs
8+
9+
By default, the TechDocs plugin *Documentation* page shows all of the documentation that your organization has imported into your {product} instance. You can use any combination of the following methods to find the documentation that you want to view:
10+
11+
* Enter a keyword in the search bar to see all documents that contain the keyword anywhere in the document.
12+
* Filter by *Owner* to see only documents that are owned by a particular user or group in your organization.
13+
* Filter by *Tags* to see only documents that contain a particular tag.
14+
* Filter by *Owned* to see only documents that are owned by you or by a group that you belong
15+
* Filter by *Starred* to see only documents that you have added to favorites.
16+
17+
By default, the *All* field shows the total number of documents that have been imported into TechDocs. If you search or use filters, the *All* field shows the number of documents that meet the search and filter criteria that you applied.
18+
19+
.Prerequisites
20+
21+
* The TechDocs plugin in enabled and configured
22+
* Documentation is imported into TechDocs
23+
* You have the required roles and permissions to add and view documentation to TechDocs
24+
25+
.Procedure
26+
27+
. In the {product} navigation menu, click *Docs*.
28+
. On the *Documentation* page, use the search bar, filters, or both to locate the document that you want to view.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * assemblies/assembly-using-techdocs.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="proc-techdocs-view-docs_{context}"]
7+
= Viewing documentation in TechDocs
8+
9+
In TechDocs, a document might be part of a book that contains other documents that are related to the same topic.
10+
11+
Clicking the name of a document in the table on the *Documentation* page opens the document in a book page. The name of the book is displayed on book the page. The book page contains the following elements:
12+
13+
* The contents of the document.
14+
* A search bar that you can use to search for keywords within the document.
15+
* A navigation menu that you can use to navigate to other documents in the book.
16+
* A *Table of contents* that you can use to navigate to other sections of the document.
17+
* A *Next* button that you can use to navigate to the next sequential document in the book.
18+
19+
You can use the elements on the book page to search, view, and navigate the documentation in the book.
20+
21+
.Prerequisites
22+
23+
* The TechDocs plugin in enabled and configured
24+
* Documentation is imported into TechDocs
25+
* You have the required roles and permissions to add and view documentation to TechDocs
26+
* Optional: TechDocs add-ons are installed and configured
27+
28+
.Procedure
29+
30+
. In the {product} navigation menu, click *Docs*.
31+
. In the *Documentation* table, click the name of the document that you want to view.
32+
. On the book page, you can do any of the following optional actions:
33+
* Use installed add-ons that extend the functionality of the default TechDocs plugin.
34+
* Use the search bar to find keywords within the document.
35+
* Use any of the following methods to navigate the documentation in the book:
36+
** Use the *Table of contents* to navigate the any section of the document.
37+
** Use the navigation menu to navigate to any document in the book.
38+
** Click *Next* to navigate to the next sequential document in the book.
39+
40+
.Additional resources
41+
* xref:techdocs-addon[TechDocs add-ons]

titles/techdocs/master.adoc

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ include::modules/techdocs/con-techdocs-about.adoc[leveloffset=+1]
1010
// techdocs configuration
1111
include::assemblies/assembly-configuring-techdocs.adoc[leveloffset=+1]
1212

13+
// using techdocs
14+
include::assemblies/assembly-using-techdocs.adoc[leveloffset=+1]
15+
1316
// techdocs add-ons
1417
include::assemblies/assembly-techdocs-addons.adoc[leveloffset=+1]
1518

0 commit comments

Comments
 (0)