Docs content moved here The developer site source is located here.
The uPort site generator assumes convention over configuration. For the markdown to be included into our documentation site, consider the following.
The front matter is the way to inform the site generator how to handle each file. Each markdown document intended to be a source for the developer site should have a minimum set of front matter attributes, written in YAML.
Place a modified version of the following directly at the top of each markdown file with no preceding spaces.
---
title: "Attesting Credentials"
index: 1
category: "guides"
type: "content"
---
The following keys are required:
The following are optional:
Used for the page title as well as navigation links. They should be kept short and be the same as H1 headings in most cases. There may be times when these should differ, for example, having a link to display by a different name than represented by the heading.
Think of this as the display order for the content; it is used to sort each category and control the ordering of navigation links. Note: if the frontmatter does not contain an index, the site-generator will assume it is sub-content that does not belong in table of contents or navigation menu.
Categories are used to aggregate markdown for header menus and contextual relevancy. The main categories are guides
, overview
, and reference
but new categories may be added at any time. When a new category is added that follows the proper conventions it will be included in the header navigation menu. The previously mentioned categories default to the first three navigation sections in the header. New categories will added onto the end and displayed last.
The type is important for publishing. If the type is not "content" it will not be published or displayed.
This is used to broadcast a message across all pages on the site. Use sparingly.
Please use this general guidance:
One suggestion I have is to use a similar nomenclature as this repo for the /docs folder.
Suggested: