From a681445ab31631abe53259cec6cd9595520c66f1 Mon Sep 17 00:00:00 2001 From: Akash Singh Date: Sat, 9 Mar 2024 16:12:09 +0530 Subject: [PATCH] Shows all my github followers on about me page --- documentation/.env.test | 1 + documentation/docusaurus.config.js | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 13 deletions(-) create mode 100644 documentation/.env.test diff --git a/documentation/.env.test b/documentation/.env.test new file mode 100644 index 00000000..bd8ca560 --- /dev/null +++ b/documentation/.env.test @@ -0,0 +1 @@ +REACT_APP_FOLLOWERS_ACCESS_KEY=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 \ No newline at end of file diff --git a/documentation/docusaurus.config.js b/documentation/docusaurus.config.js index ab079a66..a390235f 100644 --- a/documentation/docusaurus.config.js +++ b/documentation/docusaurus.config.js @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -require("dotenv").config({path: "./.env"}); +require("dotenv").config(); const redirectJson = require("./redirects.json"); const tutorialData = require("./tutorial-units"); @@ -123,18 +123,18 @@ const siteConfig = { include: ["**/*.{js}"], }, ], - // [ - // 'docusaurus-plugin-dotenv', - // { - // path: "./.env", // The path to your environment variables. - // safe: false, // If false ignore safe-mode, if true load './.env.example', if a string load that file as the sample - // systemvars: false, // Set to true if you would rather load all system variables as well (useful for CI purposes) - // silent: false, // If true, all warnings will be suppressed - // expand: false, // Allows your variables to be "expanded" for reusability within your .env file - // defaults: false, // Adds support for dotenv-defaults. If set to true, uses ./.env.defaults - // ignoreStub: false - // } - // ], + [ + 'docusaurus-plugin-dotenv', + { + path: "./.env.test", // The path to your environment variables. + safe: false, // If false ignore safe-mode, if true load './.env.example', if a string load that file as the sample + systemvars: false, // Set to true if you would rather load all system variables as well (useful for CI purposes) + silent: false, // If true, all warnings will be suppressed + expand: false, // Allows your variables to be "expanded" for reusability within your .env file + defaults: false, // Adds support for dotenv-defaults. If set to true, uses ./.env.defaults + ignoreStub: false + } + ], async function tailwindcss() { return { name: "docusaurus-tailwindcss",