Skip to content

Commit

Permalink
Merge pull request #112 from publiccodenet/script-serve
Browse files Browse the repository at this point in the history
add script/serve.sh
  • Loading branch information
Ainali authored Sep 27, 2023
2 parents 82e2eee + 96ac64d commit 638763f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This project is meant internally for the Foundation for Public Code as we try to

This theme is built to run predictably on GitHub pages, therefore the [`github-pages`](https://github.com/github/pages-gem) gem is required. Run `bundle install` before building with Jekyll.

To serve locally with Jekyll, use `bundle exec jekyll serve`.
To serve locally with Jekyll, use `script/serve.sh`

## Customising

Expand Down
14 changes: 14 additions & 0 deletions script/serve.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
# SPDX-License-Identifier: CC0-1.0
# SPDX-FileCopyrightText: 2019-2023 The Foundation for Public Code <[email protected]>

# The serve.sh script can be used to preview how Jekyll will build the site.

# if PAGES_REPO_NWO is not set then default to publiccodenet/jekyll-theme
# (jekyll defaults to "origin" if a remote of that name exists,
# which makes sense for a true fork, but not for most contributors)
if [ "_${PAGES_REPO_NWO}_" == "__" ]; then
export PAGES_REPO_NWO=publiccodenet/jekyll-theme
fi

bundle exec jekyll serve --livereload

0 comments on commit 638763f

Please sign in to comment.