diff --git a/.npmignore b/.npmignore index a76b964aba..ded7c3a932 100644 --- a/.npmignore +++ b/.npmignore @@ -5,16 +5,11 @@ hide-*.js .DS_Store CNAME .github/ +assets/ examples/ -img/ -templates/ tests/ -scripts/ *.tgz *.html -style.css -favicon.png -logo.svg bower.json composer.json gulpfile.js diff --git a/scripts/code.js b/assets/code.js similarity index 97% rename from scripts/code.js rename to assets/code.js index d41f88bedf..e2da68aae8 100644 --- a/scripts/code.js +++ b/assets/code.js @@ -6,7 +6,7 @@ if(!document.body.addEventListener) { $$('[data-plugin-header]').forEach(function (element) { var plugin = components.plugins[element.getAttribute('data-plugin-header')]; - element.innerHTML = '
\n' + element.innerHTML = '\n' + '' + plugin.description + '
'; }); diff --git a/scripts/download.js b/assets/download.js similarity index 100% rename from scripts/download.js rename to assets/download.js diff --git a/scripts/examples.js b/assets/examples.js similarity index 100% rename from scripts/examples.js rename to assets/examples.js diff --git a/favicon.png b/assets/favicon.png similarity index 100% rename from favicon.png rename to assets/favicon.png diff --git a/img/failures/coy-overlap.png b/assets/img/failures/coy-overlap.png similarity index 100% rename from img/failures/coy-overlap.png rename to assets/img/failures/coy-overlap.png diff --git a/img/logo-ala.png b/assets/img/logo-ala.png similarity index 100% rename from img/logo-ala.png rename to assets/img/logo-ala.png diff --git a/img/logo-css-tricks.png b/assets/img/logo-css-tricks.png similarity index 100% rename from img/logo-css-tricks.png rename to assets/img/logo-css-tricks.png diff --git a/img/logo-drupal.png b/assets/img/logo-drupal.png similarity index 100% rename from img/logo-drupal.png rename to assets/img/logo-drupal.png diff --git a/img/logo-mdn.png b/assets/img/logo-mdn.png similarity index 100% rename from img/logo-mdn.png rename to assets/img/logo-mdn.png diff --git a/img/logo-react.png b/assets/img/logo-react.png similarity index 100% rename from img/logo-react.png rename to assets/img/logo-react.png diff --git a/img/logo-sitepoint.png b/assets/img/logo-sitepoint.png similarity index 100% rename from img/logo-sitepoint.png rename to assets/img/logo-sitepoint.png diff --git a/img/logo-smashing.png b/assets/img/logo-smashing.png similarity index 100% rename from img/logo-smashing.png rename to assets/img/logo-smashing.png diff --git a/img/logo-stripe.png b/assets/img/logo-stripe.png similarity index 100% rename from img/logo-stripe.png rename to assets/img/logo-stripe.png diff --git a/img/spectrum.png b/assets/img/spectrum.png similarity index 100% rename from img/spectrum.png rename to assets/img/spectrum.png diff --git a/logo.svg b/assets/logo.svg similarity index 100% rename from logo.svg rename to assets/logo.svg diff --git a/scripts/prefixfree.min.js b/assets/prefixfree.min.js similarity index 100% rename from scripts/prefixfree.min.js rename to assets/prefixfree.min.js diff --git a/style.css b/assets/style.css similarity index 100% rename from style.css rename to assets/style.css diff --git a/templates/footer.html b/assets/templates/footer.html similarity index 100% rename from templates/footer.html rename to assets/templates/footer.html diff --git a/templates/header-download.html b/assets/templates/header-download.html similarity index 100% rename from templates/header-download.html rename to assets/templates/header-download.html diff --git a/templates/header-main.html b/assets/templates/header-main.html similarity index 89% rename from templates/header-main.html rename to assets/templates/header-main.html index 01fe940603..2db06c85ec 100644 --- a/templates/header-main.html +++ b/assets/templates/header-main.html @@ -1,4 +1,4 @@ -Select your compression level, as well as the languages and plugins you need.
@@ -170,16 +170,16 @@The examples in this page serve a dual purpose: They act as unit tests, making it easy to spot bugs, and at the same time demonstrate what Prism can do, on simple and on edge cases.
@@ -97,14 +97,14 @@Frequently Asked Questions, with a few Questions I want people to Frequently Ask.
@@ -121,9 +121,9 @@Prism is used on several websites, small and large. Some of them are:
@@ -75,13 +75,13 @@This page’s CSS code, highlighted with Prism:
- +This page’s HTML, highlighted with Prism:
This page’s logo (SVG), highlighted with Prism:
- +If you’re still not sold, you can view more examples or try it out for yourself.
@@ -292,12 +292,12 @@A list of rare edge cases where Prism highlights code incorrectly.
@@ -359,7 +359,7 @@Coy's shadows and background might not wrap around the code correctly if combined with float of flexbox layouts.
-