Tailwind CSS uses Next.js for its documentation. Here is how you can run the project locally:
-
Clone this repo
git clone https://github.com/tailwindchina/docs.git
-
Go into the project root directory
cd docs -
Install JS dependencies
yarn
-
Start the dev server
yarn dev
-
Export static pages
yarn export -
Push to github
git push origin master
-
Deploy
The documents will automatically deploy to Github pages.