From 612eced3bf18e8dff94023ff5f2e76dfcd17064b Mon Sep 17 00:00:00 2001 From: Jose Salvatierra Date: Tue, 26 Apr 2022 10:28:17 +0100 Subject: [PATCH 1/4] Use fork of vuepress-plugin-plausible with outbound link tracking and remove implementation in component. --- .../.vuepress/components/BottomCallout.vue | 17 ++--------------- package-lock.json | 11 +++++------ package.json | 2 +- 3 files changed, 8 insertions(+), 22 deletions(-) diff --git a/curriculum/.vuepress/components/BottomCallout.vue b/curriculum/.vuepress/components/BottomCallout.vue index d438ec2e..0991b6d9 100644 --- a/curriculum/.vuepress/components/BottomCallout.vue +++ b/curriculum/.vuepress/components/BottomCallout.vue @@ -1,19 +1,6 @@ @@ -89,7 +76,7 @@ export default {

- + Get the video course

diff --git a/package-lock.json b/package-lock.json index 52ce868d..c02c6dab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,7 +7,7 @@ "dependencies": { "markdown-it-footnote": "^3.0.3", "markdown-it-task-lists": "^2.1.1", - "vuepress-plugin-plausible": "0.0.2" + "vuepress-plugin-plausible": "github:tecladocode/vuepress-plugin-plausible" }, "devDependencies": { "surge": "^0.21.7", @@ -14395,8 +14395,8 @@ }, "node_modules/vuepress-plugin-plausible": { "version": "0.0.2", - "resolved": "https://registry.npmjs.org/vuepress-plugin-plausible/-/vuepress-plugin-plausible-0.0.2.tgz", - "integrity": "sha512-EbfcZZpsGb46K2C9zrhQZaj1fRCT4uZFDu9XRxecuFrqGX84dBTquTwRF/4SMUes3m7iAKVaK/qmZaSG08P1uA==", + "resolved": "git+ssh://git@github.com/tecladocode/vuepress-plugin-plausible.git#d28b1963ce25233b6eb1f3566d5c60acf47f8f4f", + "license": "MIT", "engines": { "node": ">=8" } @@ -26827,9 +26827,8 @@ } }, "vuepress-plugin-plausible": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/vuepress-plugin-plausible/-/vuepress-plugin-plausible-0.0.2.tgz", - "integrity": "sha512-EbfcZZpsGb46K2C9zrhQZaj1fRCT4uZFDu9XRxecuFrqGX84dBTquTwRF/4SMUes3m7iAKVaK/qmZaSG08P1uA==" + "version": "git+ssh://git@github.com/tecladocode/vuepress-plugin-plausible.git#d28b1963ce25233b6eb1f3566d5c60acf47f8f4f", + "from": "vuepress-plugin-plausible@https://github.com/tecladocode/vuepress-plugin-plausible" }, "vuepress-plugin-smooth-scroll": { "version": "0.0.3", diff --git a/package.json b/package.json index d42201ea..256c8c1e 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,6 @@ "dependencies": { "markdown-it-footnote": "^3.0.3", "markdown-it-task-lists": "^2.1.1", - "vuepress-plugin-plausible": "0.0.2" + "vuepress-plugin-plausible": "github:tecladocode/vuepress-plugin-plausible" } } From a8c3dc4e78322a1d02840678c7ff8c2dd15a1f2d Mon Sep 17 00:00:00 2001 From: Jose Salvatierra Date: Tue, 26 Apr 2022 10:30:58 +0100 Subject: [PATCH 2/4] Use fork of vuepress-plugin-plausible with outbound link tracking and remove implementation in component. --- package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index c02c6dab..12457974 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26828,7 +26828,7 @@ }, "vuepress-plugin-plausible": { "version": "git+ssh://git@github.com/tecladocode/vuepress-plugin-plausible.git#d28b1963ce25233b6eb1f3566d5c60acf47f8f4f", - "from": "vuepress-plugin-plausible@https://github.com/tecladocode/vuepress-plugin-plausible" + "from": "vuepress-plugin-plausible@github:tecladocode/vuepress-plugin-plausible" }, "vuepress-plugin-smooth-scroll": { "version": "0.0.3", From b626f5c91fa9af1caaf7ea111f62bff0ab3de56b Mon Sep 17 00:00:00 2001 From: Jose Salvatierra Date: Tue, 26 Apr 2022 10:32:42 +0100 Subject: [PATCH 3/4] Add outboundLinkTracking to plausible plugin options. --- curriculum/.vuepress/config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/curriculum/.vuepress/config.js b/curriculum/.vuepress/config.js index c7e294f7..6874d5a4 100644 --- a/curriculum/.vuepress/config.js +++ b/curriculum/.vuepress/config.js @@ -95,5 +95,10 @@ module.exports = { md.use(require("markdown-it-task-lists")); }, }, - plugins: [["plausible", { domain: "python-web.teclado.com" }]], + plugins: [ + [ + "plausible", + { domain: "python-web.teclado.com", outboundLinkTracking: true }, + ], + ], }; From 89d59df330d4d01011445b0edf6e43e2d3d22b57 Mon Sep 17 00:00:00 2001 From: Jose Salvatierra Date: Tue, 26 Apr 2022 10:34:52 +0100 Subject: [PATCH 4/4] Replace j2 by jinja2 in code block to remove warning that language j2 doesn't exist. --- curriculum/section11/lectures/01_jinja_includes/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/section11/lectures/01_jinja_includes/README.md b/curriculum/section11/lectures/01_jinja_includes/README.md index 91a419bd..dd0d952c 100644 --- a/curriculum/section11/lectures/01_jinja_includes/README.md +++ b/curriculum/section11/lectures/01_jinja_includes/README.md @@ -280,7 +280,7 @@ templates The partial then would just import the macro and use it, like this: -```j2 +```jinja2 {% from "macros/item_list.html" import item_list %} {{ item_list(items) }}