mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-10 10:47:51 +08:00
45 lines
1.8 KiB
Markdown
45 lines
1.8 KiB
Markdown
# dir-index-html
|
|
|
|
[](https://protocol.ai)
|
|
[](https://ipfs.io/)
|
|
[](https://matrix.to/#/room/#ipfs:matrix.org)
|
|
[](http://webchat.freenode.net/?channels=%23ipfs)
|
|
[](https://github.com/RichardLitt/standard-readme)
|
|
|
|
> Directory listing HTML for go-ipfs gateways
|
|
|
|
This repo is not be used standalone. It's used by the gateway code in go-ipfs. It'll be merged into the gateway package, once the gateway has been extracted from go-ipfs.
|
|
|
|

|
|
|
|
## Updating
|
|
|
|
1. Make changes to _both_ dir-index.html and dir-index-uncat.html.
|
|
2. Follow the instructions in [go-ipfs](https://github.com/ipfs/go-ipfs/tree/master/assets#updating-dir-index-html) for updating the directory index.
|
|
|
|
## Testing
|
|
|
|
1. Install [go](https://golang.org/dl/).
|
|
2. Run the test server:
|
|
|
|
```bash
|
|
> cd test
|
|
> go run .
|
|
```
|
|
|
|
This will listen on `localhost:3000` and re-load the template every time you refresh the page.
|
|
|
|
## Contribute
|
|
|
|
Feel free to join in. All welcome. A good place to start is [the issues](https://github.com/ipfs/dir-index-html/issues).
|
|
|
|
This repository falls under the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).
|
|
|
|
### Want to hack on IPFS?
|
|
|
|
[](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)
|
|
|
|
## License
|
|
|
|
MIT
|