From f2bcd53db1685af252f4dc563f54508a6689ca94 Mon Sep 17 00:00:00 2001 From: Steve Cochrane Date: Fri, 19 Mar 2021 21:29:16 -0500 Subject: [PATCH] Revert change to demo page directory name --- README.md | 2 +- {demo => docs}/index.html | 2 +- {demo => docs}/input.css | 0 {demo => docs}/output.css | 0 {demo => docs}/postcss.config.js | 4 ++-- {demo => docs}/tailwind.config.js | 2 +- package.json | 2 +- 7 files changed, 6 insertions(+), 6 deletions(-) rename {demo => docs}/index.html (99%) rename {demo => docs}/input.css (100%) rename {demo => docs}/output.css (100%) rename {demo => docs}/postcss.config.js (69%) rename {demo => docs}/tailwind.config.js (92%) diff --git a/README.md b/README.md index fe5f1fe..c0f86c0 100644 --- a/README.md +++ b/README.md @@ -309,7 +309,7 @@ values will be converted to attribute selectors that any browser can understand. This process is used for this project's [demo page](https://stevecochrane.github.io/tailwindcss-logical/), and for a look at how that is configured for PostCSS, check out the demo's -[postcss.config.js](https://github.com/stevecochrane/tailwindcss-logical/blob/master/demo/postcss.config.js) file. +[postcss.config.js](https://github.com/stevecochrane/tailwindcss-logical/blob/master/docs/postcss.config.js) file. ## Roadmap diff --git a/demo/index.html b/docs/index.html similarity index 99% rename from demo/index.html rename to docs/index.html index 5b8fb58..164c203 100644 --- a/demo/index.html +++ b/docs/index.html @@ -42,7 +42,7 @@

🖖

The following is an demonstration of every type of utility provided by tailwindcss-logical. You can read about installation, configuration, and more in the project's README.

-

This page is entirely styled with Tailwind classes, from a mostly unmodified Tailwind config file. To achieve better browser support, tailwindcss-logical's styles are run through some additional PostCSS plugins. Read more about browser compatibility.

+

This page is entirely styled with Tailwind classes, from a mostly unmodified Tailwind config file. To achieve better browser support, tailwindcss-logical's styles are run through some additional PostCSS plugins. Read more about browser compatibility.

To see how these utilities enable multi-directional layouts, click the Switch Text Direction button! All it does is flip the dir attribute on the <html> element from "ltr" to "rtl" and back again, and the rest is handled through the magic of logical properties and values.

diff --git a/demo/input.css b/docs/input.css similarity index 100% rename from demo/input.css rename to docs/input.css diff --git a/demo/output.css b/docs/output.css similarity index 100% rename from demo/output.css rename to docs/output.css diff --git a/demo/postcss.config.js b/docs/postcss.config.js similarity index 69% rename from demo/postcss.config.js rename to docs/postcss.config.js index bd06921..c589e15 100644 --- a/demo/postcss.config.js +++ b/docs/postcss.config.js @@ -1,6 +1,6 @@ module.exports = { plugins: [ - require('tailwindcss')({ config: './demo/tailwind.config.js' }), + require('tailwindcss')({ config: './docs/tailwind.config.js' }), require('postcss-logical'), require('postcss-dir-pseudo-class') ] @@ -11,7 +11,7 @@ module.exports = { module.exports = { plugins: [ - require('tailwindcss')({ config: './demo/tailwind.config.js' }), + require('tailwindcss')({ config: './docs/tailwind.config.js' }), require('postcss-preset-env') ] }; diff --git a/demo/tailwind.config.js b/docs/tailwind.config.js similarity index 92% rename from demo/tailwind.config.js rename to docs/tailwind.config.js index af747db..daf7f92 100644 --- a/demo/tailwind.config.js +++ b/docs/tailwind.config.js @@ -2,7 +2,7 @@ const colors = require('tailwindcss/colors'); module.exports = { purge: { - content: ['./demo/*.html'], + content: ['./docs/*.html'], enabled: true }, theme: { diff --git a/package.json b/package.json index d215485..133d53b 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ }, "main": "index.js", "scripts": { - "build:demo": "postcss demo/input.css -o demo/output.css --config demo/postcss.config.js", + "build:demo": "postcss docs/input.css -o docs/output.css --config docs/postcss.config.js", "lint": "eslint --ignore-path .eslintignore --cache .", "test": "jest --coverage" },