Skip to content

Commit

Permalink
Fixing submission link generation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
kigster committed Mar 17, 2024
1 parent 593db08 commit b3463be
Showing 1 changed file with 27 additions and 8 deletions.
35 changes: 27 additions & 8 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -92,22 +92,42 @@ To generate the HTML (we'll use the CSV file checked into the fixtures):

[source,bash]
----
bin/music-submission-links spec/fixtures/chill_sets.csv [ --simple-css ] > chill_set.html
# eg, using the fixture file:
$ bin/music-submission-links spec/fixtures/chill_sets.csv > chill_set.html
# or, to include the simple CSS into the header:
$ bin/music-submission-links spec/fixtures/chill_sets.csv --simple-css > chill_set.html
open chill_set.html
----

WARNING: if you add `--simple-css` to the arguments, the generated HTML will include `<head>` element with the https://simplecss.org/[Simple CSS Stylesheet].
====
WARNING: If you add `--simple-css` to the arguments, the generated HTML will include `<head>` element with the https://simplecss.org/[Simple CSS Stylesheet]. Do not use this flag if you plan to paste the output into the WordPress text box. Use this flag if you simply want to verify the resulting HTML in a browser by running `open chill_set.html`.
====

Now you can open WordPress, create a two-column layout and paste the contents into one of the two columns.
To verify that the script is working and generating correct HTML, you might want to install a handy tool called `bat`, eg using Homebrew on Mac OS-X:

To verify that the script is working, install a handy tool called `bat`:
[source,bash]
----
$ brew install bat
$ bin/music-submission-links spec/fixtures/chill_sets.csv | bat
----

===== Adding Submissions to WordPress

Now you can open WordPress, create a two-column layout on the submissions page and paste the contents into one of the two columns, typically:

1. Night time / Peak Hour
2. Chill / Daytime

First, let's copy the resulting HTML into clipboard:

[source,bash]
----
brew install bat
bin/music-submission-links spec/fixtures/chill_sets.csv | bat
$ bin/music-submission-links chill_sets.csv | pbcopy
----

Now we can paste it into WordPress directly.

=== Developer Setup

We dedicated a separate document to the xref:DEVELOPERS.pdf[developer setup], which helps you get the application running locally.
Expand All @@ -118,10 +138,9 @@ Yard-generated documentation is available via running:

[source,bash]
----
bundle exec rake doc
$ bundle exec rake doc
# this will automatically open the index.html
----

b


0 comments on commit b3463be

Please sign in to comment.