1
0
mirror of synced 2025-12-22 19:34:15 -05:00
Files
docs/content/github/building-a-strong-community/adding-or-editing-wiki-pages.md
Jason Etcovitch caaee7a124 Update all files to use {% data %} (#15253)
* Add back changes from prior to purge

* Manually fix some invalid Liquid

* Updoot render-content

* Improve test messages to show correct output

* Run el scripto

* Pass the remaining test
2020-09-29 16:01:04 -04:00

3.4 KiB
Raw Blame History

title, intro, redirect_from, product, versions
title intro redirect_from product versions
Adding or editing wiki pages You can add and edit wiki pages directly on {% data variables.product.product_name %} or locally using the command line.
/articles/adding-wiki-pages-via-the-online-interface/
/articles/editing-wiki-pages-via-the-online-interface/
/articles/adding-and-editing-wik-pages-locally/
/articles/adding-and-editing-wiki-pages-locally/
/articles/adding-or-editing-wiki-pages
{% data reusables.gated-features.wikis %}
free-pro-team enterprise-server
* *

Adding wiki pages

{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-wiki %} 3. In the upper-right corner of the page, click New Page. Wiki new page button 4. Optionally, to write in a format other than Markdown, use the Edit mode drop-down menu, and click a different format. Wiki markup selection 5. Use the text editor to add your page's content. Wiki WYSIWYG 6. Type a commit message describing the new file youre adding. Wiki commit message 7. To commit your changes to the wiki, click Save Page.

Editing wiki pages

{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-wiki %} 4. Using the wiki sidebar, navigate to the page you want to change. In the upper-right corner of the page, click Edit. Wiki edit page button 5. Use the text editor edit the page's content. Wiki WYSIWYG 6. Type a commit message describing your changes. Wiki commit message 7. To commit your changes to the wiki, click Save Page.

Adding or editing wiki pages locally

Wikis are part of Git repositories, so you can make changes locally and push them to your repository using a Git workflow.

Cloning wikis to your computer

Every wiki provides an easy way to clone its contents down to your computer. You can clone the repository to your computer with the provided URL:

$ git clone https://github.com/<em>YOUR_USERNAME</em>/<em>YOUR_REPOSITORY</em>.wiki.git
# Clones the wiki locally

Once you have cloned the wiki, you can add new files, edit existing ones, and commit your changes. You and your collaborators can create branches when working on wikis, but only changes pushed to the default branch will be made live and available to your readers.

About wiki filenames

The filename determines the title of your wiki page, and the file extension determines how your wiki content is rendered.

Wikis use our open-source Markup library to convert the markup, and it determines which converter to use by a file's extension. For example, if you name a file foo.md or foo.markdown, wiki will use the Markdown converter, while a file named foo.textile will use the Textile converter.

Don't use the following characters in your wiki page's titles: \ / : * ? " < > |. Users on certain operating systems won't be able to work with filenames containing these characters. Be sure to write your content using a markup language that matches the extension, or your content won't render properly.