Homework: Markdown and READMEs
Popular repositories on Github often have a jazzy introduction to their project that shows right on their Github project's main page.
They accomplish this by including a Readme.md
file in their repo written in a language called Markdown.
Check out some examples:
Adding a Readme to a repo
- On your terminal, navigate to your
yourusername.github.io
folder that you created earlier - Create a new file
README.md
- Edit
README.md
in Atom and add a short description of the repo (e.g. "Here are some facts about me...")
Previewing Markdown in Atom
- In the Atom sidebar ctrl-click (or right-click) on
README.md
and selectMarkdown Preview
- You should see on the right hand side of Atom the rendered markdown
Pushing/Viewing on Github
- Save all your changes to the git repo and push it up to Github
- Now if you go to your project's page on Github, you should see the text that you put into the README showing below the list of files in the folder.
Jazzing it up
You probably don't yet know Markdown, so this will be one of your first assignments in digging into documentation.
Use these resources as your guides to Markdown:
Markdown Basics
Research how to create and highlight the following syntax with Markdown:
- code snippets
- Headers (h1, h2, h3)
- Bold text
- Italic text
- Add a link
- Add an image
The best way to learn is to practice. Jazz up your Readme!