Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into stop-running-mkdocs…
Browse files Browse the repository at this point in the history
…-json
  • Loading branch information
ericholscher committed Jan 11, 2018
2 parents f9386ae + 76635e6 commit 82f1037
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 13 deletions.
3 changes: 1 addition & 2 deletions docs/team.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ Members
* `Eric Holscher <https://github.com/ericholscher>`_
* `Anthony Johnson <https://github.com/agjohnson>`_
* `Manuel Kaufmann <https://github.com/humitos>`_
* `Gregor Müllegger <https://github.com/gregmuellegger>`_
* `Stein Magnus Jodal <https://github.com/jodal>`_
* `David Fischer <https://github.com/davidfischer>`_
* Your name here

Feel free to ask any of us if you have questions or want to join!
Expand Down
8 changes: 4 additions & 4 deletions docs/yaml-config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ This lets users specify a more experimental build image,
if they want to be on the cutting edge.

Certain Python versions require a certain build image,
as defined here::
as defined here:

* `'1.0': 2, 2.7, 3, 3.4`
* `'2.0': 2, 2.7, 3, 3.5`
* `'latest': 2, 2.7, 3, 3.3, 3.4, 3.5, 3.6`
* ``1.0``: 2, 2.7, 3, 3.4
* ``2.0``: 2, 2.7, 3, 3.5
* ``latest``: 2, 2.7, 3, 3.3, 3.4, 3.5, 3.6

.. code-block:: yaml
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var sponsorship = require('./sponsorship'),
footer = require('./doc-embed/footer.js'),
// grokthedocs = require('./doc-embed/grokthedocs-client'),
mkdocs = require('./doc-embed/mkdocs'),
// mkdocs = require('./doc-embed/mkdocs'),
rtddata = require('./doc-embed/rtd-data'),
sphinx = require('./doc-embed/sphinx'),
search = require('./doc-embed/search');
Expand Down
10 changes: 6 additions & 4 deletions readthedocs/core/static-src/core/js/sponsorship.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,16 @@ Promo.prototype.place_promo = function (selector, promo_class) {
Promo.prototype.get_alabaster_promo_selector = function () {
// Return a jQuery selector where the promo goes on the Alabaster theme
var self = this,
selector;
selector,
wrapper;

if (self.display_type === constants.PROMO_TYPES.FOOTER) {
selector = $('<div />')
wrapper = $('<div />')
.attr('class', 'rtd-pro-footer-wrapper body')
.appendTo('div.bodywrapper');
$('<hr />').insertBefore(selector);
$('<hr />').insertAfter(selector);
$('<hr />').appendTo(wrapper);
selector = $('<div />').appendTo(wrapper);
$('<hr />').appendTo(wrapper);
} else {
selector = $('div.sphinxsidebar > div.sphinxsidebarwrapper');
}
Expand Down
2 changes: 1 addition & 1 deletion readthedocs/core/static/core/js/readthedocs-doc-embed.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions readthedocs/doc_builder/backends/mkdocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def generate_rtd_data(self, docs_dir):
'project': self.version.project.slug,
'version': self.version.slug,
'language': self.version.project.language,
'programming_language': self.version.project.programming_language,
'page': None,
'theme': "readthedocs",
'builder': "mkdocs",
Expand Down
1 change: 1 addition & 0 deletions readthedocs/doc_builder/templates/doc_builder/conf.py.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ context = {
'slug': '{{ project.slug }}',
'name': u'{{ project.name }}',
'rtd_language': u'{{ project.language }}',
'programming_language': u'{{ project.programming_language }}',
'canonical_url': '{{ project.get_canonical_url }}',
'analytics_code': '{{ project.analytics_code }}',
'single_version': {{ project.single_version }},
Expand Down
2 changes: 1 addition & 1 deletion readthedocs/restapi/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Meta(object):
fields = (
'id',
'name', 'slug', 'description', 'language',
'repo', 'repo_type',
'programming_language', 'repo', 'repo_type',
'default_version', 'default_branch',
'documentation_type',
'users',
Expand Down
1 change: 1 addition & 0 deletions readthedocs/rtd_tests/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,7 @@ def test_get_version_by_id(self):
'install_project': False,
'language': 'en',
'name': 'Pip',
'programming_language': 'words',
'python_interpreter': 'python',
'repo': 'https://github.com/pypa/pip',
'repo_type': 'git',
Expand Down

0 comments on commit 82f1037

Please sign in to comment.