Contribute to the Write the Docs Website¶
Welcome! The Write the Docs website covers many areas of software documentation and has been put together by various members of the community. If you find something that seems like it could be improved, see how to contribute to making it better.
If you’re interested in contributing to the code behind the website, see the README for the repo.
How to contribute¶
Anyone can contribute regardless of professional or tool experience. There are several ways to contribute:
To suggest larger changes or new content or note bugs in existing content submit an issue.
Once you have opened a pull request or issue, one of the members of Write the Docs will take a look at it and help get it published as appropriate. You can tag writethedocs/core for a review.
What to contribute¶
Feel free to suggest any small improvements that you can find. If it just changes a few words, it’s easier to see the proposed changes as a direct suggestion.
If you want to make larger changes, first submit an issue. This opens a space to discuss the change before anyone invests too much time into it.
What to consider when contributing¶
When contributing to the website, keep these guidelines in mind:
Review the website style guide.
For file format, see the guides for reStructuredText (.rst) and Markdown.
For changes to the software documentation guide, see the guide contributing guidelines
Edit a single page in the GitHub UI¶
If you have a GitHub account, you can edit pages directly in the GitHub UI. To do so, follow these steps:
In the Write the Docs www repository, find the file for the content you want to improve, usually in the
docsdirectory.For example, https://www.writethedocs.org/documentarians/ comes from the file /docs/documentarians.rst.
Review formatting guidelines for the file’s markup. For example,
/docs/documentarians.rstuses reStructuredText (.rst). Other pages use Markdown.Click ✏️ Fork this repository and edit the file.
Make your edits.
Click Commit changes….
Give your changes a short, meaningful message to explain them.
Click Propose changes.
Enter a title for your changes (can be the same as the message in Step 6) and optionally a description for any more context about why you are proposing the change.
Click Create pull request.
You can now see your proposed changes in the list of pull requests. The pull request automatically gets a preview build so you can see your proposed changes in context.
Edit files using Git¶
This section goes through all the steps you need to edit one or more files for the website using Git. You don’t need previous experience using Git to follow these steps.
To edit files using Git, you need:
To suggest changes to the Write the Docs website, follow these steps:
In GitHub, fork the Write the Docs www project
Click Code.
Copy the URL to clone the repository.
Open a terminal.
In macOS: open the Terminal app.
In Windows: from the Start Menu, open Git Bash.
Open the directory where you want to store the files.
Run the following command (replace
GIT_URLwith the URL from Step 3):git clone GIT_URL
This copies the files into a new
wwwdirectory.Go to the
wwwdirectory (runcd www).Create a new branch (a place to store your proposed changes):
git checkout -b BRANCH_NAME
Replace
BRANCH_NAMEwith a brief description of your proposed changes with hyphens instead of spaces (for example,git checkout -b fix-important-typo).Find the files for the content you want to improve, usually in the
docsdirectory.For example, https://www.writethedocs.org/documentarians/ comes from the file
docs/documentarians.rst.Review formatting guidelines for the file’s markup. For example,
docs/documentarians.rstuses reStructuredText (.rst). Some other pages use Markdown.Make your edits and save the files.
In your terminal, check what files have been changed by running
git status.If the list looks correct, make the files as ready by running
git add -A.Save the changes by running
git commit -m "MESSAGE". ReplaceMESSAGEwith a short, meaningful message to explain the changes, for examplegit commit -m "Fixed an important typo"Push the changes to your GitHub fork by running this command:
git push --set-upstream origin BRANCH_NAME
Replace
BRANCH_NAMEwith the name from Step 8.In GitHub, open your fork and create a pull request against the Write the Docs repository. The title can be the same as the message in Step 14 and the description can optionally include any necessary context for the change.
Get help¶
If you have questions or need assistance in contributing, ask in the #wtd-website channel in Slack.
