diff --git a/README.md b/README.md index 01e6a4a10022cbe477dfcbe5f33e40a1bcbf1da0..c6d240bb1f7d022b9aca781d541bb56455c461e5 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ When making updates to the directory listing page template, please note the following: 1. Make your changes to the (human-friendly) source documents in the `src` directory -2. Before testing or releasing, make sure to run the build script to generate a minified version in the `dist` directory: +2. Before testing or releasing, make sure to run the build script to update the minified version in the top-level directory: ```bash > npm run build diff --git a/dist/dir-index.html b/dir-index.html similarity index 100% rename from dist/dir-index.html rename to dir-index.html diff --git a/package.json b/package.json index c0edb94e7f70728cc5261d696de253d5645eff7c..2390a11051fd7195797f9777cad6d04b0466abf4 100644 --- a/package.json +++ b/package.json @@ -18,10 +18,10 @@ "releaseCmd": "git commit -a -m \"gx publish $VERSION\"", "scripts": { "build": "npm run build:clean && npm run build:remove-style-links && npm run build:minify-wrap-css && npm run build:combine-html-css && npm run build:remove-unused", - "build:clean": "rm -rf ./dist/*", - "build:remove-style-links": "sed '/ ./dist/base-html.html", - "build:minify-wrap-css": "(echo \"\") > ./dist/minified-wrapped-style.html", - "build:combine-html-css": "sed '// r ./dist/minified-wrapped-style.html' ./dist/base-html.html > ./dist/dir-index.html", - "build:remove-unused": "rm ./dist/base-html.html && rm ./dist/minified-wrapped-style.html" + "build:clean": "rm dir-index.html", + "build:remove-style-links": "sed '/ ./base-html.html", + "build:minify-wrap-css": "(echo \"\") > ./minified-wrapped-style.html", + "build:combine-html-css": "sed '// r ./minified-wrapped-style.html' ./base-html.html > ./dir-index.html", + "build:remove-unused": "rm ./base-html.html && rm ./minified-wrapped-style.html" } } diff --git a/test/main.go b/test/main.go index 541404bc93c8791d24bc848fb2f156660b6ecf45..fc3208335c8492edec1b4f279943d4fca9f4b1b6 100644 --- a/test/main.go +++ b/test/main.go @@ -8,7 +8,7 @@ import ( "text/template" ) -const templateFile = "../dist/dir-index.html" +const templateFile = "../dir-index.html" // Copied from go-ipfs/core/corehttp/gateway_indexPage.go type listingTemplateData struct {