zulip/docs/subsystems
Daniil Fadeev 2f203f4de1 emails: Inline CSS in emails in build_email.
Previously, we had an architecture where CSS inlining for emails was
done at provision time in inline_email_css.py. This was necessary
because the library we were using for this, Premailer, was extremely
slow, and doing the inlining for every outgoing email would have been
prohibitively expensive.

Now that we've migrated to a more modern library that inlines the
small amount of CSS we have into emails nearly instantly, we are able
to remove the complex architecture built to work around Premailer
being slow and just do the CSS inlining as the final step in sending
each individual email.

This has several significant benefits:

* Removes a fiddly provisioning step that made the edit/refresh cycle
  for modifying email templates confusing; there's no longer a CSS
  inlining step that, if you forget to do it, results in your testing a
  stale variant of the email templates.
* Fixes internationalization problems related to translators working
  with pre-CSS-inlined emails, and then Django trying to apply the
  translators to the post-CSS-inlined version.
* Makes the send_custom_email pipeline simpler and easier to improve.

Signed-off-by: Daniil Fadeev <fadeevd@zulip.com>
2023-04-05 12:22:29 -07:00
..
accessibility.md docs: Reorganize sections and pages about contributing to Zulip. 2022-08-25 11:24:57 -07:00
analytics.md docs: Fix outdated description of where stats views are. 2023-03-02 13:38:08 -08:00
api-release-checklist.md docs: Clean redundant relative links. 2022-02-24 16:12:18 -08:00
billing.md docs: Add missing space to compound verbs “back up”, “log in”, etc. 2022-02-07 19:20:54 -08:00
caching.md run-dev: Drop .py from script name. 2023-03-03 18:02:37 -08:00
client.md docs: Clean redundant relative links. 2022-02-24 16:12:18 -08:00
dependencies.md dependencies: Switch to pnpm. 2023-03-20 15:48:29 -07:00
django-upgrades.md docs: Apply sentence single-spacing from Prettier. 2021-09-08 12:06:24 -07:00
email.md emails: Inline CSS in emails in build_email. 2023-04-05 12:22:29 -07:00
emoji.md settings: Explain that Google blob emojis are deprecated. 2022-10-04 12:29:35 -07:00
events-system.md node_tests: Move to web/tests. 2023-02-23 16:04:17 -08:00
full-text-search.md docs: Rename "operators" to "filters". 2022-12-09 13:52:13 -08:00
hashchange-system.md web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00
hotspots.md web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00
html-css.md dependencies: Switch to pnpm. 2023-03-20 15:48:29 -07:00
index.md docs: Reorganize sections and pages about contributing to Zulip. 2022-08-25 11:24:57 -07:00
input-pills.md web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00
logging.md docs: Change extensions from .js to .ts for some filenames. 2023-03-12 15:17:53 -07:00
management-commands.md actions: Delete zerver.lib.actions. 2022-04-14 17:14:38 -07:00
markdown.md node_tests: Move to web/tests. 2023-02-23 16:04:17 -08:00
notifications.md web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00
performance.md docs: Convert .html#fragment links to .md#fragment. 2022-02-28 16:28:31 -08:00
pointer.md docs: Fix many spelling mistakes. 2022-02-07 18:51:06 -08:00
presence.md web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00
queuing.md run-dev: Drop .py from script name. 2023-03-03 18:02:37 -08:00
realms.md docs: Move OPEN_REALM_CREATION doc section to multiple-organizations.md. 2022-10-31 17:56:45 -07:00
release-checklist.md release-checklist: Update blog post checklist for Astro. 2022-12-07 17:41:21 -08:00
schema-migrations.md docs: Document handling noop migrations. 2022-10-31 14:15:00 -07:00
sending-messages.md web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00
settings.md contributor docs: Rename "Upgrade or modify Zulip" -> "Upgrade Zulip". 2023-01-27 12:41:56 -08:00
slash-commands.md web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00
typing-indicators.md docs: Change extensions from .js to .ts for some filenames. 2023-03-12 15:17:53 -07:00
unread_messages.md docs: Remove legacy references to "topic" as "subject". 2022-10-04 11:59:23 -07:00
widgets.md web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00