diff --git a/docs/css/styles.css b/docs/css/styles.css index 45982b9..57c88fe 100644 --- a/docs/css/styles.css +++ b/docs/css/styles.css @@ -44,7 +44,7 @@ img { } p img { - margin-top: 0.75rem; + margin: 0.75rem 0; } figure p img { diff --git a/docs/images/serve_from_docs.png b/docs/images/serve_from_docs.png new file mode 100644 index 0000000..eab9b76 Binary files /dev/null and b/docs/images/serve_from_docs.png differ diff --git a/docs/patterns/library-setup/index.html b/docs/patterns/library-setup/index.html index f6c2a7b..aa4951f 100644 --- a/docs/patterns/library-setup/index.html +++ b/docs/patterns/library-setup/index.html @@ -318,50 +318,7 @@ theme = "infusion"
title
is, naturally, Infusion :-)<em>
and <strong>
.There are three steps to hosting your library on Github Pages.
+Infusion creates a /docs
folder containing the latest version of your library whenever you run npm run build
or do 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.
Open up config.toml
(at the root of your library project folder) and make sure baseURL
matches your Github Pages URL.
baseURL = "[your user name].github.io/[your library repo name]"
-
-
-If you are having trouble working out your Github Pages URL, this tool may help.
- -On the (default) master branch run:
- -git commit -am "my commit message"
-
-
-host
commandnpm run host
-
-
-You should now be able to find a “live” version of your library at [your user name].github.io/[your library repo name]
.
Then, whenever you push to master, you will also be updating the site found at your Github Pages URL, in the format [your user name].github.io/[your library repo name]
. You’ll also need to add this URL to your config.toml
file. See {{ pattern “Library setup” }} for more information.