Mermaid Example
A short example of using the Mermaid library to add charts.
The Altinity Knowledge Base is built on GitHub Pages, using Hugo and Docsy. This guide provides a brief description on how to make updates and add to this knowledge base.
The knowledge base is structured in a simple directory format, with the content of the Knowledge Base stored under the directory content/en
.
Each section is a directory, with the file _index.md
that provides that sections information. For example, the Upgrade
section has the following layout:
├── upgrade
│ ├── _index.md
│ └── removing-empty-parts.md
Each Markdown file provides the section’s information and the title that is displayed on the left navigation panel, with the file _index.md
providing the top level information on the section.
Each page is set in the following format that sets the page attributes:
---
title: "Using This Knowledge Base"
linkTitle: "Using This Knowledge Base"
description: >
How to add pages, make updates, and expand this knowledge base.
weight: 11
---
The content of the page in Markdown format.
The attributes are as follows:
engines/_index.md
has a weight of 1
, pushing its display to the top of the list.To create a new page or edit an existing one in the knowledge base:
For those who have been granted Knowledgebase Contributor status, select Commit New File. The changes will be automatically applied to the GitHub repository, and the additions will be displayed to the knowledge base within 1-5 minutes.
For those who have not been granted Knowledgebase Contributor status, they will have to fork the changes and then create a new pull request through the following process:
When editing is complete, select Propose New File. This will being you to the GitHub Pull Request page.
Verify the new file is accurate, then select Create Pull Request.
Name the Pull Request, then select Create pull request.
First time contributors will be required to review and sign the Contributor License Agreement(CLA). To signify they agree with the CLA, the following comment must be left as part of the pull request:
I have read the CLA Document and I hereby sign the CLA
This signature will be stored as part of the GitHub repository indicating the GitHub username, the date of the agreement, and the pull request where the signer indicated their consent with the CLA.
To create a new section in the knowledge base, add a new directory under content/en
from either the GitHub Repository or through some other GitHub related method., and add the file index.md
. The same submission process will be followed as outlined in Create or Edit A Page.
Docsy uses Markdown, providing a simple method of formatting documents. Refer to the Markdown documentation for how to edit pages and achieve the display results.
The following guide recommendations should be followed:
New images and other static files are stored in the directory static
, with the following categories:
static/assets
.static/assets
A short example of using the Mermaid library to add charts.