From b037ed668c3fd4b4ffeb2641df6a629c9f54d5cb Mon Sep 17 00:00:00 2001 From: Jay Date: Wed, 21 Oct 2020 21:13:59 -0400 Subject: [PATCH] Updating to new eBook --- CONTRIBUTING.md | 12 ++++-------- README.md | 28 +++++++++++++++++----------- _chapters/changelog.md | 8 +++++++- _chapters/staying-up-to-date.md | 2 +- _data/changelog.yml | 4 ++++ _includes/footer.html | 1 + _includes/hero.html | 4 ++-- _includes/newsletter-form.html | 2 +- _sass/lander.scss | 6 +++++- 9 files changed, 42 insertions(+), 25 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bd54615cd..32660ee34 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -100,18 +100,14 @@ Finally, submit a PR to the tutorial repo with the new changes. We'll review it, Currently we do a lot of manual work to publish updates and maintain the tutorial. You can help by contributing to improve the process. Feel free to get in touch if you're interested in helping out. Here is roughly what we need help with: -- Generating the Ebook - - The PDF version of Serverless Stack is very popular. Unfortunately it is generated manually using a set of AppleScripts stored in the `etc/` directory. It opens up Safari and prints to PDF. It would be much better if we could use a headless Chrome script to generate this. In addition to the PDF we need to figure out how to generate the EPUB format. - -- Creating a pipeline - - We would like to create a Circle CI setup that automatically generates the PDF and uploads the latest version to S3 (where it is hosted) every time a new release is created to the tutorial. We would also like to run a simple suite of tests to ensure that the changes to the demo app repos are correct. - - Compress screenshots The images for the screenshots are quite large. It would be ideal if they can be compressed as a part of the build process. +- ~~Generating the Ebook~~ + +- ~~Creating a pipeline~~ + ### Translating to Other Languages We currently have translation efforts for Spanish and Portuguese underway. If you'd like to get involved [refer to this thread](https://github.com/AnomalyInnovations/serverless-stack-com/issues/271). diff --git a/README.md b/README.md index d8db1fbc3..c06986cd3 100644 --- a/README.md +++ b/README.md @@ -75,20 +75,26 @@ You can also turn on live reloading and incremental builds while editing. $ bundle exec jekyll serve --incremental --livereload ``` -#### Generating the PDF +#### Generating the eBook -You can generate the PDF locally on macOS by following these steps. +We use [Pandoc](https://pandoc.org) to create the eBook. You can generate it locally by following these steps. -1. Generate a `Cover.pdf` with latest version and date - 1. Create an `ebook` folder in `~/Downloads` (for example). - 2. Update the date and version in the `etc/cover.html` - 3. Open the cover page locally in Safari by going to `file:///Users/frank/Sites/ServerlessStackCom/etc/cover.html`. - 4. In the Safari Menu on the File Menu, hit the **Export to PDF…** button. - 5. Place `Cover.pdf` in the `~/Downloads/ebook` folder. -2. Ensure `ebook` folder is an option when hitting the **Export to PDF…** button in Safari. -3. In the terminal, run `osascript pdf.scpt` in the `etc/` directory of this repository. +``` bash +$ cd ~/Sites/ServerlessStackCom/etc/ebook +$ make start +``` + +This'll start a Docker instance. Inside the Docker run: + +``` bash +$ make pdf +$ make epub +``` + +The above are run automatically through [Github Actions](https://github.com/AnomalyInnovations/serverless-stack-com/actions) in this repo: -We are looking for a better way to generate the PDF (and other eBook) formats. If you've got any ideas [consider contributing][Contributing]. +- When a new commit is pushed to master +- And when a new tag is pushed, the generated eBook is uploaded to S3 ## Sponsors diff --git a/_chapters/changelog.md b/_chapters/changelog.md index 3fda35f0d..34e5e0fe6 100644 --- a/_chapters/changelog.md +++ b/_chapters/changelog.md @@ -23,10 +23,16 @@ You can get these updates emailed to you via our [newsletter]({{ site.newsletter ### Changes -#### [v5.0: {{ site.data.changelog.current.title }}](https://branchv50--serverless-stack.netlify.app/) (Current) +#### [v5.0.1: {{ site.data.changelog.current.title }}](https://branchv501--serverless-stack.netlify.app/) (Current) {{ site.data.changelog.current.desc }} +- [Tutorial changes]({{ site.github_repo }}/compare/v5.0...v5.0.1) + +#### [v5.0: {{ site.data.changelog.v5-0.title }}](https://branchv50--serverless-stack.netlify.app/) + +{{ site.data.changelog.v5-0.desc }} + - [Tutorial changes]({{ site.github_repo }}/compare/v4.1...v5.0) - [API]({{ site.backend_github_repo }}/compare/v4.1...v5.0) diff --git a/_chapters/staying-up-to-date.md b/_chapters/staying-up-to-date.md index 19e014bd7..63d605fa1 100644 --- a/_chapters/staying-up-to-date.md +++ b/_chapters/staying-up-to-date.md @@ -15,7 +15,7 @@ To help people stay up to date with the changes, we run the follow us on Twitter. diff --git a/_data/changelog.yml b/_data/changelog.yml index 3dde49016..df8dd7fe3 100644 --- a/_data/changelog.yml +++ b/_data/changelog.yml @@ -1,4 +1,8 @@ current: + title: "Updating to new eBook format" + desc: "Oct 21, 2020: Generating new eBook using Pandoc." + +v5-0: title: "Using CDK to configure infrastructure resources" desc: "Oct 7, 2020: Moving from CloudFormation to AWS CDK to configure infrastructure resources. And using Serverless Stack Toolkit (SST) to deploy CDK alongside Serverless Framework." diff --git a/_includes/footer.html b/_includes/footer.html index 9d395d94e..ed727413e 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -8,6 +8,7 @@
  • {{ site.title | escape }}
  • +
  • Newsletter
  • Changelog
  • Showcase
  • About us
  • diff --git a/_includes/hero.html b/_includes/hero.html index f3a3f9122..afb135989 100644 --- a/_includes/hero.html +++ b/_includes/hero.html @@ -11,7 +11,7 @@

    - Download PDF + Get the eBook Start learning
    @@ -108,7 +108,7 @@
    {{ site.data.changelog.c -
    +
    diff --git a/_includes/newsletter-form.html b/_includes/newsletter-form.html index 8f05aee80..2d7458dd9 100644 --- a/_includes/newsletter-form.html +++ b/_includes/newsletter-form.html @@ -1,4 +1,4 @@ -

    Download this guide as a 1000 page PDF!
    And get notified when we publish updates.

    +

    Download this guide as a 1000 page eBook!
    And get notified when we publish updates.