The source code that powers readthedocs.org
 
 
 
 
 
 
Go to file
Manuel Kaufmann 393e31ad3a Save Docker image hash in RTD environment.json file (#3880)
* Save docker image hash to consider when auto wiping the environment (#3793)

* Remove obsolete code

Now, we can access `self.config.build_image` directly.

* Move container_image selection to the init

At initialization time we have the project and we already know if the
project has the build image override so we can decide at that point
and save it as a instance attribute.

Then we can use this values from other places inside the same class.

* Save Docker Image hash in readthedocs-environment.json

The hash is used to know if the environment is obsolete and auto-wipe
it if necessary.

* Simplify the class naming

* Save the image hash in the json file

* Lint

* Remove invalid properties from YAML config in tests

* Add test for save_environment_json

* Improve docstring

* Handle obsolete cases better

* when the file is corrupted or we don't have access, we return that
  it's OBSOLETE

* when there is a new setting that we need to compare and it's not in
  the JSON file, we return OBSOLETE

* Test case for build image in the config but not in the JSON
2018-03-30 18:22:52 -06:00
.github fix typo in issue template 2016-06-08 17:05:06 -04:00
.tx added tx config 2012-10-03 13:28:54 +02:00
contrib #3718: Added date to changelog (#3788) 2018-03-29 10:23:58 -06:00
deploy Assorted docstring/PEP 257 fixes (#2835) 2017-05-11 11:35:51 -07:00
docs deleted unintended file 2018-03-27 16:55:37 +05:30
logs Put the logs directory in the repo. 2012-03-12 15:35:28 -07:00
media Merge branch 'master' into use-sustainability-api 2018-03-06 16:49:48 -08:00
readthedocs Save Docker image hash in RTD environment.json file (#3880) 2018-03-30 18:22:52 -06:00
readthedocs-common@9d766e1c07 Use readthedocs-common to share linting files accross different repos (#3808) 2018-03-23 11:42:58 -06:00
requirements Use gitpython to find a commit reference (#3843) 2018-03-29 17:51:48 -06:00
.eslintrc Use readthedocs-common to share linting files accross different repos (#3808) 2018-03-23 11:42:58 -06:00
.flake8 Use readthedocs-common to share linting files accross different repos (#3808) 2018-03-23 11:42:58 -06:00
.gitattributes Because font files 2018-03-12 12:23:22 -06:00
.gitignore Allow members of "Admin" Team to wipe version envs (#3791) 2018-03-15 11:37:18 -06:00
.gitmodules Use readthedocs-common to share linting files accross different repos (#3808) 2018-03-23 11:42:58 -06:00
.isort.cfg Use readthedocs-common to share linting files accross different repos (#3808) 2018-03-23 11:42:58 -06:00
.pep8 Use readthedocs-common to share linting files accross different repos (#3808) 2018-03-23 11:42:58 -06:00
.pre-commit-config.yaml Use readthedocs-common to share linting files accross different repos (#3808) 2018-03-23 11:42:58 -06:00
.travis.yml Only build travis push builds on master. 2017-12-18 14:43:34 -08:00
AUTHORS.rst Link to the documentation page for the core team 2018-02-16 09:26:18 -05:00
CHANGELOG.rst Release 2.3.4 2018-03-26 18:46:06 -06:00
LICENSE Rename License.mit to License 2017-09-07 18:59:06 -04:00
MANIFEST.in Adjust manifest 2017-09-07 18:59:19 -04:00
README.rst Update README.rst 2018-01-08 20:23:15 -05:00
bower.json Upgrade RTD Theme to 0.2.5b1 (#3313) 2017-11-27 09:38:32 -07:00
fabfile.py Update translations 2017-07-19 16:07:10 -07:00
gulpfile.js Fix broken dependency for gulp build 2017-11-04 01:15:03 -06:00
manage.py Settings and public domain restructure (#1829) 2016-04-14 14:58:28 -07:00
package.json Follow similar convention 2018-02-11 21:26:50 -05:00
prospector-more.yml Finish linting on py3ish code (#2949) 2017-06-14 09:38:03 -07:00
prospector.yml Use readthedocs-common to share linting files accross different repos (#3808) 2018-03-23 11:42:58 -06:00
pytest.ini Make the donate tests run in CI 2017-09-25 19:19:00 -07:00
requirements.txt Added top-level requirements file 2015-04-15 11:37:12 -07:00
setup.cfg Release 2.3.4 2018-03-26 18:46:06 -06:00
setup.py Add changelog and changelog automation (#3364) 2017-12-07 11:03:00 -07:00
tasks.py Release 2.3.4 2018-03-26 18:46:06 -06:00
tox.ini add description for tox tasks 2018-03-28 11:15:55 +01:00

README.rst

Welcome to Read the Docs
========================

|build-status| |docs|

Purpose
-------

`Read the Docs`_ hosts documentation for the open source community. It supports
Sphinx_ docs written with reStructuredText_, and can pull from your Subversion_,
Bazaar_, Git_, and Mercurial_ repositories.
Then we build documentation and host it for you.
Think of it as *Continuous Documentation*.

.. _Read the docs: http://readthedocs.org/
.. _Sphinx: http://sphinx.pocoo.org/
.. _reStructuredText: http://sphinx.pocoo.org/rest.html
.. _Subversion: http://subversion.tigris.org/
.. _Bazaar: http://bazaar.canonical.com/
.. _Git: http://git-scm.com/
.. _Mercurial: https://www.mercurial-scm.org/

Documentation for RTD
---------------------

You will find complete documentation for setting up your project at `the Read
the Docs site`_.

.. _the Read the Docs site: https://docs.readthedocs.io/

Contributing
------------

You can find information about contributing to Read the Docs at our `Contribution page <http://docs.readthedocs.io/en/latest/contribute.html>`_.

Quickstart for GitHub-Hosted Projects
-------------------------------------

By the end of this quickstart, you will have a new project automatically updated
when you push to GitHub.

#. Create an account on `Read the Docs`_.  You will get an email verifying your
   email address which you should accept within 7 days.

#. Log in and click on "Import".

#. Give your project a name, add the HTTPS link for your GitHub project, and
   select Git as your repository type.

#. Fill in the rest of the form as needed and click "Create".

#. On GitHub, navigate to your repository and click on "Settings".

#. In the sidebar, click on "Web Hooks & Services", then find and click on the
   "ReadTheDocs" service.

#. Check the "Active" setting and click "Update Settings".

#. All done.  Commit away and your project will auto-update.


.. |build-status| image:: https://img.shields.io/travis/rtfd/readthedocs.org.svg?style=flat
    :alt: build status
    :scale: 100%
    :target: https://travis-ci.org/rtfd/readthedocs.org

.. |docs| image:: https://readthedocs.org/projects/docs/badge/?version=latest
    :alt: Documentation Status
    :scale: 100%
    :target: https://docs.readthedocs.io/en/latest/?badge=latest

License
-------

`MIT`_ © 2010-2017 Read the Docs, Inc & contributors

.. _MIT: LICENSE