Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow a build program to be an external command #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

johnkeeping
Copy link

This allows custom build commands to be specified for files without
needing to extend rstblog for every external command that you might want
to run. External commands start with an exclamation mark and must have
two arguments which begin with a percent sign - these are the input and
output file names in order.

Filename arguments are allowed to have a suffix so that file extensions
can be changed, for example by adding the follwing to a "config.yml"
file in a directory, files in that directory are compiled by "lessc" and
".less" files are renamed to ".css":

program: "!lessc %.less %.css"

Please let me know if you think there's a better way to accomplish this - this
seems sensible to me but it's quite possible that I've missed a neater way
to do this.

John

This allows custom build commands to be specified for files without
needing to extend rstblog for every external command that you might want
to run.  External commands start with an exclamation mark and must have
two arguments which begin with a percent sign - these are the input and
output file names in order.

Filename arguments are allowed to have a suffix so that file extensions
can be changed, for example by adding the follwing to a "config.yml"
file in a directory, files in that directory are compiled by "lessc" and
".less" files are renamed to ".css":

    program: "!lessc %.less %.css"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant