Граф коммитов

65 Коммитов

Автор SHA1 Сообщение Дата
Steve Jalim c5e2b3b67f
Add background task queue support and use it for CMS image generation (#14617)
* Add django-rq to the project, with initial configuration for two redis-backed queues if redis is available

* Add Django-rq to project, including link from (now necessary) Django admin's userlinks

* Update Docker support to run a local worker node for RQ

* Add Sentry integration for Redis and for RQ

* Add a make command to run the worker queue

Temporarily loads env vars from .env, looking for REDIS_URL

* Make a new setting that makes it unambiguous whether a task queue is available

* Add helper that will enqueue a task or immediately execute it, depending on whether the task queue is available

Note that if it finds a queue is available it will put a job in there, regardless of whether the queue is being processed by a worker

* Switch image-rendition pre-generation to use the task queue, if available

* Add initial, basic, docs about the task queue

* Improve logging around task queue usage

* Fix formatting of Makefile

Thanks @janbrasna!

* Typo fixes in documentation

Thanks @janbrasna!
2024-06-04 14:27:34 +04:00
Steve Jalim 14b5274425
Add in skeleton documentation for Wagtail integration (#14616) 2024-05-31 13:32:27 +01:00
Stephanie Hobson 7030e7219f
Add some docs for the privacy notice templates #14233 (#14562)
Co-authored-by: Jan Brasna <1784648+janbrasna@users.noreply.github.com>
2024-05-21 11:01:33 -07:00
Alex Gibson 54b4fe9b52
Update docs to reference Mozilla accounts (Fixes #137240) (#13814) 2023-10-23 09:31:34 -05:00
Alex Gibson 477972d2df
Refresh attribution documentation (#13155) 2023-05-19 13:11:22 -07:00
Alex Gibson dbbb76dd36
Document steps required for adding new countries to the VPN landing page (Fixes #13089) (#13114) 2023-05-11 09:35:26 +01:00
Alex Gibson 1b843ec041
Update Firefox Desktop Attribution docs (#13015) 2023-05-04 07:26:23 -07:00
Alex Gibson 63a428b933
Add VPN Affiliate attribution flow (Fixes #11212) (#11277) 2022-03-28 11:29:54 -07:00
Steve Jalim 1c0f3b600a Add initial summary of how sitemap generation works 2022-02-24 09:43:19 -05:00
maureenlholland 1c4b333359
Deprecate lazy_img in favour of loading=lazy (fixes #8752) (#11033) 2022-01-05 13:32:37 +00:00
Rob Hudson f5c98cf462
Remove old L10n machinery (#10660) 2021-11-17 11:18:52 -08:00
Steve Jalim a8ed6ae9c4
Add pre-commit hook for including the MPLv2 in all source code files (#10617)
* 10614: Add pre-commit hook for including the MPLv2

Adds to Python, JS, SCSS, Jinja HTML, Fluent templates and shell scripts

Note that the order of application of the hooks is important - we want to add a missing license before we check the formatting of files

* 10614: Update MPLv2 comments on all templates to match standard format produced by pre-commit hook

* Updates existing MPLv2 text to use a https URL
* Amend a handful of Fluent templates that used a token instead of the string "Mozilla" - this standardised things; translation was not used or needed
* Add missing MPLv2 where needed
* Update three tests that regressed with these changes, above

* 10614: Update pre-commit config to not add MPL to JS libraries; Remove MPL from the four files which should not have had it
2021-10-22 13:09:44 +01:00
Paul McLanahan 228c6a9213 Fix docs formating errors and warnings from Sphinx 2021-09-13 10:24:56 -04:00
Alex Gibson dfe5105721
Make simplified download button (Fixes #8860) (#9345)
* Make simplified download button (Fixes #8860)
2020-09-21 17:37:14 -07:00
chaitanyamogal dc806637a6 updated index.rst
Fixed typo sourcy to source
2020-06-23 10:43:26 +01:00
Craig Cook 712a49ede3
Make fundraising banner a more permanent feature (Fixes #7185) (#8605) 2020-03-05 09:21:29 -08:00
Amy Churchwell 298771b19d Remove tabzilla. (Fixes #8301) (#8303) 2019-12-16 09:13:49 +00:00
Paul McLanahan a8114a786e Add Fluent L10n system and port the Mission page to use it
* Fix dict cache default timeout
* Add fallback strings and checking for translations in template
* Add ftl alias and ftl_lazy for use in py files
* Move git repos and add fluent to l10n_update
* Add percent_translated and required_messages to the l10n object
* Add management commands for converting en-US .lang file and templates
* Add command to convert en-US .lang file to .ftl file
* Using data from above command add a command that will convert a
template to use the .ftl strings
* Update the l10n_update command to update both external l10n repos
* Convert the /mission/ page to Fluent
* Add command to convert .lang translations to .ftl
* Copy en .ftl file when porting translations
  * Removes the original string hash comments as well.
* Add Fluent docs.
* Add indentation and key sorting to metadata JSON output
* Add FTL file linting command
* Update mission template for FTL and remove FTL specific template
* Set l10n cache to 10s when DEBUG=True
* Fix and add tests for get_l10n_path
* Fix some style mistakes in docs and code
* Support multiline group comments for required strings

fix #7725, fix #7822, and fix #7726
2019-10-28 16:46:11 +00:00
Justin Crawford 5d9a5b38bc Browser Support Page added
Fixes #7389
2019-08-13 08:54:59 +01:00
Alex Gibson a8fb636eec Make 'measuring installs' a repeatable, modular piece of code (Fixes #6871) (#6889)
* Make 'measuring installs' a repeatable, modular piece of code (Fixes #6871)
2019-03-11 10:09:00 -07:00
Paul McLanahan 14ca66ea78 Use external data for home page content cards
This switches the current English home page to display
content cards from data in the mozmeao/www-admin repo.

Fix #6124
2019-01-22 18:40:02 +00:00
Paul McLanahan aedbcf65df Add ADRs to Sphinx docs (#6692)
* Install Sphinx markdown deps
* Configure Sphinx with markdown support
* Switch to RTD Sphinx theme for local too
* Fix a bunch of Sphinx warnings for docs
* Separate docs deps into a requirements file for RTD to use
2019-01-09 18:21:23 -06:00
Stephanie Hobson 03fa348e0b Update docs on funnelcakes, analytics, and a/b tests (#6272) 2018-10-22 17:11:51 -04:00
Stephanie Hobson 13322fff4a Add a/b testing to docs 2018-08-09 18:59:35 +01:00
Paul McLanahan ad71a2eac6 Update docs to reflect current reality
* Add bootstrap.sh command and use in install docs
2018-04-02 09:01:13 -05:00
James Lorence 57ed162bbe Add analytics page to Read The Docs 2016-06-28 13:28:11 -07:00
alexgibson 12b899161c Switch to using Gulp as a task runner and update dev dependencies 2016-04-25 11:42:26 +01:00
Alex Gibson 824523d3b8 Remove Cloud9, Vagrant and legacy PHP docs and associated files (closes #3944) 2016-03-11 10:46:54 +00:00
Alex Gibson 9e1650231e Add documentation for Bedrock deployment pipeline configuration 2016-03-08 14:15:36 +00:00
Alex Gibson 7fa53235b1 [fix bug 1244888] Add FxA / firstrun setup info to the bedrock documentation 2016-02-04 09:31:41 -08:00
Paul McLanahan 60a7692078 Bug 1200354: Add tests for new bits of redirects app.
Add redirects docs and more tests.
2015-09-16 16:12:14 -07:00
Alex Gibson 41be1a766e [fix bug 1158842] Add front-end functional tests to bedrock using CasperJS 2015-06-11 10:01:12 +01:00
Alex Gibson 1dd5036598 [bug 1146982] Add 'Send to Device' macro 2015-05-26 10:03:01 +01:00
Josh Mize b0a1374ba8 Remove some leftover playdoh references 2015-05-11 13:17:24 -05:00
Jon Petto c893a48932 Add docs for mozilla-accordion.js. Bug 1007717.
- Add GA tracking for accordion collapse event.
- Move ARIA from HTML to JS.
- Refactor mozilla-accordion.less to rely on new
  (non-ARIA) HTML hooks.
- Disallow direct child tabs - all accordion tabs/panels
  must be in a separate wrapper element.
2014-08-19 12:37:28 -05:00
Josh Mize bc76bafe5a Add Cloud9 quickstart script and docs 2014-08-15 05:44:42 +00:00
Alex Gibson 03bdd1760d [no bug] Update bedrock docs for Mozilla.UITour 2014-08-01 15:09:35 +01:00
Jon Petto 53e276b147 Improve mozilla-pager.js. Bug 966702.
- Remove unused 'pager' JS bundle.
- Add docs pages for mozilla-pager (Bug 1007717).
- Add mozilla-pager.js demo page to styleguide (dev only).
- Add ARIA support for mozilla-pager.
- Add ability to create/destroy pagers.
- General performance/cleanup of mozilla-pager.js.
- Updated /firefox/desktop/tips/, /firefox/partners,
  /firefox/os/devices/, and /firefox/channel/ to use
  newer pager features.
- Re-structured hider CSS - .visually-hidden is now a proper
  class (not just a mixin), and .hidden sets display: none;
2014-06-25 14:43:46 -05:00
Alex Gibson 01afe45125 [fix bug 986052] Add documentation for running Mozilla.UITour on Bedrock 2014-03-26 10:37:12 +00:00
Alex Gibson 940ce2973f Add Gruntfile.js to bedrock 2014-01-24 14:02:44 +00:00
Benjamin Sternthal 93b97566ef Added in docs for vagrant install. These should have been in my other PR, but during
the rework of it I forgot to add these.
2013-08-21 08:36:57 -07:00
Dan Poirier b0f79bbdc0 Port newsletter preferences to Bedrock
- Create newsletter app and move hacks.mozilla.org.html there
- Set up to display Django messages to the user.
- Make displaying most of the information on the page conditional on having a formset, so we can still use the same template when some error occurs in processing.
- Handle errors by displaying translated messages to the user. Also use Playdoh logging to log errors and debug information.
- If no token given, or token is invalid, let user supply an email
address and sign up for newsletters.
2013-06-04 07:54:07 -04:00
Anthony Ricaud 641ead0734 Import Tabzilla into Bedrock
- Make it localisable
- Add redirects for backwards compatibility
- Adds a js_escape filter

bug 744271
2012-12-11 16:03:05 +01:00
Gervase Markham 0cc8e6cd35 Update license to MPL 2. 2012-11-28 18:26:46 +01:00
Anthony Ricaud 4d72caf42b Add documentation about how to contribute
- Git workflow
- Server setup

fix bug 815144
2012-11-27 12:04:54 +01:00
Anthony Ricaud 2eab3d468f Cleanup docs
- Fixes some errors
- Replaces paraphrasing of the homepage with a 2-depths ToC
- Links to the coding document

bug 815144
2012-11-27 12:04:19 +01:00
James Long 436fbd6250 add install docs 2012-03-15 13:51:51 -04:00
Alexis Metaireau eca0b610fe Put the installation documentation in docs. 2012-03-05 18:52:23 +01:00
Anthony Ricaud f35f9edf19 Fix links in README and add a step for installing 2012-02-03 01:00:41 +01:00
James Long 31e04af69d added install docs 2012-01-09 18:52:31 -05:00