From ba88baf0584e958a09f331956536e44bd514f75b Mon Sep 17 00:00:00 2001 From: bvn13 Date: Sun, 30 Apr 2023 00:58:10 +0300 Subject: [PATCH] changed site to docs for github pages --- {site => docs}/.htaccess | 0 {site => docs}/app/index.css | 0 {site => docs}/app/index.css.map | 0 {site => docs}/app/index.js | 0 {site => docs}/app/index.js.map | 0 {site => docs}/favicon.ico | Bin {site => docs}/index.html | 0 {site => docs}/logo-big.png | Bin {site => docs}/logo192.png | Bin {site => docs}/logo512.png | Bin {site => docs}/manifest.json | 0 {site => docs}/q/agile-compass.json | 0 {site => docs}/q/template.json | 0 {site => docs}/robots.txt | 0 survey/build.gradle | 10 +++++----- 15 files changed, 5 insertions(+), 5 deletions(-) rename {site => docs}/.htaccess (100%) rename {site => docs}/app/index.css (100%) rename {site => docs}/app/index.css.map (100%) rename {site => docs}/app/index.js (100%) rename {site => docs}/app/index.js.map (100%) rename {site => docs}/favicon.ico (100%) rename {site => docs}/index.html (100%) rename {site => docs}/logo-big.png (100%) rename {site => docs}/logo192.png (100%) rename {site => docs}/logo512.png (100%) rename {site => docs}/manifest.json (100%) rename {site => docs}/q/agile-compass.json (100%) rename {site => docs}/q/template.json (100%) rename {site => docs}/robots.txt (100%) 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") }