diff --git a/site/.htaccess b/docs/.htaccess similarity index 100% rename from site/.htaccess rename to docs/.htaccess diff --git a/site/app/index.css b/docs/app/index.css similarity index 100% rename from site/app/index.css rename to docs/app/index.css diff --git a/site/app/index.css.map b/docs/app/index.css.map similarity index 100% rename from site/app/index.css.map rename to docs/app/index.css.map diff --git a/site/app/index.js b/docs/app/index.js similarity index 100% rename from site/app/index.js rename to docs/app/index.js diff --git a/site/app/index.js.map b/docs/app/index.js.map similarity index 100% rename from site/app/index.js.map rename to docs/app/index.js.map diff --git a/site/favicon.ico b/docs/favicon.ico similarity index 100% rename from site/favicon.ico rename to docs/favicon.ico diff --git a/site/index.html b/docs/index.html similarity index 100% rename from site/index.html rename to docs/index.html diff --git a/site/logo-big.png b/docs/logo-big.png similarity index 100% rename from site/logo-big.png rename to docs/logo-big.png diff --git a/site/logo192.png b/docs/logo192.png similarity index 100% rename from site/logo192.png rename to docs/logo192.png diff --git a/site/logo512.png b/docs/logo512.png similarity index 100% rename from site/logo512.png rename to docs/logo512.png diff --git a/site/manifest.json b/docs/manifest.json similarity index 100% rename from site/manifest.json rename to docs/manifest.json diff --git a/site/q/agile-compass.json b/docs/q/agile-compass.json similarity index 100% rename from site/q/agile-compass.json rename to docs/q/agile-compass.json diff --git a/site/q/template.json b/docs/q/template.json similarity index 100% rename from site/q/template.json rename to docs/q/template.json diff --git a/site/robots.txt b/docs/robots.txt similarity index 100% rename from site/robots.txt rename to docs/robots.txt diff --git a/survey/build.gradle b/survey/build.gradle index 4c83eda..71e5cdf 100644 --- a/survey/build.gradle +++ b/survey/build.gradle @@ -37,7 +37,7 @@ def copyTask = tasks.register("copyPublic", Copy) { dependsOn(yarn) mustRunAfter(yarn) from "public" - into "${buildDir}/../../site" + into "${buildDir}/../../docs" println("copied") } @@ -47,7 +47,7 @@ def rewriteContent = tasks.register("rewriteFileContent") { inputs.dir("public") doLast { def publicPath = "" - def path = "${buildDir}/../../site" + def path = "${buildDir}/../../docs" ant.replaceregexp(match: '%PUBLIC_URL%', replace: publicPath, flags: 'g', byline: true) { fileset(dir: path, includes: 'index.html,manifest.json') @@ -59,14 +59,14 @@ def rewriteContent = tasks.register("rewriteFileContent") { // https://www.metachris.com/2021/04/starting-a-typescript-project-in-2021/ def buildTask = tasks.register("buildWebapp", NpxTask) { command = "esbuild" - args = ["src/index.tsx", "--bundle", "--sourcemap", "--outfile=${buildDir}/../../site/app/index.js"] + args = ["src/index.tsx", "--bundle", "--sourcemap", "--outfile=${buildDir}/../../docs/app/index.js"] dependsOn(rewriteContent) mustRunAfter(rewriteContent) inputs.dir(fileTree("src").exclude("**/*.test.js").exclude("**/*.spec.js").exclude("**/__tests__/**/*.js")) inputs.dir("node_modules") inputs.dir("public") - outputs.dir("${buildDir}/../../site") - environment = ["BUILD_PATH": "${buildDir}/../../site"] + outputs.dir("${buildDir}/../../docs") + environment = ["BUILD_PATH": "${buildDir}/../../docs"] println("built") }