Skip to content

Instantly share code, notes, and snippets.

@dtolb
Last active January 21, 2020 16:40
Show Gist options
  • Save dtolb/33796ef392cd64fb028eb7a6b993d15c to your computer and use it in GitHub Desktop.
Save dtolb/33796ef392cd64fb028eb7a6b993d15c to your computer and use it in GitHub Desktop.
how-to

How To Edit the FAQ

Pre Reqs

You will need the following:

Setting up github Desktop

Connect your Github Desktop to your Github Account

Connect to GH

Clone the FAQ Repo to your computer

  1. Navigate to the Bandwidth FAQ Github Repo
  2. Click the button
  3. Choose 'Open in Desktop'
  4. The Github Desktop application should open the repo.

Clone the repo

Choose where to save the files

Deside where the best place to save the files, in this case ~/Documents/faq

Save

Create a new branch

Every time you want to make a change, you need to create a new branch Multiple questions can be added per branch, but after the changes have been accepted, you need to create a new branch

Branch Demo

Adding questions and answers

Once you have your branch, it's time to make some changes!

Open the folder with the text editor

Using one of the text editors from the pre-reqs, open the folder from the saved location.

Add a new question

These are the general steps you'll used to add a new question

Update Summary.md

Sublime

In Summary.md You can add a new TOPIC by adding ## Topic to a new line. You also need to create a new folder for each new topic. Existing topics already have their folder

Create Folder

Write new answer

Once the folder has been created, type out your new answer using markdown

New Answer

Save the answer in the new folder

Save

Update Summary.md with link to new answer

In the summary.md file, add the question title and the 'relative path' to the answer

## Demo Question
* [How can I add questions to the faq](demo-questions/demo-answer.md)

update summary

Commit changes

Once you're done making your changes, save everything and go back to github desktop.

We need to commit everything we did in github desktop

Review the changes

In github desktop, you can see the list of changes. Make sure they look right, and tick the [ ] check box.

Changes

Add commit message

In the field below the changes, type a breif description of your changes then click the Commit button

Commit Message

Changes are now committed

After you hit the commit button, the page will refresh and changes will be commited. You can click the buttons in the top right to see your history

View changes

Note

You can have as many commits as you need. Each commit is only stored locally and is just a way to save your work from a certain point in time.

Create Pull Request

Once everything is commited click the pr button.

You have the chance to add more information here if needed

Create PR

Review on Github

Once you submit the PR it is live on Github and ready to review!

Live

Files changed

You can see the files changed under the Files Changed tab

Changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment