diff --git a/site/.eleventy.js b/site/.eleventy.js index 6a560d07..602ac779 100644 --- a/site/.eleventy.js +++ b/site/.eleventy.js @@ -52,6 +52,7 @@ module.exports = function (eleventyConfig) { eleventyConfig.addWatchTarget('./.tmp/style.css') eleventyConfig.addPassthroughCopy({ './.tmp/style.css': './style.css' }) eleventyConfig.addPassthroughCopy({ './public': './' }) + eleventyConfig.addPassthroughCopy('./src/**/*.{gif,jpg,png,svg}') eleventyConfig.addCollection('pages', (collection) => collection.getFilteredByGlob('pages/*.md') diff --git a/site/package.json b/site/package.json index 0883f162..3c46e89c 100644 --- a/site/package.json +++ b/site/package.json @@ -11,7 +11,7 @@ "yarn": ">=1.22" }, "scripts": { - "dev": "npm-run-all clean -p dev:*", + "dev": "npm run clean && npm run dev:css | npm run dev:11ty", "dev:11ty": "eleventy --serve --watch --quiet", "dev:css": "postcss ./src/styles.css -o .tmp/style.css -w", "build": "cross-env NODE_ENV=production run-s clean build:* --print-label", diff --git a/site/src/docs/configuration/email/email_auth.png b/site/src/docs/configuration/email/images/email_auth.png similarity index 100% rename from site/src/docs/configuration/email/email_auth.png rename to site/src/docs/configuration/email/images/email_auth.png diff --git a/site/src/docs/configuration/email/email_notifications.png b/site/src/docs/configuration/email/images/email_notifications.png similarity index 100% rename from site/src/docs/configuration/email/email_notifications.png rename to site/src/docs/configuration/email/images/email_notifications.png diff --git a/site/src/docs/configuration/email/index.md b/site/src/docs/configuration/email/index.md index e01160b3..e399cd31 100644 --- a/site/src/docs/configuration/email/index.md +++ b/site/src/docs/configuration/email/index.md @@ -13,14 +13,14 @@ This documentation describes how to enable the email-related capabilities of Rem enabling this will let the user log in using their emails: - ![Email authentication](email_auth.png?raw=true) + ![Email authentication](images/email_auth.png) - email notifications for any users except anonymous: GitHub or Google or Twitter or any other kind of user gets the ability to get email notifications about new replies to their comments (and any of the replies down the tree): - ![Email notifications subscription](email_notifications.png?raw=true) + ![Email notifications subscription](images/email_notifications.png) ## Setup email server connection @@ -224,6 +224,7 @@ Remark42 uses golang templates for email templating. Templates are located in `b For getting access to the files you can use package `templates` from `backend/app/templates` Now we have following templates: + - `email_confirmation_login.html.tmpl` – used for confirmation of login - `email_confirmation_subscription.html.tmpl` – used for confirmation of subscription – `email_reply.html.tmpl` – used for sending replies to user comments (when user subscribed to it) and for noticing admins about new comments on a site