Contributing to MyGet Documentation
Making a change to existing documentation
The basic workflow for contributing to MyGet Docs is simple.
Visit the MyGet Docs project on Github
Fork the project. There's a big Fork button towards the upper right. That creates a copy of this project under your account. It's really fast and lets you make edits without worrying that you're affecting the real site.
Find the page you want to edit within the /site/Docs folder. This folder contains all of the documentation markdown files. For example, the page you're reading is here.
Click the link labelled "Edit this file".
Edit the markdown, type in a commit message below, and click "Commit Changes".
Send a pull request for your change. There's a button near the top of the page that says "Pull Request". That's it!
Adding a new document
Adding a new document requires that you use Git to clone the repository and send a pull request. If you don't know what that means or how to use Git, feel free to propose that the MyGet team add a new page for you to edit.
- All documentation is placed under the "docs" folder in the site.
- Folder/File names use dashes (Tilde Slash) as separators.
- Use relative URL for images and links (tilde slash will be resolved if you use it).
Code and Preformatted Text
Indent four spaces to create an escaped <pre><code> block:
printf("goodbye world!"); /* his suicide note was in C */
The text will be wrapped in tags, and displayed in a monospaced font. The first four spaces will be stripped off, but all other whitespace will be preserved.
Markdown and HTML is ignored within a code block:
<blink> You would hate this if it weren't wrapped in a code block. </blink>
We have added support for some well know classes to add styles to draw attention to items you want to call out in a document. Unfortunately markdown does not have a way to add class attributes so you will have to write the HTML by hand and embed it.
<p class="alert alert-info">Some Informational Text...</p>
<p class="alert alert-warning">Some Caution Text...</p>
<p class="alert alert-error">Some Error Text...</p>
Use backticks to create an inline <code> span:
<Tab> key, then type a
(The backtick key is in the upper left corner of most keyboards.)
Like code blocks, code spans will be displayed in a monospaced font. Markdown and HTML will not work within them. Note that, unlike code blocks, code spans require you to manually escape any HTML within!
End a line with two spaces to add a <br/> linebreak:
How do I love thee?
Let me count the ways Italics and Bold
This is italicized, and so is this. This is bold, and so is this. Use italics and bold together if you have to.
There are three ways to write links. Each is easier to read than the last:
The link definitions can appear anywhere in the document -- before or after the place where you use them. The link definition names 1 and yahoo can be any unique string, and are case-insensitive; yahoo is the same as YAHOO.
Links can have a title attribute, which will show up on hover. Title attributes can also be added; they are helpful if the link itself is not descriptive enough to tell users where they're going.
You can also use standard HTML hyperlink syntax.
We have modified our Markdown parser to support "naked" URLs (in most but not all cases -- beware of unusual characters in your URLs); they will be converted to links automatically:
I often visit https://example.com. Force URLs by enclosing them in angle brackets:
Have you seen https://example.com? All URLs must be fully qualified path names. We do not support relative paths.
Insert a horizontal rule <hr/> by putting three or more hyphens, asterisks, or underscores on a line by themselves:
Using spaces between the characters also works:
A bulleted <ul> list:
- Use a minus sign for a bullet
- Or plus sign
- Or an asterisk
A numbered <ol> list:
- Numbered lists are easy
- Markdown keeps track of the numbers for you
- So this will be item 3.
A double-spaced list:
This list gets wrapped in <p> tags
So there will be extra space between items
Advanced lists: Nesting
To put other Markdown blocks in a list; just indent four spaces for each nesting level:
Lists in a list item:
- Indented four spaces.
- indented eight spaces.
- Four spaces again.
- Indented four spaces.
Multiple paragraphs in a list items: It's best to indent the paragraphs four spaces You can get away with three, but it can get confusing when you nest other things. Stick to four.
We indented the first line an extra space to align it with these paragraphs. In real use, we might do that to the entire list so that all items line up.
This paragraph is still part of the list item, but it looks messy to humans. So it's a good idea to wrap your nested paragraphs manually, as we did with the first two.
Blockquotes in a list item:
Skip a line and indent the >'s four spaces.
Preformatted text in a list item:
Skip a line and indent eight spaces. That's four spaces for the list and four to trigger the code block.
Add a > to the beginning of any line to create a <blockquote>.
The syntax is based on the way email programs usually do quotations. You don't need to hard-wrap the paragraphs in your blockquotes, but it looks much nicer if you do. Depends how lazy you feel.
Advanced blockquotes: Nesting
To put other Markdown blocks in a <blockquote>, just add a > followed by a space:
The > on the blank lines is optional. Include it or don't; Markdown doesn't care.
But your plain text looks better to humans if you include the extra
Blockquotes within a blockquote:
A standard blockquote is indented
A nested blockquote is indented more
You can nest to any depth.
Lists in a blockquote:
- A list in a blockquote
- With a > and space in front of it
- A sublist
Preformatted text in a blockquote:
Indent five spaces total. The first one is part of the blockquote designator.
Images are exactly like links, but they have an exclamation point in front of them:
Just like links, images work with reference syntax and titles:
Note: Markdown does not currently support the shortest reference syntax for images:
If you need to do something that Markdown can't handle, use HTML. Note that we only support a very strict subset of HTML!
Strikethrough humor is
Markdown is smart enough not to mangle your span-level HTML:
Markdown works fine in here.
Block-level HTML elements have a few restrictions:
- They must be separated from surrounding text by blank lines.
- The begin and end tags of the outermost block element must not be indented.
- Markdown can't be used within HTML blocks.
You can not use Markdown in here.