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 for extra args to github-pages docker #753

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

amniskin
Copy link

It is often useful to have this docker image serving the site while you work on drafts. In order to do that, you need to have the docker image serve up drafts. This allows you to execute that (as well as any other flags or options) relatively easily.

Example usage:

$ github-pages
# runs like it did before
$ GH_PORT=12345 github-pages
# runs like github-pages 12345 used to
$ github-pages --drafts
# runs github-pages but displays drafts

amniskin and others added 3 commits January 21, 2021 12:52
Changed port and path to environment variables with the same defaults,
and pass any commandline args directly to jekyll serve. This is useful
in particular when working with drafts (one can now run `github-pages
--drafts` and it works as expected).
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.

None yet

1 participant