diff --git a/.gitignore b/.gitignore index 9e41758..42d2b87 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ fly.toml # codegen *_templ.go +!rss_templ.go regexp2_codegen.go # built binary @@ -25,4 +26,5 @@ main !.gitkeep # for development/testing -Caddyfile \ No newline at end of file +Caddyfile +misc/ \ No newline at end of file diff --git a/docs/DEV_GUIDE.md b/docs/DEV_GUIDE.md index 2c1162c..b082d29 100644 --- a/docs/DEV_GUIDE.md +++ b/docs/DEV_GUIDE.md @@ -16,15 +16,7 @@ git clone https://git.maid.zone/stuff/soundcloak cd soundcloak ``` -3. Build binary: - -This uses the `build` script, which generates code from templates, generates code for regular expiressions, and then builds the binary. - -```sh -./build -``` - -4. Download required JS modules: +3. Download required JS modules: Currently it's just HLS.js. This is what powers the HLS player @@ -32,6 +24,14 @@ Currently it's just HLS.js. This is what powers the HLS player go tool soundcloakctl js download ``` +4. Build binary: + +This uses the `build` script, which generates code from templates, generates code for regular expiressions, and then builds the binary. + +```sh +./build +``` + Now, you can run soundcloak with the `./main` binary. By default, it is listening on `127.0.0.1:4664`. For a configuration guide, [refer to here](INSTANCE_GUIDE.md#configuration-guide) # Updating your local setup diff --git a/lib/sc/rss_templ.go b/lib/sc/rss_templ.go new file mode 100644 index 0000000..8e1e920 --- /dev/null +++ b/lib/sc/rss_templ.go @@ -0,0 +1,16 @@ + +// Code generated by hands +// Run templ generate to generate the real code +package sc + +//lint:file-ignore SA4006 This context is only used if a nested component is present. + +import ( + "git.maid.zone/stuff/soundcloak/lib/cfg" + "github.com/a-h/templ" +) + +func TrackDescription(prefs cfg.Preferences, t *Track, href string) templ.Component { + return templ.NopComponent +} +