It takes commitment from both writers and devs, as well as collaboration to create and maintain good documentation. Part of that commitment is to contribute to the documentation.
To write a new page in Antora, you need to:
-
Write the plain text in Asciidoc in the
pages
directory of a module-
You can write in your editor of choice. Many editors have plugins that allow you to view the source and preview the rendered result side-by-side. The VSCode plugin is sufficient in most cases, though it does not provide spellcheck or render images correctly.
-
IntelliJ’s Asciidoc plugin provides a beautiful preview and works with Antora’s file structure so images are also rendered correctly.
-
-
Add your page to the navigation file of that module.
If you are creating a new module, you will need to link the pages of the module in a navigation file, and then link that navigation file to the antora.yml
file of the component.
If you are not familiar with Asciidoc, read Asciidoc documentation to learn how to author in Asciidoc.
-
page
-
Every entry in the left site navigation is a page. A page must exist in the
pages
directory of a module.
-
-
module
-
The entries in the left site navigation that display without needing to be clicked to expand to show, along with all the pages inside it.
-
-
component
-
All the modules and pages on a left site navigation.
-
TigerGraph Cloud (1) |- Solutions (2) |-- Create a solution (3)
-
TigerGraph Cloud, along with all the modules and pages inside it, is a component
-
Solutions, along with all the pages inside it, is a module
-
Create a solution is a page.
If you need to add images, files, or other assets to your document, add it to the family directory of a module (images
, assets
, etc.) If the directory doesn’t exist, create one.
Once you have added the image to the images
family directory of a module, you can insert it by using the image macro:
image::name-of-file.png[Captions] (1) image:name-of-file.png[Captions] (2)
-
Image macros with two colons are block images.
-
Image macros with one colon are inline images.
Read more about family directories here.
Click the Edit on GitHub
button in the upper right corner of a page to make edits. When you are done, submit a pull request with a comment on why the edit was necessary.