From bf156df08f90f220fdfa78462558ae94ee175a67 Mon Sep 17 00:00:00 2001 From: Justin W. Flory Date: Oct 28 2016 09:06:11 +0000 Subject: Add documentation for using Markdown in Pagure --- diff --git a/doc/usage/markdown.md b/doc/usage/markdown.md index 420dc63..cdb0359 100644 --- a/doc/usage/markdown.md +++ b/doc/usage/markdown.md @@ -1,5 +1,6 @@ Using Markdown in Pagure ======================== +<<<<<<< ad0b1fdbfeed4d3673342cdad9a43d4b22372fe1 Pagure uses [Markdown syntax highlighting](https://daringfireball.net/projects/markdown/syntax) as the base for formatting comments in issues, pull requests, and in Markdown files in repositories. For basic formatting, Pagure follows common Markdown formatting, but it also has some unique syntax for more advanced formatting. This help page helps demonstrate how to use Markdown in Pagure. @@ -13,6 +14,27 @@ To create headings, you will use the `#` symbol before the text. The number of h ## header2 ### header3 ~~~~ +======= +Pagure uses [Markdown syntax highlighting](https://daringfireball.net/projects/markdown/syntax) +as the base for formatting comments in issues, pull requests, and in +Markdown files in repositories. For basic formatting, Pagure follows +common Markdown formatting, but it also has some unique syntax for more +advanced formatting. This help page helps demonstrate how to use Markdown +in Pagure. + +  + +## Headers + +To create headings, you will use the `#` symbol before the text. The +number of hashes before the text determines the header size. + +
# header1
+## header2
+### header3
+ +
+>>>>>>> Add documentation for using Markdown in Pagure # header 1 @@ -20,6 +42,12 @@ To create headings, you will use the `#` symbol before the text. The number of h ### header3 +<<<<<<< ad0b1fdbfeed4d3673342cdad9a43d4b22372fe1 +======= +
+ +  +>>>>>>> Add documentation for using Markdown in Pagure ## Styling @@ -42,11 +70,16 @@ You can mark up text with bold, italics, or strikethrough. * Example: `**This text is the _most important thing ever_**` * Output: **This text is the _most important thing ever_** +<<<<<<< ad0b1fdbfeed4d3673342cdad9a43d4b22372fe1 +======= +  +>>>>>>> Add documentation for using Markdown in Pagure ## Quoting You can show text as being quoted with the `>` character. +<<<<<<< ad0b1fdbfeed4d3673342cdad9a43d4b22372fe1 ~~~~ Before merging this pull request, remember Clark Kent mentioned this: > Double-check there's no reference to the Kryptonite library in the program since we removed that a few versions ago. @@ -88,11 +121,61 @@ sudo dnf install git python-virtualenv libgit2-devel \ ## Hyperlinks Need to embed a link to somewhere else? No problem! You can create an in-line link by wrapping the text in `[ ]` and appending the the URL in parentheses `( )` immediately after. +======= +
Before merging this pull request, remember Clark Kent mentioned this:
+> Double-check there's no reference to the Kryptonite library in the
+> program since we removed that a few versions ago.
+ +  + +Before merging this pull request, remember Clark Kent mentioned this: +> Double-check there's no reference to the Kryptonite library in the +> program since we removed that a few versions ago. + +  + +## Code + +You can highlight parts of a line as code or create entire code blocks in +your Markdown documents. Text inside of backticks will not be formatted. + +
When running the program for the first time, use `superman --initialize`.
+ +When running the program for the first time, use `superman --initialize`. + +  + +To format multiple lines of code into its own block, you will need to use +raw HTML with the ‹pre›‹/pre› tags. + +
Install the needed system libraries:
+‹pre›
+sudo dnf install git python-virtualenv libgit2-devel \
+                 libjpeg-devel gcc libffi-devel redhat-rpm-config
+‹pre›
+ +  + +Install the needed system libraries: +
+sudo dnf install git python-virtualenv libgit2-devel \
+                 libjpeg-devel gcc libffi-devel redhat-rpm-config
+
+ +  + +## Hyperlinks + +Need to embed a link to somewhere else? No problem! You can create an in- +line link by wrapping the text in `[ ]` and appending the the URL in +parentheses `( )` immediately after. +>>>>>>> Add documentation for using Markdown in Pagure `Pagure is used by the [Fedora Project](https://fedoraproject.org).` Pagure is used by the [Fedora Project](https://fedoraproject.org). +<<<<<<< ad0b1fdbfeed4d3673342cdad9a43d4b22372fe1 ## Lists @@ -102,12 +185,26 @@ You can make unordered lists spanning multiple lines with either `-` or `*`. ~~~~ * Superman +======= +  + +## Lists + +You can make unordered lists spanning multiple lines with either `-` or +`*`. + +
* Superman
+>>>>>>> Add documentation for using Markdown in Pagure
 * Batman
     * Protector of Gotham City!
 * Superwoman
 * Harley Quinn
+<<<<<<< ad0b1fdbfeed4d3673342cdad9a43d4b22372fe1
     * Something on this list is unlike the others...
 ~~~~
+=======
+    * Something on this list is unlike the others...
+>>>>>>> Add documentation for using Markdown in Pagure * Superman * Batman @@ -116,20 +213,32 @@ You can make unordered lists spanning multiple lines with either `-` or `*`. * Harley Quinn * Something on this list is unlike the others... +<<<<<<< ad0b1fdbfeed4d3673342cdad9a43d4b22372fe1 #### Ordered lists You can make ordered lists by preceding each line with a number. ~~~~ 1. Superman +======= +  + +You can make ordered lists by preceding each line with a number. + +
1. Superman
+>>>>>>> Add documentation for using Markdown in Pagure
 2. Batman
     1. Protector of Gotham City!
     2. He drives the Batmobile!
 3. Superwoman
 4. Harley Quinn
     1. Something on this list is unlike the others...
+<<<<<<< ad0b1fdbfeed4d3673342cdad9a43d4b22372fe1
     2. Somebody evil lurks on this list!
 ~~~~
+=======
+    2. Somebody evil lurks on this list!
+>>>>>>> Add documentation for using Markdown in Pagure 1. Superman 2. Batman @@ -140,6 +249,7 @@ You can make ordered lists by preceding each line with a number. 1. Something on this list is unlike the others... 2. Somebody evil lurks on this list! +<<<<<<< ad0b1fdbfeed4d3673342cdad9a43d4b22372fe1 ## Tagging users @@ -160,12 +270,59 @@ If you need to tag an issue or pull request that is outside of the current proje ## Emoji Pagure natively supports emoji characters. To use emoji, you can use two colons wrapped around the emoji keyword (`:emoji:`). Typing a colon by itself will bring up a list of suggested emoji with a small preview. If you see the one you're looking for, you can click it to automatically complete the emoji. +======= +  + +## Tagging users + +You can tag other users on Pagure to send them a notification about an +issue or pull request. To tag a user, use the `@` symbol followed by their +username. Typing the `@` symbol in a comment will bring up a list of users +that match the username. The list searches as you type. Once you see the +name of the person you are looking for, you can click their name to +automatically complete the tag. + +`@jflory7, could you please review this pull request and leave feedback?` + +[@jflory7](https://pagure.io/user/jflory7), could you please review this +pull request and leave feedback? + +  + +## Tagging issues or pull requests + +In a comment, you can automatically link a pull request or issue by its +number. To link it, use the `#` character followed by its number. Like +with tagging users, Pagure will provide suggestions for issues or pull +requests as you type the number. You can select the issue in the drop-down +to automatically tag the issue or pull request. + +  + +## Emoji + +Pagure natively supports emoji characters. To use emoji, you can use two +colons wrapped around the emoji keyword (`:emoji:`). Typing a colon by +itself will bring up a list of suggested emoji with a small preview. If +you see the one you're looking for, you can click it to automatically +complete the emoji. +>>>>>>> Add documentation for using Markdown in Pagure `I reviewed the PR and it looks good to me. :+1: Good to merge! :clapper:` I reviewed the PR and it looks good to me. :+1: Good to merge! :clapper: +<<<<<<< ad0b1fdbfeed4d3673342cdad9a43d4b22372fe1 ## Improve this documentation! Notice anything that can be improved in this documentation? Find a mistake? You can improve this page! Find it in the official [Pagure repository](https://pagure.io/pagure/blob/master/f/doc/usage/markdown.md). +======= +  + +## Improve this documentation! + +Notice anything that can be improved in this documentation? Find a +mistake? You can improve this page! Find it in the official [Pagure +repository](https://pagure.io/pagure/blob/master/f/doc/usage/markdown.md). +>>>>>>> Add documentation for using Markdown in Pagure