Skip to main content

Welcome

Thanks for checking out the gHost documentation website. Everyone at gHost has a responsibility to produce meaningful, concise and helpful documentation, to help both our colleagues and our customers understand what we're doing and why it's the best way to do it.

Submitting a new document​

Adding a new document to the website is deliberately simple.

  1. Create a new Markdown file and fill it with the content you want.
  2. Save it to the correct place in the Shared OneDrive folder - feel free to create new folders, if needed.
    caution

    Don't forget - if your page includes images, you'll need to add them to the 'img' directory.

Special gHost tricks​

While creating documentation is easy, there are some tips and tricks you might like to know.

At the very top of your document, you can include something called 'front matter' to describe the document. We have a special front matter syntax which will hide your document from people who are not logged in:

--- 
title: Anything can go here
sidebar_custom_props:
private: true
---

Using the 'private' setting under sidebar_custom_props, will allow us to hide documents from someone unless they are logged in. Note that if you omit this setting, or if you set it to false, anyone will be able to access the site.

What happens after I submit a document?​

When a document is submitted, it goes into a special 'branch' of our code hub, created specifically for documentation. Once there, it waits to be reviewed.

When a document is reviewed, it is sent to another one of the gHost team to validate the information is correct. If it passes review, it is merged into the 'master' branch of our code hub.

What happens after my document is approved?​

Periodically, the site is updated with all the new and updated documents from the 'master' branch of the code hub. To update the site, we:

  • Run the npm run build command, to re-compile the Docusaurus application with our new pages,
  • Use the CloudFlare command line to update the live site with the new build, and
  • Update the indexes used by the 'search bar'.