From 2392a91033993c02d1ff6608f8938777ca672a1c Mon Sep 17 00:00:00 2001 From: Geoffrey Booth Date: Tue, 6 Dec 2016 22:27:08 -0800 Subject: [PATCH] =?UTF-8?q?Embed=20CSS;=20a=20bit=20unorthodox,=20but=20we?= =?UTF-8?q?=E2=80=99re=20a=20single=20page=20so=20there=E2=80=99s=20no=20p?= =?UTF-8?q?oint=20in=20separate=20.css=20files=20and=20their=20separate=20?= =?UTF-8?q?HTTP=20requests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cakefile | 4 + docs/v1/index.html | 498 +++++++++++++++++++- {docs/v1 => documentation}/css/docs.css | 0 {docs/v1 => documentation}/css/tomorrow.css | 0 documentation/index.html | 6 +- 5 files changed, 504 insertions(+), 4 deletions(-) rename {docs/v1 => documentation}/css/docs.css (100%) rename {docs/v1 => documentation}/css/tomorrow.css (100%) diff --git a/Cakefile b/Cakefile index deae7adf..0ee43331 100644 --- a/Cakefile +++ b/Cakefile @@ -129,6 +129,9 @@ task 'build:browser', 'rebuild the merged script for inclusion in the browser', task 'doc:site', 'watch and continually rebuild the documentation for the website', -> # Helpers + css = fs.readFileSync('./documentation/css/docs.css', 'utf-8') + '\n' + + fs.readFileSync('./documentation/css/tomorrow.css', 'utf-8') + logo = fs.readFileSync './documentation/images/logo.svg', 'utf-8' codeFor = -> @@ -220,6 +223,7 @@ task 'doc:site', 'watch and continually rebuild the documentation for the websit do renderIndex = -> render = _.template fs.readFileSync(indexFile, 'utf-8') output = render + css: css logo: logo codeFor: codeFor() releaseHeader: releaseHeader diff --git a/docs/v1/index.html b/docs/v1/index.html index 276a5cf9..2b004004 100644 --- a/docs/v1/index.html +++ b/docs/v1/index.html @@ -5,8 +5,6 @@ CoffeeScript - - @@ -14,6 +12,502 @@ + + diff --git a/docs/v1/css/docs.css b/documentation/css/docs.css similarity index 100% rename from docs/v1/css/docs.css rename to documentation/css/docs.css diff --git a/docs/v1/css/tomorrow.css b/documentation/css/tomorrow.css similarity index 100% rename from docs/v1/css/tomorrow.css rename to documentation/css/tomorrow.css diff --git a/documentation/index.html b/documentation/index.html index 3d81de2d..ea59fef9 100644 --- a/documentation/index.html +++ b/documentation/index.html @@ -5,8 +5,6 @@ CoffeeScript - - @@ -14,6 +12,10 @@ + +