diff --git a/docusaurus/.gitignore b/docusaurus/.gitignore index f26c053..69b1d40 100644 --- a/docusaurus/.gitignore +++ b/docusaurus/.gitignore @@ -8,10 +8,6 @@ .docusaurus .cache-loader -# Resources -/blog -/docs - # Misc .DS_Store .env.local diff --git a/docusaurus/add-remote-resources.js b/docusaurus/add-remote-resources.js index 29e3fad..6a22180 100755 --- a/docusaurus/add-remote-resources.js +++ b/docusaurus/add-remote-resources.js @@ -1,8 +1,14 @@ const shell = require('shelljs'); const tmp = require('tmp'); -// Define the repository URL and the target directory -const REPO_URL = "https://github.com/devtodollars/resources.git"; +// Check for the environment variable and use it if available, otherwise exit +const REPO_URL = process.env.REMOTE_REPO_URL; +if (!REPO_URL) { + console.log("Environment variable RESOURCE_REPO_URL is not set. Exiting."); + process.exit(); +} + +// Define target repo const TARGET_DIR = shell.pwd().stdout; // Create a temporary directory for cloning diff --git a/docusaurus/docs/intro.md b/docusaurus/docs/intro.md index 45e8604..984aa11 100644 --- a/docusaurus/docs/intro.md +++ b/docusaurus/docs/intro.md @@ -1,5 +1,6 @@ --- sidebar_position: 1 +slug: / --- # Tutorial Intro diff --git a/docusaurus/static/img/docusaurus.png b/docusaurus/static/img/docusaurus.png new file mode 100644 index 0000000..f458149 Binary files /dev/null and b/docusaurus/static/img/docusaurus.png differ