Skip to content

Commit

Permalink
Merge pull request #3425 from rtfd/celery-sponsorship
Browse files Browse the repository at this point in the history
Add celery theme to supported ad options
  • Loading branch information
ericholscher authored Dec 21, 2017
2 parents 43787f9 + baeb879 commit 7004cf0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion readthedocs/core/static-src/core/js/doc-embed/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
var exports = {
THEME_RTD: 'sphinx_rtd_theme',
THEME_ALABASTER: 'alabaster',
THEME_CELERY: 'sphinx_celery'
}

exports.PROMO_SUPPORTED_THEMES = [
exports.THEME_RTD,
exports.THEME_ALABASTER
exports.THEME_ALABASTER,
exports.THEME_CELERY
]

exports.PROMO_TYPES = {
Expand Down
2 changes: 1 addition & 1 deletion readthedocs/core/static-src/core/js/sponsorship.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Promo.prototype.create = function () {
menu = this.get_sphinx_rtd_theme_promo_selector();
promo_class = this.display_type === constants.PROMO_TYPES.FOOTER ? 'rtd-pro-footer' : 'wy-menu';
}
else if (this.theme == constants.THEME_ALABASTER) {
else if (this.theme == constants.THEME_ALABASTER || this.theme == constants.THEME_CELERY) {
menu = this.get_alabaster_promo_selector();
promo_class = this.display_type === constants.PROMO_TYPES.FOOTER ? 'rtd-pro-footer' : 'alabaster';
}
Expand Down
Binary file modified readthedocs/core/static/core/font/Inconsolata-Bold.ttf
Binary file not shown.
Binary file modified readthedocs/core/static/core/font/Inconsolata-Regular.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion readthedocs/core/static/core/js/readthedocs-doc-embed.js

Large diffs are not rendered by default.

0 comments on commit 7004cf0

Please sign in to comment.