-
Notifications
You must be signed in to change notification settings - Fork 3
Added How to edit Wiki pages via web browser and More Markdown examples #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
raffe1234
wants to merge
1
commit into
rhino-linux:main
Choose a base branch
from
raffe1234:patch-1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -68,6 +68,19 @@ Best practices for creating and maintaining content on the Rhino Linux wiki. | |||||||||||||||||||||||||||
- **Tip**: Use a welcoming tone, especially for beginners. For example: | ||||||||||||||||||||||||||||
"Don’t worry if this seems complex at first—follow along step by step, and you’ll get there!" | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
## How to edit Wiki pages via web browser | ||||||||||||||||||||||||||||
1. Go to https://github.com/rhino-linux/wiki, login and find the page, as an example this page is here https://github.com/rhino-linux/wiki/blob/main/pages/dev/wiki.mdx | ||||||||||||||||||||||||||||
2. Above the file content, click on the pen icon. When asked, click "Fork this repository" | ||||||||||||||||||||||||||||
3. In the text box, make any changes you need to the file. | ||||||||||||||||||||||||||||
4. Above the new content, click Preview to see your changes. *NOTE!* Some formatting will be shown wrong in the preview, If you want to test how it will look, you can paste the code into [stackedit.io](https://stackedit.io/app#) and see how it looks there in reality. | ||||||||||||||||||||||||||||
5. Click Commit changes... | ||||||||||||||||||||||||||||
6. In the "Commit message" field, type a short message that describes the change you made to the file | ||||||||||||||||||||||||||||
7. Click Propose changes | ||||||||||||||||||||||||||||
8. Type a title and description for your pull request. | ||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||
9. Click Create pull request. | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
Read more in [GitHub Docs](https://docs.github.com/en/repositories/working-with-files/managing-files/editing-files#editing-files-in-another-users-repository) | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
## Notice Boxes | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
Notice boxes are an easy way to highlight important information in GitHub Flavored Markdown, using syntax like: | ||||||||||||||||||||||||||||
|
@@ -135,3 +148,163 @@ Now, you can use the following templates: | |||||||||||||||||||||||||||
**Danger:** Negative potential consequences of an action. | ||||||||||||||||||||||||||||
</Callout> | ||||||||||||||||||||||||||||
``` | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
## More Markdown examples | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
### Headers | ||||||||||||||||||||||||||||
**EXAMPLE** | ||||||||||||||||||||||||||||
\# This is a H1 header | ||||||||||||||||||||||||||||
\## This is a H2 header | ||||||||||||||||||||||||||||
\### This is a H3 header | ||||||||||||||||||||||||||||
\#### This is a H4 header | ||||||||||||||||||||||||||||
\##### This is a H5 header | ||||||||||||||||||||||||||||
**OUTPUT** | ||||||||||||||||||||||||||||
# This is a H1 header | ||||||||||||||||||||||||||||
## This is a H2 header | ||||||||||||||||||||||||||||
### This is a H3 header | ||||||||||||||||||||||||||||
#### This is a H4 header | ||||||||||||||||||||||||||||
##### This is a H5 header | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
---- | ||||||||||||||||||||||||||||
## Styling text | ||||||||||||||||||||||||||||
| STYLE | EXAMPLE | OUTPUT | | ||||||||||||||||||||||||||||
|-----------|:-----------:|-----------:| | ||||||||||||||||||||||||||||
| Bold \** \** | \*\*Bold\*\* | **Bold** | | ||||||||||||||||||||||||||||
| Italic \* \* | \*Italic\* | *Italic* | | ||||||||||||||||||||||||||||
| Strikethrough \~~ \~~ | \~\~Strikethrough\~\~ | ~~Strikethrough~~ | | ||||||||||||||||||||||||||||
| Bold & italic ** ** & _ _ | \*\*Bold & \_italic\_\*\* | **Bold & _italic_** | | ||||||||||||||||||||||||||||
| All bold & italic \*** \*** | \*\*\*All bold & italic\*\*\* | ***All bold & italic*** | | ||||||||||||||||||||||||||||
| Subscript \<sub\> \<\/sub\> | This \<sub\>is\<\/sub\> Subscript | This <sub>is</sub> Subscript | | ||||||||||||||||||||||||||||
| Superscript \<sup\> \<\/sup\> | This \<sup\>is\<\/sup\> Superscript | This <sup>is</sup> Superscript | | ||||||||||||||||||||||||||||
| Underline \<ins\> \<\/ins\> | \<ins\>Underline\<\/ins\> | <ins>Underline</ins> | | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
---- | ||||||||||||||||||||||||||||
### Blockquotes | ||||||||||||||||||||||||||||
**EXAMPLE** | ||||||||||||||||||||||||||||
\> Single line quote | ||||||||||||||||||||||||||||
\>> Nested quote | ||||||||||||||||||||||||||||
\>> multiple line | ||||||||||||||||||||||||||||
\>> quote | ||||||||||||||||||||||||||||
**OUTPUT** | ||||||||||||||||||||||||||||
> Single line quote | ||||||||||||||||||||||||||||
>> Nested quote | ||||||||||||||||||||||||||||
>> multiple line | ||||||||||||||||||||||||||||
>> quote | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
---- | ||||||||||||||||||||||||||||
### Quote code in text | ||||||||||||||||||||||||||||
Use single backticks ` ` | ||||||||||||||||||||||||||||
**EXAMPLE** | ||||||||||||||||||||||||||||
Do `apt update` first | ||||||||||||||||||||||||||||
**OUTPUT** | ||||||||||||||||||||||||||||
Do `apt update` first | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
---- | ||||||||||||||||||||||||||||
### Quote code in block | ||||||||||||||||||||||||||||
Use triple backticks ``` ``` | ||||||||||||||||||||||||||||
**EXAMPLE** | ||||||||||||||||||||||||||||
``` | ||||||||||||||||||||||||||||
git status | ||||||||||||||||||||||||||||
git add | ||||||||||||||||||||||||||||
git commit | ||||||||||||||||||||||||||||
``` | ||||||||||||||||||||||||||||
**OUTPUT** | ||||||||||||||||||||||||||||
``` | ||||||||||||||||||||||||||||
git status | ||||||||||||||||||||||||||||
git add | ||||||||||||||||||||||||||||
git commit | ||||||||||||||||||||||||||||
``` | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
---- | ||||||||||||||||||||||||||||
### Links | ||||||||||||||||||||||||||||
Text in brackets \[ \] and URL in parentheses ( ) | ||||||||||||||||||||||||||||
**EXAMPLE** | ||||||||||||||||||||||||||||
Find info in the \[Wiki\](https://wiki.rhinolinux.org/dev/wiki\) | ||||||||||||||||||||||||||||
**OUTPUT** | ||||||||||||||||||||||||||||
Find info in the [Wiki](https://wiki.rhinolinux.org/dev/wiki) | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
---- | ||||||||||||||||||||||||||||
### Images | ||||||||||||||||||||||||||||
Text in brackets !\[alt text\] and URL in parentheses ( =size). `=size` is optional | ||||||||||||||||||||||||||||
**EXAMPLE** | ||||||||||||||||||||||||||||
See picture !\[Rhino favicon\](https://wiki.rhinolinux.org/favicon.svg =50x50) | ||||||||||||||||||||||||||||
**OUTPUT** | ||||||||||||||||||||||||||||
See picture  | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
---- | ||||||||||||||||||||||||||||
### Lists | ||||||||||||||||||||||||||||
Unordered list with -, *, or +. Ordered list, precede each line with a number. | ||||||||||||||||||||||||||||
**EXAMPLE** | ||||||||||||||||||||||||||||
``` | ||||||||||||||||||||||||||||
- Rhino | ||||||||||||||||||||||||||||
* Debian | ||||||||||||||||||||||||||||
+ Ubuntu | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
1. Rhino | ||||||||||||||||||||||||||||
2. Debian | ||||||||||||||||||||||||||||
3. Ubuntu | ||||||||||||||||||||||||||||
``` | ||||||||||||||||||||||||||||
**OUTPUT** | ||||||||||||||||||||||||||||
- Rhino | ||||||||||||||||||||||||||||
* Debian | ||||||||||||||||||||||||||||
+ Ubuntu | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
1. Rhino | ||||||||||||||||||||||||||||
2. Debian | ||||||||||||||||||||||||||||
3. Ubuntu | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
To make nested lists, type space characters in front of your nested list item until the list marker character (- or *) lies directly below the first character of the text in the item above it. | ||||||||||||||||||||||||||||
**EXAMPLE** | ||||||||||||||||||||||||||||
``` | ||||||||||||||||||||||||||||
1. Rhino | ||||||||||||||||||||||||||||
* Debian | ||||||||||||||||||||||||||||
* Ubuntu | ||||||||||||||||||||||||||||
``` | ||||||||||||||||||||||||||||
**OUTPUT** | ||||||||||||||||||||||||||||
1. Rhino | ||||||||||||||||||||||||||||
* Debian | ||||||||||||||||||||||||||||
* Ubuntu | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
---- | ||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||
### Horizontal rules | ||||||||||||||||||||||||||||
Add a line that's a series of dashes - - -. The line above the line containing the - - - must be blank. | ||||||||||||||||||||||||||||
**EXAMPLE** | ||||||||||||||||||||||||||||
``` | ||||||||||||||||||||||||||||
Above | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
---- | ||||||||||||||||||||||||||||
Below | ||||||||||||||||||||||||||||
``` | ||||||||||||||||||||||||||||
**OUTPUT** | ||||||||||||||||||||||||||||
Above | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
---- | ||||||||||||||||||||||||||||
Below | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
---- | ||||||||||||||||||||||||||||
### Using comments | ||||||||||||||||||||||||||||
You can use comment with \<!-- --\> | ||||||||||||||||||||||||||||
**EXAMPLE** | ||||||||||||||||||||||||||||
\<!-- This is a comment --\> | ||||||||||||||||||||||||||||
**OUTPUT** | ||||||||||||||||||||||||||||
<!-- This is a comment --> | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
---- | ||||||||||||||||||||||||||||
### Ignoring Markdown formatting | ||||||||||||||||||||||||||||
To ignore Markdown formatting for a character use \ before the Markdown character. | ||||||||||||||||||||||||||||
**EXAMPLE** | ||||||||||||||||||||||||||||
\<!-- This is a comment --\> | ||||||||||||||||||||||||||||
\# This is NOT a H1 header | ||||||||||||||||||||||||||||
**OUTPUT** | ||||||||||||||||||||||||||||
\<!-- This is a comment --\> | ||||||||||||||||||||||||||||
\# This is NOT a H1 header | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
To write special characters | ||||||||||||||||||||||||||||
**EXAMPLE** | ||||||||||||||||||||||||||||
Enter `\` to get \ | ||||||||||||||||||||||||||||
Enter `_` to get _ | ||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
---- | ||||||||||||||||||||||||||||
### More info | ||||||||||||||||||||||||||||
You can find more info about Markdown formatting in [GitHub Docs](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax) | ||||||||||||||||||||||||||||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.