Commit Graph

480 Commits (06631795c0a7de0f7b45c8c5dabc796b4cd86bcc)

Author SHA1 Message Date
David Fischer 67c4164692
Increase footer ad text size 2018-09-28 16:12:14 -07:00
David Fischer 70f2df9061
Create an explicit ad placement 2018-09-18 16:53:07 -07:00
David Fischer 2d446c72cf
Merge branch 'master' into davidfischer/mkdocs-upgrade-again 2018-09-12 14:40:36 -07:00
David Fischer 31772952ad
Reformat ads 2018-09-10 12:35:04 -07:00
David Fischer a30768d018
Updates and simplification for mkdocs 2018-08-22 09:51:40 -07:00
David Fischer 79032b53b0
Merge pull request #4424 from rtfd/davidfischer/cloudflare-sponsor-logo
Add Sponsors list to footer
2018-08-15 16:00:30 -07:00
David Fischer 17bcb7f641
All static media is run through "collectstatic" 2018-08-07 15:50:45 -07:00
David Fischer 80189f3479
Add additional sponsors 2018-08-01 10:25:34 -07:00
David Fischer 77be9ab124
Add Cloudflare to the sponsors list and footer 2018-07-24 12:58:54 -07:00
Manuel Kaufmann cedda9bf53 Allow to hook the initial build from outside (#4033)
* Allow to hook the initial build from outside

Add a new attribute to `trigger_build` to do not execute the task but
just return the immutable signature of it, so it can be chained into a
bigger task from outside when it's needed to do something else
before/after it's execution.

* Remove unused basic attribute on trigger build

* Split trigger_build to be able to prepare_build first

Added a ``ImportWizard.trigger_initial_build`` method to be override
from corporate site.

Also, instead of using ``trigger_build`` to create the Celery task and
call it immediately, split it to use ``prepare_build`` first to create
the task and use ``trigger_build`` to effectively triggers it.

* Remove now unused signal

* Fix Celery signature creation

* Fix testcases with basic on trigger_build

* Fix mock calls in test cases

* Fix test mock check

* Use async task to attach webhook

* Use proper context object

* Make it compatible with newer Django versions

* Py2 and Py3 compatible line

* Dismiss the sticky message and stay in the same page

* Use Context to render the template

* Lint errors fixed

* Call the task in a sync way properly

* Update common submodule to latest

* Define NonPersistentStorage for one-time notifications

NonPersistentNotification backed together with SiteNotification class
helps us to create one-time site notifications and attach it to a user
without the needs of a request/session object.

The message/notification is saved into the database as a
PersistentMessage and it's marked as read while it's retrived the
first time.

This system is useful for notifications that need to be attached from
a Celery task where we know the user but we don't have the request.

* Make string translatable

* Fix merge conflicts

* Recover accidentally deleted line

* Fixed linting errors

* Replace message_key with reason to be clearer

* Rename non persistent storage class

* Remove old templates

* Make SiteNotification more flexible

- render strings messages as Django Templates
- accept extra_context for the template
- do not crash if the reason is incorrect

* Adapt AttachWebhookNotification to the new features

* Refactor the task to attach a webhook

Instantiate only once the notification and adapt it depending the
context.

Also, if there are no connected services into our application do not
show a message to the user, but log it as a warning.

* Test cases for SiteNotification and NonPersistentStorage

* Remove unnecessary lines

* Show a persistent message for invalid project webhook

If we can setup a valid webhook, we show a persistent message with an
actionable link using our notifications abstraction.

At this point, the message is duplicated because we have a "fixed
template message" also which is planned to be removed soon.

* Improve copy

* Allow to hook the initial build from outside

Add a new attribute to `trigger_build` to do not execute the task but
just return the immutable signature of it, so it can be chained into a
bigger task from outside when it's needed to do something else
before/after it's execution.

* Remove unused basic attribute on trigger build

* Split trigger_build to be able to prepare_build first

Added a ``ImportWizard.trigger_initial_build`` method to be override
from corporate site.

Also, instead of using ``trigger_build`` to create the Celery task and
call it immediately, split it to use ``prepare_build`` first to create
the task and use ``trigger_build`` to effectively triggers it.

* Remove now unused signal

* Fix Celery signature creation

* Fix testcases with basic on trigger_build

* Fix mock calls in test cases

* Fix test mock check

* Use proper context object

* Make it compatible with newer Django versions

* Py2 and Py3 compatible line

* Dismiss the sticky message and stay in the same page

* Use Context to render the template

* Lint errors fixed

* Call the task in a sync way properly

* Update common submodule to latest

* Define NonPersistentStorage for one-time notifications

NonPersistentNotification backed together with SiteNotification class
helps us to create one-time site notifications and attach it to a user
without the needs of a request/session object.

The message/notification is saved into the database as a
PersistentMessage and it's marked as read while it's retrived the
first time.

This system is useful for notifications that need to be attached from
a Celery task where we know the user but we don't have the request.

* Make string translatable

* Use async task to attach webhook

* Fix merge conflicts

* Recover accidentally deleted line

* Fixed linting errors

* Replace message_key with reason to be clearer

* Rename non persistent storage class

* Remove old templates

* Make SiteNotification more flexible

- render strings messages as Django Templates
- accept extra_context for the template
- do not crash if the reason is incorrect

* Adapt AttachWebhookNotification to the new features

* Refactor the task to attach a webhook

Instantiate only once the notification and adapt it depending the
context.

Also, if there are no connected services into our application do not
show a message to the user, but log it as a warning.

* Test cases for SiteNotification and NonPersistentStorage

* Remove unnecessary lines

* Show a persistent message for invalid project webhook

If we can setup a valid webhook, we show a persistent message with an
actionable link using our notifications abstraction.

At this point, the message is duplicated because we have a "fixed
template message" also which is planned to be removed soon.

* Improve copy

* Remove fixed template notification about Project.has_valid_webhook
2018-06-14 12:29:08 -06:00
Eric Holscher 002c8eb11c Merge remote-tracking branch 'origin/master' into remove_autocomplete 2018-06-07 11:10:45 -04:00
Eric Holscher 66527bd97c remove additional files in autocomplete 2018-06-07 11:06:37 -04:00
Eric Holscher e2c999f824
Merge pull request #4037 from davidfischer/adblock-nag
Ad block nag to urge people to whitelist
2018-06-06 15:21:24 -04:00
David Fischer eb4f10f916
Add a link to go ad-free 2018-06-06 10:23:52 -07:00
Eric Holscher ab6c2c833a Merge branch 'better-ux-subprojects' of https://github.com/stsewd/readthedocs.org 2018-05-30 17:39:19 -04:00
Eric Holscher 041477a7a7
Merge pull request #3512 from kennethlarsen/feature/enable-outline
Remove outline reset to bring back outline
2018-05-30 17:27:10 -04:00
David Fischer e01d94cab7
Merge branch 'master' into do-not-track-support 2018-05-30 13:15:27 -07:00
David Fischer 48449e7ad8
Remove the extra spacing 2018-05-29 13:55:36 -07:00
David Fischer be15da34af
Small footer rework 2018-05-25 16:28:08 -07:00
David Fischer e804548695
Fix with Lato Bold font 2018-05-23 10:46:39 -07:00
David Fischer 3f741684c9
Only check navigator.doNotTrack per the standard 2018-05-18 12:06:43 -07:00
David Fischer e5980155b5
Use the latest Lato release
- http://www.latofonts.com/2015/08/06/lato-font-family-updated-version-2-015/
2018-05-15 09:54:59 -07:00
David Fischer b038d9d7ea
Handle a few issues with DNT
- Handle navigator.doNotTrack == 'unspecified'
- Make GA actually store persistent cookies
2018-04-30 20:47:15 -07:00
David Fischer d0cc92e2c4
Initial do not track support 2018-04-30 20:24:31 -07:00
David Fischer 230772d380
Ad block nag to get people to whitelist 2018-04-27 11:43:16 -07:00
Eric Holscher afa5500a1f
Merge pull request #4022 from davidfischer/support-github-bitbucket-login
Support sign in and sign up with GH/GL/BB
2018-04-27 10:38:38 -07:00
David Fischer 9eed589edb
Swap native font stack for Lato 2018-04-25 21:00:40 -07:00
David Fischer 2faf84bbf5
Support sign in and sign up with GH/GL/BB 2018-04-25 12:36:38 -07:00
David Fischer 9f4d7e5a1b
Remove typekit
- Replace fonts with a native font stack
- Fixes #3939
2018-04-20 11:11:18 -07:00
David Fischer 8432800a6c
Merge pull request #3955 from davidfischer/docs-advertising-details
Add advertising details docs
2018-04-18 06:07:15 -07:00
David Fischer fbc52d5565
Merge pull request #3948 from ze/adjust-projects
Make adjustments to Projects page
2018-04-16 17:08:16 -07:00
David Fischer b319fff1eb
Add advertising details docs 2018-04-16 15:53:57 -07:00
ze 9a4fdf3a5f Remove redundant CSS selectors
Change margins on #project_description to what it seems it was intended to be
Adjust project description template
2018-04-14 23:45:03 -04:00
David Fischer dc4c9b0efe
Fixed footer width fix 2018-04-13 11:32:13 -07:00
Eric Holscher c83b17a726
Merge pull request #3896 from davidfischer/analytics-dynamic-include
Single analytics file for all builders
2018-04-05 12:56:34 +08:00
David Fischer 91ba549860
Merge pull request #3895 from davidfischer/fixed-footer-ads-part-deux
Fixed footer ads again
2018-04-04 15:23:51 -07:00
David Fischer 1a62d5de51
Separate analytics file for all builders 2018-04-03 16:37:53 -07:00
David Fischer 53fd600f64
Fixed footer ads again 2018-04-03 15:15:36 -07:00
David Fischer 15c9d673ac
Push the alabaster ad down even more 2018-04-02 14:35:05 -07:00
David Fischer fc2b0c764d
Fix an Alabaster positioning issue 2018-04-02 12:26:22 -07:00
David Fischer f4b9727c15
Merge branch 'master' into use-sustainability-api 2018-03-06 16:49:48 -08:00
David Fischer e4cb814b91
Refactor and simplify doc embed CSS 2018-03-03 23:55:21 -08:00
David Fischer 94339b8f5a
Attempt to prevent bots indexing promos
- Mark the ads rel=nofollow
- Add them to robots.txt
- This was pretty much only a problem for Chinese spiders
2018-03-02 09:44:10 -08:00
aasis21 2950fdab1c removed rich text editor and its related markitup media files 2018-02-27 00:53:31 +05:30
Santos Gallegos 7a440f6a02 More general style 2018-02-21 18:23:23 -05:00
aasis21 828ec8a10b fixed formatting buttons in edit project text editor 2018-02-18 20:04:42 +05:30
Santos Gallegos 713f633c6f Add style for subprojects list 2018-02-10 11:35:00 -05:00
David Fischer 950db4b747
Rework homepage
- Call to action to get started
- Break up large blocks of text
- Remove recent projects
2018-02-05 11:49:18 -08:00
David Fischer c486a844cc
Promo contrast improvements 2018-01-25 13:33:42 -08:00
Kenneth Larsen 265942f3ad Remove outline reset to bring back outline 2018-01-13 12:23:25 +01:00