diff --git a/README.md b/README.md new file mode 100644 index 0000000..6f406a4 --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# 📚 CloudCannon Documentation + +![GitHub package.json version](https://img.shields.io/github/package-json/v/CloudCannon/documentation) ![GitHub pull requests](https://img.shields.io/github/issues-pr/Cloudcannon/documentation?label=Pull%20Requests) + +This repo holds the source code for Cloudcannon's docs at docs.cloudcannon.com. + +## Local Development +To install locally, clone the repo, then run these commands: + +```bash +cd src +npm install +gem install bundler +bundle install +gulp dev +``` diff --git a/src/collections/_editing_docs/editors/visual-editor.md b/src/collections/_editing_docs/editors/visual-editor.md index adc1014..c5958f2 100644 --- a/src/collections/_editing_docs/editors/visual-editor.md +++ b/src/collections/_editing_docs/editors/visual-editor.md @@ -45,4 +45,17 @@ if (window.location.host === "app.cloudcannon.com") { } else { alert("Not in CloudCannon."); } +{% endhighlight %} + +You can also conditionally import scripts embedded in your HTML based on whether or not you +have the visual editor open: + +{% highlight html %} + {% endhighlight %} \ No newline at end of file