Skip to content

Commit

Permalink
Merge pull request #42 from dwmkerr/build/downloads-folder
Browse files Browse the repository at this point in the history
build(playground): add the playground to the downloads folder
  • Loading branch information
dwmkerr authored May 16, 2020
2 parents b1f85a9 + 6a5c89b commit ee34f42
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# The 'website/public' directory is an artifact created during the build process.
website/public
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Text, samples and references for my 'Effective Shell' series. This website is ho

This repository contains all of the content for the [Effective Shell](https://effective-shell.com/) online book.

The `effective-shell-playground` folder which has all of the samples can be downloaded from [https://effective-shell.com/downloads/effective-shell-playground.zip](https://effective-shell.com/downloads/effective-shell-playground.zip)

## Improvements

- [ ] Add `tree` to the Chapter 'Moving Around'.
Expand Down Expand Up @@ -90,6 +92,12 @@ make build

The built site is generated at `./website/public`.

Note that the [`effective-shell-playground`](./effective-shell-playground) folder is automatically zipped up and added to the website, meaning it can be downloaded directly from:

```
https://effective-shell.com/downloads/effective-shell-playground.zip
```

### Updating the Theme

The site uses the [github.com/dwmkerr/hugo-book](https://github.com/dwmkerr/hugo-book) theme, which is a fork of [alex-shpak](https://github.com/alex-shpak/hugo-book).
Expand Down
3 changes: 3 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ serve:

# Build the site.
build:
# Zip up the playground and add to the 'static/downloads' folder.
mkdir -p website/static/downloads
zip -r website/static/downloads/effective-shell-playground.zip effective-shell-playground
cd website && hugo --minify

# Create the summary structure in word format, easier to share.
Expand Down

0 comments on commit ee34f42

Please sign in to comment.