Skip to content

[release-1.6] RHIDP-6146: Create developer-focused TechDocs content #1127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions assemblies/assembly-techdocs-add-docs.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
:_mod-docs-content-type: ASSEMBLY
:context: assembly-techdocs-add-docs
[id="{context}"]
= Adding documentation to TechDocs

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.

include::modules/techdocs/proc-techdocs-add-docs-from-remote-repo.adoc[leveloffset=+1]
14 changes: 14 additions & 0 deletions assemblies/assembly-using-techdocs.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
:_mod-docs-content-type: ASSEMBLY
:context: assembly-using-techdocs
[id="{context}"]
= Using TechDocs

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.

include::assembly-techdocs-add-docs.adoc[leveloffset=+1]

include::modules/techdocs/proc-techdocs-find-docs.adoc[leveloffset=+1]

include::modules/techdocs/proc-techdocs-view-docs.adoc[leveloffset=+1]

include::modules/techdocs/proc-techdocs-edit-docs.adoc[leveloffset=+1]
30 changes: 30 additions & 0 deletions modules/techdocs/proc-techdocs-add-docs-from-remote-repo.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Module included in the following assemblies:
//
// * assemblies/assembly-techdocs-add-docs.adoc

:_mod-docs-content-type: PROCEDURE
[id="proc-techdocs-add-docs-from-remote-repo_{context}"]
= Importing documentation into TechDocs from a remote repository

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.

.Prerequisites

* Your organization has documentation files stored in a remote repository.
* You have a `mkdocs.yaml` file in the root directory of your repository.
* You have the `catalog.entity.create` and `catalog.location.create` permissions to import documentation into TechDocs from a remote repository.

.Procedure

. In your {product} instance, click *Catalog > Self-service > Register Existing Component*.
. 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:
+
`https://github.com/_<project_name>_/_<repo_name>_/blob/_<branch_name>_/_<file_directory>_/catalog-info.yaml`
+
. Click *Analyze*
. Click *Finish*

.Verification

. In the {product} navigation menu, click *Docs*.
. Verify that the documentation that you imported is listed in the table on the *Documentation* page.
17 changes: 17 additions & 0 deletions modules/techdocs/proc-techdocs-edit-docs.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Module included in the following assemblies:
//
// * assemblies/assembly-using-techdocs.adoc

:_mod-docs-content-type: PROCEDURE
[id="proc-techdocs-edit-docs_{context}"]
= Editing documentation in TechDocs

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.

.Procedure

. In the {product} navigation menu, click *Docs*.
. In the *Documentation* table, click the name of the document that you want to edit.
. In the document, click the *Edit this page* icon to open the document in your remote repository.
. In your remote repository, edit the document as needed.
. Use the repository provider UI and your usual team processes to commit and merge your changes.
28 changes: 28 additions & 0 deletions modules/techdocs/proc-techdocs-find-docs.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Module included in the following assemblies:
//
// * assemblies/assembly-using-techdocs.adoc

:_mod-docs-content-type: PROCEDURE
[id="proc-techdocs-find-docs_{context}"]
= Finding documentation in TechDocs

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:

* Enter a keyword in the search bar to see all documents that contain the keyword anywhere in the document.
* Filter by *Owner* to see only documents that are owned by a particular user or group in your organization.
* Filter by *Tags* to see only documents that contain a particular tag.
* Filter by *Owned* to see only documents that are owned by you or by a group that you belong
* Filter by *Starred* to see only documents that you have added to favorites.

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.

.Prerequisites

* The TechDocs plugin in enabled and configured
* Documentation is imported into TechDocs
* You have the required roles and permissions to add and view documentation to TechDocs

.Procedure

. In the {product} navigation menu, click *Docs*.
. On the *Documentation* page, use the search bar, filters, or both to locate the document that you want to view.
41 changes: 41 additions & 0 deletions modules/techdocs/proc-techdocs-view-docs.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Module included in the following assemblies:
//
// * assemblies/assembly-using-techdocs.adoc

:_mod-docs-content-type: PROCEDURE
[id="proc-techdocs-view-docs_{context}"]
= Viewing documentation in TechDocs

In TechDocs, a document might be part of a book that contains other documents that are related to the same topic.

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:

* The contents of the document.
* A search bar that you can use to search for keywords within the document.
* A navigation menu that you can use to navigate to other documents in the book.
* A *Table of contents* that you can use to navigate to other sections of the document.
* A *Next* button that you can use to navigate to the next sequential document in the book.

You can use the elements on the book page to search, view, and navigate the documentation in the book.

.Prerequisites

* The TechDocs plugin in enabled and configured
* Documentation is imported into TechDocs
* You have the required roles and permissions to add and view documentation to TechDocs
* Optional: TechDocs add-ons are installed and configured

.Procedure

. In the {product} navigation menu, click *Docs*.
. In the *Documentation* table, click the name of the document that you want to view.
. On the book page, you can do any of the following optional actions:
* Use installed add-ons that extend the functionality of the default TechDocs plugin.
* Use the search bar to find keywords within the document.
* Use any of the following methods to navigate the documentation in the book:
** Use the *Table of contents* to navigate the any section of the document.
** Use the navigation menu to navigate to any document in the book.
** Click *Next* to navigate to the next sequential document in the book.

.Additional resources
* xref:techdocs-addon[TechDocs add-ons]
3 changes: 3 additions & 0 deletions titles/techdocs/master.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ include::modules/techdocs/con-techdocs-about.adoc[leveloffset=+1]
// techdocs configuration
include::assemblies/assembly-configuring-techdocs.adoc[leveloffset=+1]

// using techdocs
include::assemblies/assembly-using-techdocs.adoc[leveloffset=+1]

// techdocs add-ons
include::assemblies/assembly-techdocs-addons.adoc[leveloffset=+1]

Expand Down