# github-discussions-mirror
A tool to:
1. continuously mirror a GitHub discussions page into a folder of JSON, with sparse updates
2. download all images referenced in discussions, optionally
3. generate a static site from that folder, optionally
## Installation
```bash
cargo build --release
# or
cargo install github-discussions-mirror
```
## Usage
### Syncing data
```bash
export GITHUB_TOKEN=your_token_here
./target/release/github-discussions-mirror sync -r owner/repo
```
Your data is in `./data`. JSON and images.
### Generating a static site
```
./target/release/github-discussions-mirror generate
```
The static site is in `./site`.
## License
MIT (see `Cargo.toml` and `LICENSE`)