kubo/assets/dir-index-html
Adin Schmahmann d59730f51e
Update Go version to 1.17 (#8815)
* remove building the pre-bundled plugins as shared objects in makefile

* chore: update go version to minimum of 1.17
2022-04-15 14:32:00 -04:00
..
src removed dir-index-html submodule 2021-11-18 14:28:13 +08:00
test Update Go version to 1.17 (#8815) 2022-04-15 14:32:00 -04:00
dir-index.html removed dir-index-html submodule 2021-11-18 14:28:13 +08:00
index.go removed dir-index-html submodule 2021-11-18 14:28:13 +08:00
knownIcons.txt removed dir-index-html submodule 2021-11-18 14:28:13 +08:00
package.json chore: cleanup after merging dir-index-html 2021-11-23 20:32:39 +01:00
README.md chore: cleanup after merging dir-index-html 2021-11-23 20:32:39 +01:00

dir-index-html

Directory listing HTML for go-ipfs gateways

Updating

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 and run npm run build
  2. Before testing or releasing, go to the top-level ./assets directory and make sure to run the go generate . script to update the bindata version

Testing

  1. Make sure you have Go installed
  2. Start the test server, which lives in its own directory:
> cd test
> go run .

This will listen on localhost:3000 and reload the template every time you refresh the page.

If you get a "no such file or directory" error upon trying go run ., make sure you ran npm run build to generate the minified artifact that the test is looking for.