Skip to content

Commit

Permalink
feat: lou
Browse files Browse the repository at this point in the history
Adds Lou
  • Loading branch information
PatelN123 authored Feb 19, 2022
2 parents 692baf2 + d88b888 commit 15e92b4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
8 changes: 8 additions & 0 deletions Website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ const config = {
projectName: 'notes',
trailingSlash: true,
themeConfig: {
lou: {
src: "//run.louassist.com/v2.5.1-m?id=486134702173",
},
umami: {
websiteid: "67a6f4d2-2b85-4678-8972-d5d43a6216ab",
src: "https://analytics.notes.nayanpatel.net/umami.js",
Expand Down Expand Up @@ -198,6 +201,11 @@ const config = {
],
],
plugins: [
[
'docusaurus-plugin-lou',
{
},
],
[
'docusaurus-plugin-umami',
{
Expand Down
1 change: 1 addition & 0 deletions Website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"clsx": "^1.1.1",
"docusaurus-plugin-clarity": "^2.0.0",
"docusaurus-plugin-help-widget": "^2.0.0",
"docusaurus-plugin-lou": "^1.0.0",
"docusaurus-plugin-sass": "^0.2.1",
"docusaurus-plugin-umami": "^2.0.0",
"file-loader": "^6.2.0",
Expand Down
4 changes: 2 additions & 2 deletions Website/src/theme/DocItem/DocsRating.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const DocsRating = ({ label }) => {
className="sub-rating pagination-nav__link padding-vert--sm padding-horiz--md margin-right--sm user-options"
style={{ flexGrow: "unset" }}
onClick={() => giveFeedback(1)}
onclick={() => umami('negative')}
onclick={() => LOU.track('Negative')}
>
<svg
className="i_thumbsup"
Expand All @@ -66,7 +66,7 @@ const DocsRating = ({ label }) => {
id= "bttn01"
style={{ flexGrow: "unset" }}
onClick={() => giveFeedback(0)}
onclick={() => umami('positive')}
onclick={() => LOU.track('Positive')}
>
<svg
className="i_thumbsdown"
Expand Down
5 changes: 5 additions & 0 deletions Website/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4899,6 +4899,11 @@ docusaurus-plugin-help-widget@^2.0.0:
resolved "https://registry.yarnpkg.com/docusaurus-plugin-help-widget/-/docusaurus-plugin-help-widget-2.0.0.tgz#e3f342a20f201b6a1ab9c68690c317a199aa2dbf"
integrity sha512-4aWKv/ZUr+lxVicaLAq46wqPnpRZLrYmeL/rBYlSUB8IWDG788Scp7KT2isSU8zmN0/aq7MOFUGSnANUXoDACw==

docusaurus-plugin-lou@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/docusaurus-plugin-lou/-/docusaurus-plugin-lou-1.0.0.tgz#b5093d7f2dafb93270a9b1c8e0e1a487978be0c8"
integrity sha512-v3xzR24dQjUh0gSuJIiiGaWj7trQtW+NRhpCqp9Vqlx+XUZuwNbzn+11OdC3nRjV6uqABl7E657U8BSvfMmqAw==

docusaurus-plugin-sass@^0.2.1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/docusaurus-plugin-sass/-/docusaurus-plugin-sass-0.2.1.tgz#673c6b6ac00b581e8fb0baab22f2b3766735aafc"
Expand Down

0 comments on commit 15e92b4

Please sign in to comment.