Sfoglia il codice sorgente

Convert Dropbox example to snippet-style

Kevin van Zonneveld 9 anni fa
parent
commit
bf6f3f6640

+ 30 - 0
website/src/examples/dropbox.ejs

@@ -0,0 +1,30 @@
+---
+title: Dropbox
+type: examples
+order: 1
+---
+
+{% blockquote %}
+Dropbox
+{% endblockquote %}
+
+<p>
+Here you'll see a demo of how you might set up Dropbox with Uppy:
+</p>
+
+<% include dropbox/src/html/app.htmls %>
+<script src="dropbox/static/js/app.js"></script>
+
+<hr />
+
+<p>
+  On this page we're using the following HTML snippet:
+</p>
+
+{% include_code &nbsp; lang:html dropbox/src/html/app.htmls %}
+
+<p>
+  Along with this JavaScript:
+</p>
+
+{% include_code &nbsp; lang:js dropbox/src/js/app.js %}

+ 0 - 8
website/src/examples/dropbox.md → website/src/examples/dropbox/src/html/app.htmls

@@ -1,11 +1,3 @@
----
-title: Dropbox
-type: examples
-order: 1
----
-
-> Dropbox
-
 <ul id="target"></ul>
 <script src="//cdnjs.cloudflare.com/ajax/libs/dropbox.js/0.10.2/dropbox.min.js"></script>
 <script src="dropbox/static/js/app.js"></script>