Skip to content

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.

1 participant