README.md 1.8 KB
Newer Older
Juan Benet's avatar
fork  
Juan Benet committed
1
# dir-index-html
Juan Benet's avatar
Juan Benet committed
2

Steven Allen's avatar
Steven Allen committed
3 4 5 6
[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](https://protocol.ai)
[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.io/)
[![Matrix](https://img.shields.io/badge/matrix-%23ipfs%3Amatrix.org-blue.svg?style=flat-square)](https://matrix.to/#/room/#ipfs:matrix.org)
[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
Richard Littauer's avatar
Richard Littauer committed
7 8 9
[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)

> Directory listing HTML for go-ipfs gateways
Juan Benet's avatar
Juan Benet committed
10

11 12
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.

13
![](https://gateway.ipfs.io/ipfs/QmZrdrmeBeDtnb8cJzfc1hq54NFoGL9BHNuiQB9CWSJfTE)
Juan Benet's avatar
Juan Benet committed
14

Steven Allen's avatar
Steven Allen committed
15 16 17 18 19
## 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.

Steven Allen's avatar
Steven Allen committed
20 21 22 23 24 25 26 27 28 29 30 31
## 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.

Richard Littauer's avatar
Richard Littauer committed
32 33 34 35 36 37 38 39
## 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?

Bryan Stenson's avatar
Bryan Stenson committed
40
[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)
Richard Littauer's avatar
Richard Littauer committed
41 42 43

## License

Steven Allen's avatar
Steven Allen committed
44
MIT