Skip to content
Contact Support

Create a new page

See also

This page details how to create a new article or category in the documentation.

In GitHub

  1. Open parent category (folder) Navigate to the directory where you want to make a new page.

  2. Create new file by clicking Add File, Create New File.

    alt text.

  3. Enter your new file name. Remember to use safe file names, no funky characters and use _ instead of spaces. See Article/Category Naming for more info.

  4. Add metadata header. Should at minimum contain.

    ---
    created: 
    description: "Will be used to generate page preview. Should not contain keywords not in the body of article."
    tags: [Tag1, Tag2]
    ---
    
  5. Write rest of page. Rembember headers start at H2 (##H2). For more information see FORMAT.md

  6. Click commit changes. If this is a draft page, and you plan to come back to work on it, you will want to give it a descriptive branch name. Commit.

    See CONTRIBUTING

  7. Merge pull request in order to publish change.

In Codespace

  1. Open parent category (folder) Navigate to the directory where you want to make a new page.

  2. Click the new file button.

  3. Enter your new file name. Remember to use safe file names, no funky characters and use _ instead of spaces. See Article/Category Naming for more info.

  4. Prefill with template (optional) ctrl + shift + p, fill file with snippet, 'Template New Page'. See CONTRIBUTING.

  5. Write Article. Remember, you can add elements and autocomplete using ctrl + space. See CONTRIBUTING

  6. Check problems (optional) Open the PROBLEMS tab in the bottom panel.

Article/Category Location

Public facing articles are found in the docs folder:

  • Any directory will be a category.
  • Any markdown file, i.e. a text file ending with the .md extension, inside will be rendered as an article.
  • A file named index.md file will be the landing page for that category. (clicking on will take to the rendered markdown in index.md, any other markdown in the directory will be nested articles.)

Documentation Structure

Article/Category Naming

By default, the file name will be use as title of the article/category.

Try to keep your title short enough that it does not 'wrap' (become more than one line) in the nav, this usually happens around 24-ish characters however this will vary depending on the letters being used.

File Name hygiene

Regular 'snake_case' naming conventions should be used for articles/categories, i.e. no non-alphanumeric characters (except _ and -).

When converting from filename, to title, spaces will replace _ and the first letter of the first word will be capitalised (if it wasn't already), e.g. My_Nice_and_Tidy_Filename.md becomes My Nice and Tidy Filename

In the case of an articles (including category-articles), this title can be overridden by setting one in the page front-matter using the 'title' keyword. If you need to rename a regular category (one without an index.md), this can be done in the .pages.yml file.

Article/Category Order

By default articles will be ordered alphabetically.

Order can be set manually with the use of a .page.yml file, this file determines the ordering of all of it's sibling articles and categories.

The .page.yml might looks like this:

---
nav: 
  - Introduction.md
  - Next_Steps.md
  - ... 

... will be replaced by all other pages, in the default order.

Warning

If you do set page order manually, make sure you include the ... else some pages will not be rendered.

When being used to order non-article categories you may overwrite the name in .page.yml.

Don't use this method to set the names of articles or category-articles (use the title parameter in that pages meta).

nav:
- Getting_Started
- Māui-Mahuika (Differences) : Maui_Mahuika_Differences
- ZA̡͊͠͝LGΌ H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ : Using_regex_to_parse_html
- ...

For full description of .pages.yml use, see the awesome-pages-plugin.

Article Metadata

Article metadata (or 'front-matter') is yaml format at the top of the markdown file between two ---. This content is not rendered but will inform how the article will be shown.

Here is an example of metadata header:

---
created_at: '2021-08-25T02:05:42Z'
tags:
- profiling
title: VTune
description: VTune is a tool that allows you to quickly identify where most of the execution time of a program is spent.
vote_count: 1
vote_sum: -1
zendesk_article_id: 4405523725583
zendesk_section_id: 360000278935
---

The following sections detail the most usual entries.

Mkdocs Parameters

  • title : article title

Material Theme Parameters

  • description : This will appear when Googling, or using the internal search. : string
  • icon : Page icon. : path
  • status : Will display a symbol on nav : only new or deprecated are supported
  • hide : Used to turn off features (e.g. table of content) : tags toc nav

Zendesk Imported

The following fields were imported from Zendesk Page:

  • created_at
  • vote_count
  • vote_sum
  • zendesk_article_id
  • zendesk_section_id

They are not used for anything currently, although comparing vote count, and vote sum is useful for gauging the popularity of a page migration.

Accessibility Standards