From e4b5aaade240816ccc2a45af814d04683a1c9679 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Wed, 18 Jan 2017 14:24:42 -0800 Subject: [PATCH] Fix docs (#307) It doesn't compile cleanly anymore: - esutils checks for Buffer.isBuffer without ensuring that Buffer exists. - for version, we require a json file, need a rollup extension for that. I no longer hardcode the version number. Note: we need to merge this pull request after we have done the release so that the version number is correct and need to rebuild the minified version in a subsequent commit. --- docs/index.html | 5 ++++- docs/rollup.config.js | 2 ++ package.json | 1 + yarn.lock | 8 +++++++- 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/index.html b/docs/index.html index 247b9bc4..74738137 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2,6 +2,7 @@ Prettier + @@ -81,7 +82,7 @@
- + @@ -153,6 +154,8 @@ var editorOptions = { var inputEditor = CodeMirror.fromTextArea(input, editorOptions); inputEditor.on('change', format); var outputEditor = CodeMirror.fromTextArea(output, {readOnly: true, lineNumbers: true, theme: 'base16-dark' }); + +document.getElementsByClassName('version')[0].innerText = prettier.version;