From 1b632936225ec39b114e651ff42002c284d9c532 Mon Sep 17 00:00:00 2001 From: Usman Iqbal Date: Tue, 24 Oct 2017 15:57:21 +0100 Subject: [PATCH 1/2] Output custom.template.css and add instructions to rename before using --- README.md | 4 ++-- src/converter.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e0f13d1..9ab6fc6 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ More specifically... * Click on the title node, so that Workflowy focuses on it (rather than e.g. its parents) * Click the button on the toolbar to trigger your prototype download * Save the zip and extract it, and your prototype is ready to go -* You can apply custom styling by modifying the included "custom.css" +* You can apply custom styling by renaming "custom.template.css" to "custom.css" and modifying as required. ## Demo @@ -63,7 +63,7 @@ You will then be able to launch a single run of the tests from the command line npm test ``` ### Manual testing and debugging -Chrome extensions can be loaded in Google Chrome from the source code without having to be packaged: +Chrome extensions can be loaded in Google Chrome from the source code without having to be packaged: * Go to chrome://extensions/ * Enable Developer Mode * Click the 'Load unpacked extension...' button diff --git a/src/converter.js b/src/converter.js index 02e98b4..249a0a2 100644 --- a/src/converter.js +++ b/src/converter.js @@ -22,7 +22,7 @@ async.series([ function (callback) { addExistingFile(zip, chrome.extension.getURL('resources/stylesheets/style.css'), 'stylesheets/style.css', callback); - addExistingFile(zip, chrome.extension.getURL('resources/stylesheets/empty.css'), 'stylesheets/custom.css', callback); + addExistingFile(zip, chrome.extension.getURL('resources/stylesheets/empty.css'), 'stylesheets/custom.template.css', callback); } ].concat(imageFileNames.map(function(imageFileName) { return function (callback) { @@ -42,4 +42,4 @@ callback(null, true); }); } -} \ No newline at end of file +} From fe081c5a33acfa132cf0243f02d82ebe8e8a2bac Mon Sep 17 00:00:00 2001 From: Usman Iqbal Date: Tue, 24 Oct 2017 15:57:38 +0100 Subject: [PATCH 2/2] Fix broken test --- test/htmlGenerator.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/htmlGenerator.test.js b/test/htmlGenerator.test.js index d15245f..4071064 100644 --- a/test/htmlGenerator.test.js +++ b/test/htmlGenerator.test.js @@ -41,7 +41,7 @@ describe('outline', function() { selected: false } ]]; - var expectedHtml = 'Footer - tag

Site Title

Something - or other

TV � Quarterly Reach / Share / Av Time

'; + var expectedHtml = 'Footer - tag

Site Title

Something - or other

TV � Quarterly Reach / Share / Av Time

'; describe('generate', function() { it('returns the correct HTML', function() { @@ -50,4 +50,4 @@ describe('outline', function() { expect(result).toEqual(expectedHtml); }); }); -}); \ No newline at end of file +});