Skip to content

Commit

Permalink
fix environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
yashovardhan committed Nov 25, 2022
1 parent 72ed81c commit 55f12fc
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 7 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
baseUrl = "/"
3 changes: 1 addition & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
const path = require("path");

require('dotenv').config()
const githubOrg = "web3auth";
const githubRepo = "web3auth-docs";
const githubOrgUrl = `https://github.com/${githubOrg}`;
const githubRepoUrl = `${githubOrgUrl}/${githubRepo}`;
const githubDiscussionsUrl = `${githubOrgUrl}/${githubOrg}/discussions`;
const githubEditUrl = `${githubRepoUrl}/edit/master`;
const contactUrl = "https://calendly.com/web3auth/meeting-with-web3auth";
const mediumUrl = "https://medium.com/toruslabs";
const remarkMath = require("remark-math");
const rehypeKatex = require("rehype-katex");

Expand Down
16 changes: 16 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"@types/react-helmet": "^6.1.5",
"@types/react-router-dom": "^5.3.3",
"@typescript-eslint/parser": "^5.30.6",
"dotenv": "^16.0.3",
"eslint": "^8.19.0",
"eslint-plugin-markdown": "^2.2.1",
"eslint-plugin-mdx": "^1.17.0",
Expand Down
2 changes: 1 addition & 1 deletion plugins/docusaurus-plugin-guides/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = (context, options) => ({
const { createData, addRoute } = actions;
const guides = await createData("guides.json", JSON.stringify(content));
addRoute({
path: "/docs/guides",
path: (process.env.baseUrl || "/docs/") + "guides",
exact: true,
component: "@site/src/pages/guides",
modules: { guides },
Expand Down
2 changes: 1 addition & 1 deletion plugins/docusaurus-plugin-virtual-files/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = (context, options) => ({
const { createData, addRoute } = actions;
const files = await createData("files.json", JSON.stringify(content));
addRoute({
path: "/docs/integration-builder",
path: (process.env.baseUrl || "/docs/") + "integration-builder",
component: "@site/src/pages/integration-builder",
modules: {
files,
Expand Down
4 changes: 2 additions & 2 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,12 +390,12 @@ module.exports = {
{
type: "link",
label: "Troubleshooting",
href: "/docs/troubleshooting/webpack-issues",
href: (process.env.baseUrl || "/docs/") + "troubleshooting/webpack-issues",
},
{
type: "link",
label: "Server Side Verification",
href: "/docs/server-side-verification/",
href: (process.env.baseUrl || "/docs/") + "server-side-verification/",
},
{
type: "link",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/guides/android.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Using Web3Auth's Android SDK
image: "/docs/contents/guides/banners/android.png"
image: "/contents/guides/banners/android.png"
description: Learn how to use Web3Auth Plug and Play Core SDK in your Android app
type: guide
tags: [mobile, android, whitelabel, custom authentication, dapp share]
Expand Down

0 comments on commit 55f12fc

Please sign in to comment.