Directory listing HTML for
go-btfsgateways
NOTE: This repo is not intended to be used as a standalone project! This code is used by the gateway code within go-btfs. In the long term, once the the gateway is extracted from go-btfs, the code in this repo will be merged into that gateway package.
When making updates to the directory listing page template, please note the following:
- Make your changes to the (human-friendly) source documents in the
srcdirectory - Before testing or releasing, make sure to run the build script to update the minified version in the top-level directory:
> npm run build- To get your updates into
go-btfs, you'll need to do the following:- Cut a new, appropriately versioned release of
dir-index-html(don't forget to bump the version number inpackage.json) - Make a PR against
go-btfsfollowing these instructions for updating the directory index
- Cut a new, appropriately versioned release of
- Make sure you have Go installed
- 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.
MIT