Guide for contributing to fizz documentation
$ npm install --global gatsby-cli-- Install Gatsby$ gatsby new fizz-console-docs https://github.com/hassantariq-carameltech/fizz-console-docs.git-- Setup Project Locally$ cd fizz-console-docs-- Navigate to project folder$ gatsby develop-- Run the Project- Navigate to
http:localhost:8000-- the project should appear
- Edit Page: Go to
src/pages/what_is_fizz- Change the title from 'What is Fizz' to 'What is Fizz Docs'. It should reflect on
localhost:8000 - Try adding an 'image' and 'code snippet' -- see
src/pages/overview.md - Try adding a hyperlink -- paste
[Overview](../overview)beneath 'What is Fizz Docs' - Try editing site wide meta information -- open
src/gatsby-config.jsand change the value ofLANGUAGESto40. Please note how this meta is referred inwhat_is_fizz.mdfile as${LANGUAGES}. Sameway you can add more meta information.
- Change the title from 'What is Fizz' to 'What is Fizz Docs'. It should reflect on
- Add New Page: Add a new file
my_new_page.mdinsrc/pagesdirectory with following content.
---
title: "My New Page"
date: "2017-08-10"
order: 4
---
#My First Heading
Sample description for new page
- Restart the server and
localhost:8000would be showingMy New Pagelink in navigation. Click on theMy New Page, you will be navigated tolocalhost:8000/my_new_page - Please note that
.mdfiles have two parts- File Meta:
title-- Title of the Page that would appear in navigationorder-- position number in navigation (4 because there were already three md files in the project).date-- Optional date that would be displayed on page (not supported currently)
- Content: Anything below second
---in.mdfiles can be written using standard markdown syntax. A good tool for writing that is Dillinger
- File Meta:
- Please visit https://www.gatsbyjs.org/tutorial/part-one/#deploying-a-gatsby-site and follow the steps to quick deploy and test gatsby build.
- The commands are following -- if you don't feel like reading ;)
$ npm install --global surge-- install surge globally$ surge-- enter a username and password to create a free account$ gatsby build-- build gatsby production build$ ls public-- verify that public folder is created$ surge public/-- That's all folks. Press enter and just visit the link shown in terminal to see the sorcery
- Navigation in the bottom
- Styling with respect to fizz theme