From b7f318836efa3df48bbdf05642d4deace838c5d2 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Thu, 10 Jul 2025 10:58:27 -0400 Subject: [PATCH] Add Netlify configuration and docs --- README.md | 3 ++- netlify.toml | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 netlify.toml diff --git a/README.md b/README.md index be0009d..5cf6266 100644 --- a/README.md +++ b/README.md @@ -230,7 +230,8 @@ To make DocForge truly user-friendly, include these instructions in the starter command = "npm run build" publish = "_site" ``` - - Git push triggers deploys; previews for PRs. + - Connect the repo to Netlify by selecting **New site from Git** in your Netlify dashboard and picking this repository. Netlify will read `netlify.toml` so no extra setup is required. Once linked, pushes to `main` automatically build and deploy the site and pull requests get preview URLs. + - Ensure the generated `_site/` folder is git-ignored (see `.gitignore`) so deployments always use a fresh build. - **Other Hosts**: Upload `_site/` to GitHub Pages, Vercel, etc. ## Extensibility Roadmap diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..d59e70a --- /dev/null +++ b/netlify.toml @@ -0,0 +1,3 @@ +[build] + command = "npm run build" + publish = "_site"