This repository hosts Ferdi's wiki.
Visit http://help.getferdi.com/ to get answers to your most asked questions.
Ferdi Wiki is build on sprous.
-
Clone.
Clone this repository.
-
Install dependencies.
Navigate into Ferdi Wiki's directory and install all dependencies using
yarn install
-
Test your page. Start a local developement server using
yarn develop
-
Deploy. Deploys are automatically managed through Travis CI so you don't have to worry about re-deploying after making changes.
Ferdi Wiki's pages are located inside of subdirectories of data/
- these subdirectories represent categories of your support page.
You can also create category-less page files inside of data/
itself but we advice to only create pages inside of category folders as category-less pages can only be found by searching for them.
When creating files and folders inside of data/
we advice using hypen-case (How can I reset by password
=> How-can-I-reset-my-password
) or camelCase (How can I reset by password
=> HowCanIResetMyPassword
).
Please take a look at data/
for example categories and articles
You can create a new category by creating a new folder inside of data/
with the name of your category (e.g. billing
).
You then need to create an index.md
file inside this folder with the following content:
---
type: "category"
title: "Category title"
description: "Short description that will be shown on the index page"
icon: "HelpCircle"
path: "category"
---
This optional text will be shown on the category page
This will define:
type: "category"
: Define that this file will define the category informationtitle
: Title/Name of this categorydescription
: Short description of this category. This will be shown on the category list on the index pageicon
: Icon that will be used for the category. This icon is part of Feather Icon, the icon name has to be uppercase camelCased (credit-card
=>CreditCard
), as the icons are pulled from react-featherpath
: Path/URL that the category page will be located at (e.g.billing
=>https://example.com/billing
)- In the body of this file you can optionally add a markdown-formatted text that will be shown on the category page
You can create articles inside of category folders by creating a new markdown file. You can name this file anything you want but we advice to name your article files after the article title.
Inside this file, add your article in this format:
---
type: "article"
title: "Article title"
path: "category/article-title"
category: "category"
---
*Markdown-formatted* Article body
This will define:
type: "article"
: Define that this file will define an articletitle
: Title/Name of this articlepath
: Path/URL that the article page will be located at (e.g.billing/credit-card
=>https://example.com/billing/credit-card
). This can be any path you want, the category name will not be automatically prepended, but we advice you to use thecategory-path/article-path
format.category
: Path of the category this article belongs to. This should match thepath
property of the category.- The body of this markdown file will be the body of your article
Thank you for your interest in contributing to Ferdi's wiki. Please take a look at CONTRIBUTING.md and CODE_OF_CONDUCT.md for more information on how to contribute.
Licensed under the MIT License