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

[stub] support alternate HTML theme through environment variable #261

Closed
wants to merge 1 commit into from

Conversation

michaelmhoffman
Copy link
Contributor

Change to build.sh demonstrating potential solution to #112.

@agitter
Copy link
Member

agitter commented Aug 3, 2019

I like this design. We should consider doing the same for CSL_PATH, BIBLIOGRAPHY_PATH, and INPUT_PATH.

@dhimmel
Copy link
Member

dhimmel commented Dec 20, 2019

Noting that if we adopt pandoc --defaults as proposed in #290, this method of setting pandoc options through environment variables will no longer work.

@michaelmhoffman
Copy link
Contributor Author

PANDOC_DEFAULTS_PATH="${PANDOC_DEFAULTS_PATH:-build/pandoc-defaults.yaml}"

@dhimmel
Copy link
Member

dhimmel commented Jan 6, 2020

We merged #290, which includes something similar to @michaelmhoffman's suggestion:

rootstock/build/build.sh

Lines 22 to 24 in 06fb01d

# Pandoc's configuration is specified via files of option defaults
# located in the PANDOC_DEFAULTS_DIR directory.
PANDOC_DEFAULTS_DIR="${PANDOC_DEFAULTS_DIR:-build/pandoc-defaults}"

Now that we're using --defaults files, this PR is less relevant, so am closing it.

To customize pandoc's behavior, you can either edit the relevant line a default YAML file, or create a new pandoc-defaults directory and change PANDOC_DEFAULTS_DIR as discussed at #290 (comment).

@dhimmel dhimmel closed this Jan 6, 2020
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.

3 participants