Skip to content

openjustice/2016-NDoCH-documentation-markdown

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation


Markdown & Documentation

c4sf.me/markdown


A handy Mac OS Markdown editor: Muo

Markdown Basics

h1 Heading 8-)

h2 Heading

h3 Heading

h4 Heading

h5 Heading
h6 Heading

Horizontal Rules




Emphasis

This is bold text

This is bold text

This is italic text

This is italic text

Strikethrough

Blockquotes

Blockquotes can also be nested...

...by using additional greater-than signs right next to each other...

...or with spaces between arrows.

Lists

Unordered

  • Create a list by starting a line with +, -, or *
  • Sub-lists are made by indenting 2 spaces:
    • Marker character change forces new list start:
      • Ac tristique libero volutpat at
      • Facilisis in pretium nisl aliquet
      • Nulla volutpat aliquam velit
  • Very easy!

Ordered

  1. Lorem ipsum dolor sit amet

  2. Consectetur adipiscing elit

  3. Integer molestie lorem at massa

  4. You can use sequential numbers...

  5. ...or keep all the numbers as 1.

Start numbering with offset:

  1. foo
  2. bar

Code

Inline code

Indented code

// Some comments
line 1 of code
line 2 of code
line 3 of code

Block code "fences"

Sample text here...

Syntax highlighting

var foo = function (bar) {
  return bar++;
};

console.log(foo(5));

Tables

Option Description
data path to data files to supply the data that will be passed into templates.
engine engine to be used for processing templates. Handlebars is the default.
ext extension to be used for dest files.

Right aligned columns

Option Description
data path to data files to supply the data that will be passed into templates.
engine engine to be used for processing templates. Handlebars is the default.
ext extension to be used for dest files.

Links

link text

link with title

Autoconverted link https://github.com/nodeca/pica

On Github, you can also link to headers in the same document using #

Blockquotes

[Blockquotes](#blockquotes)

Images

Cat Another cat

Like links, Images also have a footnote style syntax

![Alt text][id]

With a reference later in the document defining the URL location:

[id]: https://octodex.github.com/images/dojocat.jpg "The Dojocat"


Documentation


README

README files should contain a few key parts:

  • name of the project
  • short description
  • background / problem statement / solution
  • installation / deployment
  • usage
  • troubleshooting / FAQs
  • additional resources / assets
  • links to any other supporting docs.

Spicing it up!

Screenshots!

On Mac, there are some special hotkeys you can use to take screenshots:

Key Combo Type Example
Cmd-Shift-3 (⌘-⇧-3) Capture entire Screen
Cmd-Ctrl-Shift-3 (⌘-Ctrl-⇧-3) Capture entire Screen + Add to clipboard
Cmd-Shift-4 (⌘-⇧-4) Capture portion of Screen
Cmd-Ctrl-Shift-4 (⌘-Ctrl-⇧-4) Capture portion of Screen + Add to clipboard
Cmd-Shift-4-Spacebar (⌘-⇧-4-Space) Capture entire window (adds window shadow)
Cmd-Ctrl-Shift-4-Spacebar (⌘-Ctrl-⇧-4-Space) Capture entire window (adds window shadow) + Adds to clipboard

These will automatically be saved on your Desktop. To change the default location, run the following command in your terminal:


defaults write com.apple.screencapture location /Users/username/Pictures/screenshots/;killall SystemUIServer

where /Users/username/Pictures/screenshots/ is the path of the folder where you want your screenshots to be saved.

As Github documentation requires a url for embedding images, uploading the image to an image host (like imgur) is helpful. There are tools available for auto upload of those screenshots to Imgur:

Animated Gifs!

You can embed animated gifs into your documentation as well! Doing so can add character:

or valuable walkthrough documentation:

Imgur

Imgur

Recording animated screenshots is really easy, on Windows/Mac OS X, you can use LICEcap, which is a free animated gif screen recorder.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published