Important: You need to log into public GitHub, not the enterprise GitHub, to contribute. If you have questions, contact us at [email protected].
This file describes the general process for maintaining source code for content published at https://support.rackspace.com/how-to/.
See Treat Documentation Like Code for a brief video overview of how to edit articles on the How-To support network.
Note: If you already have a GitHub account, you can quickly edit an existing article by clicking on the Edit This Article button on the left-hand side of the page.
To contribute to the How-To repository, you need a GitHub account. If you do not have a GitHub account, you can sign up for one https://github.com/join.
Before you create a new article or make edits to an existing one, create a fork of the How-To repository.
-
In the top-right corner of the page, click the Fork button.
-
In the pop-up box, select your personal GitHub account.
A personal copy of the How-To repository is created in your GitHub account. You can access your fork by going to the GitHub home page and selecting rackspace-how-to under Your repositories.
Because your forked copy of the repository is not live, you need to periodically update it with changes from the live repository. A status message above the latest commit activity informs you whether your forked repository is current with the master How-To repository. If the status says This branch is X commits behind rackerlabs:master
, update your repo by clicking the Pull request button to the right of the message.
Note: If you get a message that the rackerlabs:master branch is up-to-date with commits from your master branch, click the "switching the base" link.
WARNING: To avoid any merge conflicts or difficulties when making a pull request, always check that your copy of the fork is up to date with the master repository.
Use the following instructions to create a new article, make edits to an existing one, or suggest edits via an issue.
Articles are grouped into one directory per product. Each directory contains one file per article.
Follow these steps to create a new article within a product folder of the rackerlabs/rackspace-how-to repo.
-
Go to the Rackspace How-To content folder and click the product for which you want to create an article.
-
Click Create new file.
-
Enter a name for your article in the text box at the end of the rackspace-how-to/content/productName/ string. The name should be in the format your-article-name.md and should reflect the title of the article.
-
Enter header information using the format shown in the following example:
--- permalink: title-of-article/ audit_date: title: Title of article type: article created_date: 'YYYY-MM-DD' created_by: Your name last_modified_date: 'YYYY-MM-DD' last_modified_by: Your name product: Name of product product_url: product-url ---
-
Write your article in Markdown. Markdown guidelines are at https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet.
-
When you have finished writing your article, review it in the Preview tab.
-
At the bottom of the page, click Propose new file.
-
Create a pull request (PR). On the "Open a pull request" page, check the following settings:
base fork: rackerlabs/rackspace-how-to
base: master
head fork: {your-username}/rackspac...
compare: {your-branch}
If the settings are not correct, use the drop down menus to select the correct settings. The fork menus may not be present.
-
Describe the reasons for your change in the comment box, and then select Create pull request.
Note: If your article includes images, send an email to [email protected] with the image files. Note where the images belong in the article by using comments: <!--this is a comment-->
.
Your PR will be reviewed. Depending on the review feedback, you might be asked to make additional changes. The How-To editorial team will merge your pull request once your contribution is reviewed.
Article templates are available for three types of article: task-based, conceptual, and troubleshooting. Follow these steps to create a new article by using an article template.
Note: These templates are intended to be a starting point for a new article. You might not need every section included in each template, or you might have additional sections that aren't included in the template. If you have questions, contact us at [email protected].
-
Determine what type of article you want to write and click the appropriate template located in the article-templates folder.
-
At the top of the template, click the Raw button to view the raw Markdown.
-
Copy the text and paste it into your new article file.
-
Fill in the metadata and follow the guidance in the template to create your new article.
-
Submit your article as a pull request as detailed in the previous section.
Follow these steps to edit an existing article within a product folder of the rackerlabs/rackspace-how-to repo.
-
Go to the Rackspace How-To content folder and click the product for which you want to edit an article.
-
Find the article you want to edit and click to open the file.
-
At the top of the article, click the pencil (Edit this file) icon.
-
Make any edits to the article directly through the GitHub website.
Note: If you are using a desktop client or the command line, and you are forking or cloning the repository, be sure to make your changes in a new branch. Doing so ensures that you are producing a pull request (PR) rather than committing changes directly to the master.
-
When you have finished editing the article, review it in the Preview tab.
-
At the bottom of the page, click Propose file change.
-
On the "Open a pull request" page, check the following settings:
base fork: rackerlabs/rackspace-how-to
base: master
head fork: {your-username}/rackspac...
compare: {your-branch}
If the settings are not correct, use the drop down menus to select the correct settings. The fork menus may not be present.
-
Describe the changes that you made in a PR message.
Use the following guidelines to create the PR message:
- Provide a brief description of the change, starting with an imperative verb. For example, "Add a paragraph about... ."
- If you make a complex edit, explain why you are making the edit in the larger box under Commit changes. For example, if you are changing the formatting of an article because a list should be ordered instead of unordered, say, "Switch list in middle of article to ordered to show clear progression of steps".
-
Click Create pull request.
Your PR will be reviewed. Depending on the review feedback, you might be asked to make additional changes. The How-To editorial team will merge your pull request once your contribution is reviewed.
You might be asked by a member of the editorial team to update your PR. Follow the steps below to make an update to your PR.
-
Go to the Rackspace How-To content folder and select the Pull requests tab.
-
Find and click your PR.
-
Click the Files changed tab.
-
Click the pencil icon next to the file that you want to change.
-
Make your change in the editor.
-
Provide a brief description of the change.
-
Click the Commit directly to the
your-branch-name
branch option, and then click Commit changes.
The How-To team will comment on the PR if any more changes need to be made.
To request a change, create an issue by clicking Issue near the top of this page. Describe the changes that you are requesting.
Use the following general writing guidelines, which are described in detail in style-guidelines.md:
- Use sentence-style capitalization for titles and headings
- Use active voice
- Use present tense
- Write to the user by using second person and imperative mood
- Write clear and consistent step text
- Use consistent text formatting
- Clarify pronouns such as it, this, there, and that
- Clarify gerunds and participles
- Write clear and consistent code examples
- Use consistent terminology
Following are some specific guidelines for How-To content:
-
For the first-level headings in an article, use the H3 level (designated by ###). Avoid using more than three levels of heading in an article (H3, H4, and H5). If you need more than three levels, you should consider breaking your article into two or more articles.
-
When an article mainly provides step-by-step instructions for users to follow, begin the title of the article with an imperative verb. For example: Install the Cloud Backup agent on Windows.
-
If a title contains a special character, such as a colon, enclose the title with single quotation marks.
-
When code includes placeholders, show them in camelCase and enclose them in angle brackets. For example,
<hostName>
. -
To link to another article, use the following format:
[<articleName>](/how-to/<articleName>)
. For example,[Rackspace Email and Hosted Exchange settings](/how-to/rackspace-email-and-hosted-exchange-settings)
. Note the use of the leading slash. -
When creating complex lists, such as procedures with sublists, graphics, and code examples, use the spacing guidelines at https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#lists.
If you find a problem, open a GitHub issue.
If you need additional assistance, contact us at [email protected].