Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email + Upload Plugins and Providers pages #992

Merged
merged 79 commits into from
Jul 13, 2022

Conversation

gpene
Copy link
Contributor

@gpene gpene commented Jul 12, 2022

@pwizla / @StrapiShaun All 4 pending branches merged here for final link checks, edits, etc.

@pwizla pwizla added pr: new content PRs for new product features or new documentation sections target: v4 Documentation PRs/issues targeting content from docs.strapi.io (main branch). size: large If the PR includes 1+ file(s) with a total of 50+ lines of text or 100+ lines of code labels Jul 12, 2022
@pwizla pwizla added this to the 4.2.3 milestone Jul 12, 2022
Copy link
Collaborator

@pwizla pwizla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the work!

I added a few inline suggestions.

Also, I think we should take these points into consideration:

  • "Using providers" does not seem to be consistent with the other section names. I'd suggest "Providers". In this case, we should update the file name and the corresponding links.
  • Some links are broken. Please run yarn check-links locally and fix errors. Some links actually give 404s, some don't (the script is sometimes confused if you use .html instead of .md, as it's verifying raw markdown files, not the outputted HTML). I think it's important to make sure that the output of check-links is fine (i.e. "Checking passed") as we might automate this in the future and deployments would fail if errors are found. Also, it would be best to switch to absolute links (starting with /user-docs or /developer-docs) as it's more maintainable — if we move files, relative links (e.g. ../../my-link) will return 404s.
  • We should add a link to the Sentry documentation to the Strapi plugins introduction. Screenshot 2022-07-12 at 16 27 31. Let me know if you need any help with this 🤗

| `emailOptions` | Object that contains email options (`to`, `from`, `replyTo`, `cc`, `bcc`) except `subject`, `text` and `html` | object | `{}` |
| `emailTemplate` | Object that contains `subject`, `text` and `html` as [lodash string templates](https://lodash.com/docs/4.17.15#template) | object | `{}` |
| `data` | Object that contains the data used to compile the templates | object | `{}` |
The `sendTemplatedEmail()` is used to compose emails from a template. The function compiles the email from the available properties and then sends the email. To use the `sendTemplatedEmail()` function, define the `emailTemplate` object and add the function to a controller or service. The function calls the `emailTemplate` object, and can optionally call the `emailOptions` and `data` objects:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd recommend "The sendTemplatedEmail() function" or simply "sendTemplatedEmail()" to stay consistent with the rest of the documentation. WDYT?

@gpene
Copy link
Contributor Author

gpene commented Jul 12, 2022

@pwizla All points addressed except for this one since I wasn't sure about adding the Sentry logo to the PluginLinks component

@pwizla pwizla changed the base branch from main to release/4-2-3 July 12, 2022 16:03
@pwizla
Copy link
Collaborator

pwizla commented Jul 12, 2022

Thanks, @gpene, we'll handle the Sentry logo thing together.

FYI I've updated the target branch to release/4-2-3 in preparation for tomorrow's release. It does not impact the PR or its content :-)

@pwizla pwizla mentioned this pull request Jul 12, 2022
5 tasks
Copy link
Collaborator

@pwizla pwizla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the latest updates, LGTM!

@pwizla pwizla merged commit c821995 into release/4-2-3 Jul 13, 2022
@pwizla pwizla deleted the dev/plugins-providers-master branch July 13, 2022 12:40
pwizla added a commit that referenced this pull request Jul 13, 2022
* Update error-handling.md (#988)

camel case → lower camel case

* Bump to version 4.2.3

* Add warning callout for enum values (#984)

* Add warning callout for enum values

* Update wording to be more specific (dev feedback)

Co-authored-by: Jean-Sébastien Herbaux <[email protected]>

* Downgrade callout from danger to caution

Co-authored-by: Jean-Sébastien Herbaux <[email protected]>

* update link to public roadmap (#990)

* update link to public roadmap

From Product Board to Canny

* Update wording "our" → "the"

Co-authored-by: Pierre Wizla <[email protected]>

* Email + Upload Plugins and Providers pages (#992)

* fixed code snippets and added ts config

* added new introduction

* revised wording

* add tabs card

* Add code snippets for providers

* Reorg doc structure

* adds Using Providers page

* fix tabs

* rework text

* start programmatic use section

* Rework the email template section

* various changes

* Add code example for lifecycle hook in admin panel

* add temp links to new providers page

* delete configure the plugin

* change wording about SendMail

* finalize intro topics

* remove unused content

* Cleanup code examples and remove troubleshooting section

* comment out last section for now

* fix grammar

* add html tags to table

* small content edit

* Adding Sentry plugin doc

* fix tables

* fix controller code example

* updated some language

* update lifecycle hook section

* improve spelling an grammar

* improve misc things

* improve the introduction

* update table and misc improvements

* improved lifecycle hook text

* Fix email plugin caps

* fix

* Add missing closing </ul> that prevented VuePress rendering

* add bullet points

* remove unnecessary fragment

* rework intro

* Update based on feedback

* Update upload.md

* improved various parts

* add call out and fix titles

* misc improvements

* simplify wording

* fix code block file paths and header levels

* fixed various parts

* update node engines

* add spaces to empty object braces

* trim content

* shorten send func disc

* feedback updates

* add optional to table

* Add send function properties table

* updated send function table

* add spacing

* Update docs/developer-docs/latest/plugins/email.md

Co-authored-by: Pierre Wizla <[email protected]>

* updated minor wording + delint

* add space

* feedback revisions

* modify `send` properties table

* feedback

* feedback

* revisions

* fix links in admin panel config file

* delint

* minor fixes

* Update docs/developer-docs/latest/development/using-providers.md

Co-authored-by: Shaun Brown  <[email protected]>

* Update docs/developer-docs/latest/plugins/email.md

Co-authored-by: Pierre Wizla <[email protected]>

* Update docs/developer-docs/latest/plugins/email.md

* Feedback

* title fix

* add table

* Add Sentry to PluginLinks component

Co-authored-by: Shaun Brown <[email protected]>
Co-authored-by: Pierre Wizla <[email protected]>
Co-authored-by: Shaun Brown <[email protected]>
Co-authored-by: Pierre Wizla <[email protected]>

* Fix - → —

* Update Email example to include missing path

* Fix broken link

* Fix another broken link

* Update cross-link for compliance with style guide

Co-authored-by: Adegbola Stephen <[email protected]>
Co-authored-by: Jean-Sébastien Herbaux <[email protected]>
Co-authored-by: Victor Coisne <[email protected]>
Co-authored-by: Gabriel <[email protected]>
Co-authored-by: Shaun Brown <[email protected]>
Co-authored-by: Shaun Brown <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal PRs created by the Strapi core team pr: new content PRs for new product features or new documentation sections pr: updated content PRs updating existing documentation content size: large If the PR includes 1+ file(s) with a total of 50+ lines of text or 100+ lines of code source: Dev Docs PRs/issues targeting the Developer Docs target: v4 Documentation PRs/issues targeting content from docs.strapi.io (main branch).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants