docs: move around sections
All checks were successful
build / build (push) Successful in 1m55s

This commit is contained in:
Viktor Varland 2025-04-08 13:34:55 +02:00
parent b8ab0fa2bb
commit 3adf768132
Signed by: varl
GPG key ID: 7459F0B410115EE8

View file

@ -21,6 +21,14 @@ CONFIG="/path/to/config.toml" ./subsyt
./subsyt # assumes "./config.toml" ./subsyt # assumes "./config.toml"
``` ```
## build
We want a statically linked binary so disable CGO.
```sh
CGO_ENABLED=0 go build
```
## config ## config
`config.toml`: `config.toml`:
@ -42,6 +50,9 @@ cookies_file = "" # pass user cookies to yt, blank to disa
opml_file = "./opml.xml" # the opml file to use opml_file = "./opml.xml" # the opml file to use
``` ```
## generate opml
E.g. https://github.com/jeb5/YouTube-Subscriptions-RSS
`subs-opml.xml`: `subs-opml.xml`:
```xml ```xml
@ -62,12 +73,6 @@ opml_file = "./opml.xml" # the opml file to use
</opml> </opml>
``` ```
## build
```sh
CGO_ENABLED=0 go build
```
## cookies ## cookies
> [!WARNING] > [!WARNING]
@ -149,7 +154,3 @@ podman run --rm \
│   │   └── Technology_Connextras.s2025e0331.An_unplanned_trip_from_Chicago_to_Milwaukee_in_an_electric_car.3GUQdrpduo0-1080p.webm │   │   └── Technology_Connextras.s2025e0331.An_unplanned_trip_from_Chicago_to_Milwaukee_in_an_electric_car.3GUQdrpduo0-1080p.webm
│   └── tvshow.nfo │   └── tvshow.nfo
``` ```
## generate opml
E.g. https://github.com/jeb5/YouTube-Subscriptions-RSS