Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

Commit

Permalink
Merge pull request #47 from lwm/contrib-docs
Browse files Browse the repository at this point in the history
Add initial contribution documentation
  • Loading branch information
ajm188 committed Sep 8, 2016
2 parents 2e12202 + 327253d commit 570e0e9
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
70 changes: 70 additions & 0 deletions docs/source/contributing.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
Undebt_: Contributing
==========================

.. _Undebt: index.html
.. default-role:: code

Getting Started
---------------

Undebt's development is taking place on Github, so please go ahead and `fork`_ the repository if you want to begin contributing.

.. _`fork`: https://github.com/Yelp/undebt#fork-destination-box

You'll then want to get a local copy of the code base:

.. code-block:: bash
git clone git@github.com:<your-username>/undebt.git
Getting Setup
-------------

It is highly recommended that you create a `virtual environment`_ before installing the project dependencies.

.. _`virtual environment`: http://docs.python-guide.org/en/latest/dev/virtualenvs/

You can achieve both (create a virtualenv and install dependencies) with:

.. code-block:: bash
make dev
Running the Tests
-----------------

Undebt uses `tox`_ for testing.

.. _`tox`: https://tox.readthedocs.io/en/latest/

You can run the entire test suite:

.. code-block:: bash
make test
Or, run an individual environment:

.. code-block:: bash
tox -e py35 # probably need to be virtualenv
Note. If you do not have the required dependencies for each Tox environment, you will receive an error.
Avoid this by passing the `--skip-missing-interpreters` option.

Adding Documentation
--------------------

Undebt's documentation is formatted using `reStructuredText`_ and hosted on `RTD`_.
Please try to follow the existing style and organization patterns.

.. _`reStructuredText`: http://docutils.sourceforge.net/rst.html
.. _`RTD`: http://undebt.readthedocs.io/en/latest/

You can test your contribution with:

.. code-block:: bash
make docs
Your new, local documentation will be available at `docs/build/html/`.
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ This is the documentation for Undebt_. See below for a list of all of the articl
examples
util
pyparsing
contributing

.. _Undebt: https://github.com/Yelp/undebt

0 comments on commit 570e0e9

Please sign in to comment.