Files
cypress/docs/CONTRIBUTING.md
2017-08-09 15:51:04 -04:00

2.5 KiB

Contributing to Cypress Documentation

Thanks for taking the time to contribute! 😄

Table of Contents

Code of Conduct

All contributors are expecting to abide by our Code of Conduct.

Getting Started

If you need to work on documentation, ensure you are in the docs directory within the main cypress repository.

The documentation in this repo are generated using Hexo. You should be able to install tools, build and start local hexo site.

From the docs directory:

Install dependencies:

npm install

This will install this repo's direct dependencies.

Then, build the public directory and start the app:

npm run build
npm start

Visit http://localhost:2222/

Writing Documentation

Links are all handled through our cypress.on api.

Link all pages but their name (property key) in source/_data/sidebar.yml

Adding Examples

The documents outlining examples are within the source/examples directory. Each document is written in markdown with a little bit of Hexo flair. To add an example to a document, just try to follow the formatting of any previous examples in the markdown file.

Add an associating image with the example within the source/img/examples directory. Each image should be resolution 715w x 480h. Reference the image in the markdown document as follows:

{% img /img/examples/name-of-file.jpg "alt text describing img" %}

Commiting Code

Pull Requests

  • When opening a PR for a specific issue already open, please use the address #[issue number] or closes #[issue number] syntax in the pull request description.

Deployment

We will try to review and merge pull requests quickly. After merging we will try releasing the documentation. If you want to know our deploy process, read DEPLOY.md