Skip to content

Latest commit

 

History

History
147 lines (108 loc) · 7.64 KB

CONTRIBUTING.md

File metadata and controls

147 lines (108 loc) · 7.64 KB

Contributing

Help us create relevant and useful content for developers like yourself. See something you'd like to add or change? We love pull requests!

NOTE: All contributions must be licensed under CC-BY-SA. Code snippet contributions must additionally be licensed under The MIT License. You must have permission to contribute your work under these terms.

If you're looking for a place to start, try copying our Doc Template file and using it to outline your new doc.

Code of Conduct

Pantheon is dedicated to a positive and harassment-free community experience for everyone. See our full code of conduct for details, including how to report abuse.

Issues - Searching and Creating

Before you edit or create a doc, search open issues to make sure you can't find anything related to what you want to work on. If there isn't an issue, create one and add an outline for the article you want to create. This allows contributors to get some initial feedback.

###Titles and Descriptions When creating issues, add a clear title and description. Issues should contain relevant information e.g., the document title, the information that is incorrect or outdated and your suggestion on how to fix it, reasons why method A is better than method B, and so on.

Example:
Title: Apache Solr doc - Terminus command is not working
Description: The document currently suggests using XYZ commands, but I get the following error (insert error message). The fix is to use XYZ commands.

###Labels

Add labels to issues by clicking the gear in the sidebar on the right. Labels are used to signify priority, category, and to help filter existing issues. For example, if a doc is incorrect, the label 'Doc Defect' should be applied.

Edit and Test Locally Using Vagrant

Note: To preserve the accuracy of promised information throughout the docs, search the repository for links to sections that have been renamed and update accordingly.

  1. Use Vagrant to run the docs site locally.
  2. Navigate to your local documentation repository and use git checkout -b <new-branch-name> to switch to a new branch.
  3. Edit/Create docs locally using your favorite text editor (e.g. Atom), then save the file changes.
  4. Run vagrant provision and verify modifications on the local site http://docs.local:8000/docs
  5. Test layout or code changes with vagrant ssh and cd /vagrant, then execute the following tests individually (optional):
  • grunt: a11y accessibility audits
  • rake: HTML::Proofer HTML validation
  • bin/behat: Behat
  • wraith capture wraith.yaml: Wraith visual regression tool
  • scripts/merge_conflicts.sh: Look for merge conflicts.
  1. Commit changes and push to your fork. Issue pull-requests one document/issue at a time.

Updating Header and Subheaders

Headers and Subheaders render as H2 and H3 tags when the site is published. These tags automatically generate anchors which can be relatively linked throughout the site. When creating or editing, avoid using numbers and special characters. If used, the URL would either need to be encoded or ignored from html-proofer tests using the data-proofer-ignore attribute.

Use of Images

All images must include a descriptive alt value. For details, see the Images Readme.

Edit on GitHub

Trying to edit or create a file in this repository will create your fork automatically. Commit changes and issue pull-requests one document/issue at a time. For more information, see Using Pull Requests.

Keep your Local Updated with Master

From your local repo, run the following commands in order:

  1. git checkout master
  2. git pull --rebase upstream master
  3. git push origin master

Add a New Doc

Front Matter

All of our documentation is generated from markdown files, found at source/_docs/ and source/docs/guides/. These markdown files must have front matter that allow the page to render successfully. This is required if you plan to create a new doc. Here's an example:

---
title: Git FAQs
description: Answers to commonly asked questions about Git, Drupal 7, Drupal 6 and Pantheon.
tags: [performance, cache]
contributors: mrfelton
---

Taxonomies

Docs should include three unique taxonomies: categories, tags, and contributors. Currently, the only taxonomy used within Guides is contributors.

Categories

Only the following categories should be included (case sensitive):

  • developing
  • managing
  • wordpress
  • drupal

If you feel that another category should be created, indicate the suggestion within your pull request and a moderator will review.

Tags

Only the following tags should be included (case sensitive):

  • platform
  • getting-started
  • local
  • code
  • backups
  • domains
  • varnish
  • organizations
  • migrate
  • files
  • create
  • database
  • debug
  • logs
  • drupal-8
  • terminus

If you feel that another tag should be created, indicate the suggestion within your pull request and a moderator will review.

Contributors

Create a contributor profile within your first contribution. Fill out the information below and add it to the sculpin_site.yml file. Commit this change alongside your new guide.

your_handle:
   name: Your Name
   url: http://yourURL.com
   avatar: http://url.to.a.valid/avatar.jpeg
   twitter: http://twitter.com/
   gplus: https://plus.google.com/
   github: https://github.com/
   linkedin: https://www.linkedin.com/in/
   drupal: https://www.drupal.org/u/
   wordpress: https://profiles.wordpress.org/
bio: This shouldn't be long, just a short intro.

Please provide at least "name" and "bio". The "gplus" URL is useful to show your contributor info on Google search results.

Submit a Pull Request

When you're done making changes, submit a pull request.

Some things to follow to help increase the chance that your pull request will be accepted:

Moderator Expectations

Moderators will review and comment on pull requests within three business days. We may suggest changes, improvements, or alternatives in which case the original contributor will be tagged directly so follow-up instructions are clear. There may be times where moderators will make commits to your fork directly for clarity and/or alignment with our style guide.

Additional Resources