From 092b9a9d130b56236b45aca22dd1ef54e244cdaf Mon Sep 17 00:00:00 2001 From: Heydon Pickering Date: Tue, 8 Aug 2017 09:32:40 +0100 Subject: [PATCH] simpler publishing instructions --- content/patterns/serving.md | 18 ++++++++++++------ node/toPDF.js | 1 - 2 files changed, 12 insertions(+), 7 deletions(-) delete mode 100644 node/toPDF.js diff --git a/content/patterns/serving.md b/content/patterns/serving.md index b04a675..f05f23a 100644 --- a/content/patterns/serving.md +++ b/content/patterns/serving.md @@ -13,11 +13,7 @@ This will serve your working library from `localhost:1313`. Whenever you make ch ## Publishing on Github Pages -**Infusion** creates a `/docs` folder containing the latest version of your library whenever you do an `npm run build` or a `git commit`. This folder can be made the source for your Github Pages site by selecting it under **Settings → Github Pages → Source** in the web interface. - -![The publishing source dropdown menu on Github](/images/serve_from_docs.png) - -Then, whenever you push to master, you will also be updating the site found at your Github Pages URL. +**Infusion** creates a `/docs` folder containing the latest version of your library whenever you do an `npm run build` or a `git commit`. So long as you forked the **Infusion** repository when making your own library (see {{% pattern "Library setup" %}}), whenever you push to master, you will also be updating the site found at your Github Pages URL. This URL will be in the following format: @@ -25,4 +21,14 @@ This URL will be in the following format: [your user name].github.io/[your library repo name] ``` -You'll also need to add it to your `config.toml` file as the `baseURL` value. See {{% pattern "Library setup" %}} for more information. +You'll also need to add this value to your `config.toml` file as the `baseURL`. For **Infusion**'s own documentation it looks like the following. Just overwrite it. + +``` +baseURL = "https://thepaciellogroup.github.io/infusion/" +``` + +{{% note %}} +If you created a new library repo manually (without forking) you will find the `docs` folder is not automatically setup as the publishing source. This folder can be made the source for your Github Pages site by selecting it under **Settings → Github Pages → Source** in the web interface. + +![The publishing source dropdown menu on Github](/images/serve_from_docs.png) +{{% /note %}} diff --git a/node/toPDF.js b/node/toPDF.js deleted file mode 100644 index 22bde8d..0000000 --- a/node/toPDF.js +++ /dev/null @@ -1 +0,0 @@ -// stub