Skip to content

Commit 9965309

Browse files
committed
Merge branch 'master' into lint-raise-profile
2 parents 7efda25 + 81ed02b commit 9965309

File tree

403 files changed

+9426
-6953
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

403 files changed

+9426
-6953
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
.idea
88
.vagrant
99
.tox
10+
.rope_project/
11+
.ropeproject/
1012
_build
1113
cnames
1214
bower_components/
@@ -33,3 +35,5 @@ prod_artifacts
3335
wheelhouse
3436
whoosh_index
3537
xml_output
38+
public_cnames
39+
public_symlinks

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ after_success:
1616
notifications:
1717
slack:
1818
rooms:
19-
- readthedocs:y3hjODOi7EIz1JAbD1Zb41sz#general
19+
- readthedocs:y3hjODOi7EIz1JAbD1Zb41sz#random
2020
on_success: change
2121
on_failure: always

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ when you push to GitHub.
6060
.. |docs| image:: https://readthedocs.org/projects/docs/badge/?version=latest
6161
:alt: Documentation Status
6262
:scale: 100%
63-
:target: https://readthedocs.org/projects/docs/
63+
:target: https://docs.readthedocs.org/en/latest/?badge=latest

bower.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,16 @@
1414
"tests"
1515
],
1616
"dependencies": {
17-
"jquery": "~2.0.3",
17+
"jquery": "2.0.3",
1818
"underscore": "~1.7.0",
1919
"readthedocs-client": "https://github.com/agjohnson/readthedocs-client-js.git",
20+
"sphinx-rtd-theme": "https://github.com/snide/sphinx-rtd-theme.git#0.1.9",
2021
"knockout": "~3.3.0",
21-
"jquery.payment": "~1.2.3"
22+
"jquery.payment": "~1.3.0",
23+
"jquery-migrate": "~1.2.1",
24+
"jquery-ui": "1.8.23"
25+
},
26+
"resolutions": {
27+
"jquery": "2.0.3"
2228
}
2329
}

deploy/delete_stale_projects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import shutil
22
import os
33

4-
from projects.models import Project
4+
from readthedocs.projects.models import Project
55

66
slugs = [p.slug for p in Project.objects.all()]
77
build_projects = os.listdir('/home/docs/checkouts/readthedocs.org/user_builds/')

deploy/flask-redirects.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""
2+
A flask app for redirecting documentation from the root / URL.
3+
"""
4+
15
import json
26

37
from flask import Flask, make_response, redirect, request

docs/alternate_domains.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Read the Docs supports a number of custom domains for your convenience. Shorter
66
Subdomain Support
77
------------------
88

9-
Every project has a subdomain that is available to serve it's documentation. If you go to <slug>.readthedocs.org, it should show you the latest version of documentation. A good example is http://pip.readthedocs.org
9+
Every project has a subdomain that is available to serve its documentation. If you go to <slug>.readthedocs.org, it should show you the latest version of documentation. A good example is http://pip.readthedocs.org
1010

1111
.. note:: If you have an old project that has an underscore (_) in the name, it will use a subdomain with a hypen (-).
1212
`RFC 1035 <http://tools.ietf.org/html/rfc1035>`_ has more information on valid subdomains.

docs/builds.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ and then default to the top-level of your documentation.
4040
Then Mkdocs will build any files with an ``.md`` extension.
4141
If you have a ``README.md``,
4242
it will be transformed into an ``index.md`` automatically.
43+
As MkDocs doesn't support automatic PDF generation,
44+
Read the Docs cannot create a PDF version of your documentation with the *Mkdocs* option.
4345

4446
Understanding what's going on
4547
-----------------------------
@@ -50,7 +52,7 @@ The first step of the process is that we check out your code from the repository
5052

5153
Then we build the proper backend code for the type of documentation you've selected.
5254

53-
If you have the *Use Virtualenv* option enabled, we will run ``setup.py install`` on your package, installing it into a virtual environment. You can also define additional packages to install with the *Requirements File* option.
55+
If you have the *Install Project* option enabled, we will run ``setup.py install`` on your package, installing it into a virtual environment. You can also define additional packages to install with the *Requirements File* option.
5456

5557
When we build your documentation, we run `sphinx-build -b html . _build/html`, where `html` would be replaced with the correct backend. We also create man pages and pdf's automatically based on your project.
5658

@@ -84,6 +86,7 @@ Packages installed in the build environment
8486

8587
The build server does have a select number of C libraries installed, because they are used across a wide array of python projects. We can't install every C library out there, but we try and support the major ones. We currently have the following libraries installed:
8688

89+
* doxygen
8790
* LaTeX (texlive-full)
8891
* libevent (libevent-dev)
8992
* dvipng

docs/canonical.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This means that when Google indexes ``http://fabric-docs.readthedocs.org``, it w
2323
Enabling
2424
--------
2525

26-
You can set the canonical URL for your project in the Project Admin page. Check your `dashboard`_ for a list of your projects.
26+
You can set the canonical URL for your project in the Project Admin page. Check your `Domains` tab for the domains that we know about.
2727

2828
Implementation
2929
--------------

docs/conda.rst

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
Conda Support
2+
=============
3+
4+
.. warning:: This feature is in a beta state.
5+
Please file an `issue`_ if you find anything wrong.
6+
7+
Read the Docs supports Conda as an environment management tool,
8+
along with Virtualenv.
9+
Conda support is useful for people who depend on C libraries,
10+
and need them installed when building their documentation.
11+
12+
This work was funded by `Clinical Graphics`_ -- many thanks for their support of Open Source.
13+
14+
Activating Conda
15+
----------------
16+
17+
Conda Support is the first feature enabled with :doc:`yaml-config`.
18+
You can enable it by creating a `readthedocs.yml` file in the root of your repsitory with the contents:
19+
20+
.. code-block:: yaml
21+
22+
conda:
23+
file: environment.yml
24+
25+
This Conda environment will also have Sphinx and other build time dependencies installed.
26+
It will use the same order of operations that we support currently:
27+
28+
* Environment Creation (``conda create``)
29+
* Dependency Installation (Sphinx)
30+
* User Package Installation (``conda env update``)
31+
32+
Custom Installs
33+
---------------
34+
35+
If you are running a custom installation of Read the Docs,
36+
you will need the ``conda`` executable installed somewhere on your ``PATH``.
37+
Because of the way ``conda`` works,
38+
we can't safely install it as a normal dependency into the normal Python virtualenv.
39+
40+
.. warning:: Installing conda into a virtualenv will override the ``activate`` script,
41+
making it so you can't properly activate that virtualenv anymore.
42+
43+
.. _issue: https://github.com/rtfd/readthedocs.org/issues
44+
.. _Clinical Graphics: https://www.clinicalgraphics.com/
45+

docs/custom_installs/local_rtd_vm.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Possible Error and Resolution
4747
**Resolution**: Run the following commands. ::
4848

4949
$ sudo apt-get update
50-
$ sudo apt-get install python2.7-dev tk8.5 tcl8.5 tk8.5-dev tcl8.5-dev
50+
$ sudo apt-get install python2.7-dev tk8.5 tcl8.5 tk8.5-dev tcl8.5-dev libxml2-devel libxslt-devel
5151
$ sudo apt-get build-dep python-imaging --fix-missing
5252

5353
2. Configure the RTD Server and Superuser.

docs/design.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. _designing-read-the-docs:
1+
.. _designing-read-the-docs:
22

33
Designing Read the Docs
44
=======================
@@ -23,7 +23,7 @@ for a quick overview of the currently available styles.
2323
This way you can quickly get started writing HTML -- or if you're
2424
modifying existing styles you can get a quick idea of how things
2525
will change site-wide.
26-
26+
2727
Typekit Fonts
2828
-------------
2929

@@ -55,15 +55,15 @@ Contributing
5555
------------
5656

5757
Contributions should follow the :ref:`contributing-to-read-the-docs` guidelines where applicable -- ideally you'll
58-
create a pull request against the `Read the Docs Github project`_ from your forked repo and include
58+
create a pull request against the `Read the Docs GitHub project`_ from your forked repo and include
5959
a brief description of what you added / removed / changed, as well as an attached image (you can just
6060
take a screenshot and drop it into the PR creation form) of the effects of your changes.
6161

6262
There's not a hard browser range, but your design changes should work reasonably well across all major
6363
browsers, IE8+ -- that's not to say it needs to be pixel-perfect in older browsers! Just avoid
6464
making changes that render older browsers utterly unusable (or provide a sane fallback).
6565

66-
.. _Read the Docs Github project: https://github.com/rtfd/readthedocs.org/pulls
66+
.. _Read the Docs GitHub project: https://github.com/rtfd/readthedocs.org/pulls
6767

6868

6969

docs/faq.rst

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ Of course, replacing `MOCK_MODULES` with the modules that you want to mock out.
6666

6767
from mock import Mock as MagicMock
6868

69+
If such libraries are installed via ``setup.py``, you also will need to remove all the C-dependent libraries from your ``install_requires`` in the RTD environment.
70+
6971
`Client Error 401` when building documentation
7072
----------------------------------------------
7173

@@ -189,3 +191,35 @@ are `numpydoc <https://github.com/numpy/numpydoc>`_ and
189191
``napoleon`` is able to handle both docstring formats. Its default
190192
output more closely matches the format of standard Sphinx annotations,
191193
and as a result, it tends to look a bit better with the default theme.
194+
195+
Can I document a python package that is not at the root of my repository?
196+
-------------------------------------------------------------------------
197+
198+
Yes. The most convenient way to access a python package for example via
199+
`Sphinx's autoapi`_ in your documentation is to use the *Install your project
200+
inside a virtualenv using ``setup.py install``* option in the admin panel of
201+
your project. However this assumes that your ``setup.py`` is in the root of
202+
your repository.
203+
204+
If you want to place your package in a different directory or have multiple
205+
python packages in the same project, then create a pip requirements file. You
206+
can specify the relative path to your package inside the file.
207+
For example you want to keep your python package in the ``src/python``
208+
directory, then create a ``requirements.readthedocs.txt`` file with the
209+
following contents::
210+
211+
src/python/
212+
213+
Please note that the path must be relative to the file. So the example path
214+
above would work if the file is in the root of your repository. If you want to
215+
put the requirements in a file called ``requirements/readthedocs.txt``, the
216+
contents would look like::
217+
218+
../python/
219+
220+
After adding the file to your repository, go to the *Advanced Settings* in
221+
your project's admin panel and add the name of the file to the *Requirements
222+
file* field.
223+
224+
.. _Sphinx's autoapi: http://sphinx-doc.org/ext/autodoc.html
225+
.. _pip requirements file: https://pip.pypa.io/en/stable/user_guide.html#requirements-files

docs/features.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ Read the Docs features
33

44
This will serve as a list of all of the features that Read the Docs currently has. Some features are important enough to have their own page in the docs, others will simply be listed here.
55

6-
Github and Bitbucket Integration
6+
GitHub and Bitbucket Integration
77
--------------------------------
88

9-
We now support linking by default in the sidebar. It links to the page on your host, which should help people quickly update typos and send pull requests to contribute to project documentation.
9+
We now support linking by default in the sidebar. It links to the page on your host, which should help people quickly update typos and send pull requests to contribute to project documentation.
1010

1111
More information can be found in the :doc:`vcs` page.
1212

1313
Auto-updating
1414
-------------
1515

16-
The :doc:`webhooks` page talks about the different ways you can ping RTD to let us know your project has been updated. We have official support for Github, and anywhere else we have a generic post-commit hook that allows you to POST to a URL to get your documentation built.
16+
The :doc:`webhooks` page talks about the different ways you can ping RTD to let us know your project has been updated. We have official support for GitHub, and anywhere else we have a generic post-commit hook that allows you to POST to a URL to get your documentation built.
1717

1818
Internationalization
1919
--------------------
@@ -30,12 +30,12 @@ More information can be found in the :doc:`canonical` page.
3030
Versions
3131
--------
3232

33-
We can build multiple versions of your documentation. Look on the "Versions" page
34-
of your project's admin (using the nav on the left) to find a list of available versions
35-
that we've inferred from the tags and branches in your source control system (according to
36-
the support matrix below). On the Versions page you can tell us which versions you'd like us
37-
to build docs for, whether each should be public, protected, or private, and what the default
38-
version should be (we'll redirect there when someone hits your main project page, e.g.,
33+
We can build multiple versions of your documentation. Look on the "Versions" page
34+
of your project's admin (using the nav on the left) to find a list of available versions
35+
that we've inferred from the tags and branches in your source control system (according to
36+
the support matrix below). On the Versions page you can tell us which versions you'd like us
37+
to build docs for, whether each should be public, protected, or private, and what the default
38+
version should be (we'll redirect there when someone hits your main project page, e.g.,
3939
http://my-project.rtfd.org/).
4040

4141
Version Control Support Matrix

docs/getting_started.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ If you are already using Sphinx or Markdown for your docs, skip ahead to
1111
Write Your Docs
1212
---------------
1313

14-
You have two options for format for your documentation:
14+
You have two options for formatting your documentation:
1515

1616
* :ref:`in-rst`
1717
* :ref:`in-markdown`
@@ -38,7 +38,7 @@ Run ``sphinx-quickstart`` in there::
3838
$ cd docs
3939
$ sphinx-quickstart
4040

41-
This will walk you through creating the basic configuration; in most cases, you
41+
This quick start will walk you through creating the basic configuration; in most cases, you
4242
can just accept the defaults. When it's done, you'll have an ``index.rst``, a
4343
``conf.py`` and some other files. Add these to revision control.
4444

docs/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Information about development is also available:
4444
features
4545
support
4646
faq
47+
yaml-config
4748

4849

4950
.. _feature-docs:
@@ -58,6 +59,7 @@ Information about development is also available:
5859
alternate_domains
5960
localization
6061
vcs
62+
conda
6163
canonical
6264
single_version
6365
privacy
@@ -83,7 +85,6 @@ Information about development is also available:
8385
settings
8486
i18n
8587
issue-labels
86-
api
8788

8889
.. _business-docs:
8990

docs/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Then please create a superuser account for Django::
7878

7979
./manage.py createsuperuser
8080

81-
By now, it is the right time to load in a couple users and a test projects::
81+
By now, it is the right time to load in a couple users and a test project::
8282

8383
./manage.py loaddata test_data
8484

docs/locale/da/LC_MESSAGES/design.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SOME DESCRIPTIVE TITLE.
22
# Copyright (C) 2010, Eric Holscher, Charlie Leifer, Bobby Grace
33
# This file is distributed under the same license as the Read The Docs package.
4-
#
4+
#
55
# Translators:
66
msgid ""
77
msgstr ""
@@ -123,7 +123,7 @@ msgstr ""
123123
msgid ""
124124
"Contributions should follow the :ref:`contributing-to-read-the-docs` "
125125
"guidelines where applicable -- ideally you'll create a pull request against "
126-
"the `Read the Docs Github project`_ from your forked repo and include a "
126+
"the `Read the Docs GitHub project`_ from your forked repo and include a "
127127
"brief description of what you added / removed / changed, as well as an "
128128
"attached image (you can just take a screenshot and drop it into the PR "
129129
"creation form) of the effects of your changes."

docs/locale/da/LC_MESSAGES/features.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SOME DESCRIPTIVE TITLE.
22
# Copyright (C) 2010, Eric Holscher, Charlie Leifer, Bobby Grace
33
# This file is distributed under the same license as the Read The Docs package.
4-
#
4+
#
55
# Translators:
66
msgid ""
77
msgstr ""
@@ -32,7 +32,7 @@ msgstr ""
3232

3333
# b76f9583f25246b88eb15790dbfed33c
3434
#: ../../features.rst:7
35-
msgid "Github and Bitbucket Integration"
35+
msgid "GitHub and Bitbucket Integration"
3636
msgstr ""
3737

3838
# 8d0f0e8a31304c2e9326610f43e7cd44
@@ -58,7 +58,7 @@ msgstr ""
5858
msgid ""
5959
"The :doc:`webhooks` page talks about the different ways you can ping RTD to "
6060
"let us know your project has been updated. We have official support for "
61-
"Github, and anywhere else we have a generic post-commit hook that allows you"
61+
"GitHub, and anywhere else we have a generic post-commit hook that allows you"
6262
" to POST to a URL to get your documentation built."
6363
msgstr ""
6464

docs/locale/da/LC_MESSAGES/support.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SOME DESCRIPTIVE TITLE.
22
# Copyright (C) 2010, Eric Holscher, Charlie Leifer, Bobby Grace
33
# This file is distributed under the same license as the Read The Docs package.
4-
#
4+
#
55
# Translators:
66
msgid ""
77
msgstr ""
@@ -32,7 +32,7 @@ msgstr ""
3232
msgid ""
3333
"The easiest way to get help with the project is to join the ``#readthedocs``"
3434
" channel on Freenode_. We hang out there and you can get real-time help with"
35-
" your projects. The other good way is to open an issue on Github_."
35+
" your projects. The other good way is to open an issue on GitHub_."
3636
msgstr ""
3737

3838
# 56a196d98e104204ad6849fdc78b9b4e

0 commit comments

Comments
 (0)