Skip to content

Commit

Permalink
docs: rearrange pages
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Jan 3, 2023
1 parent b9ec676 commit 480de4f
Show file tree
Hide file tree
Showing 31 changed files with 50 additions and 50 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ parserOptions:
ecmaVersion: 2019
project:
- tsconfig.json
- site/tsconfig.json
- docs/tsconfig.json
sourceType: module
plugins:
- '@typescript-eslint'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
node-version: lts/*
cache: pnpm
- uses: actions/configure-pages@v1
- run: pnpm i && pnpm build && pnpm vitepress build site --base /animated-tailwindcss/
- run: pnpm i && pnpm build && pnpm vitepress build docs --base /animated-tailwindcss/
- uses: actions/upload-pages-artifact@v1
with:
path: site/.vitepress/dist
path: docs/.vitepress/dist

deploy:
environment:
Expand Down
File renamed without changes.
45 changes: 45 additions & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import { defineConfig } from 'vitepress'

export default defineConfig({
title: 'tw-Animated',
description: 'animated-tailwindcss is a package that brings Animate.css classes to Tailwind CSS',
cleanUrls: 'without-subfolders',

themeConfig: {
socialLinks: [{ icon: 'github', link: 'https://github.com/brc-dd/animated-tailwindcss' }],

outline: false,

sidebar: [
{
text: 'Guide',
items: [
{ text: 'Getting Started', link: '/installation' },
{ text: 'Available Animations', link: '/animations' },
{ text: 'Miscellaneous Notes', link: '/advanced' },
],
},
{
text: 'Available Utilities',
items: [
{ text: 'Animation Delay', link: '/animation-delay' },
{ text: 'Animation Direction', link: '/animation-direction' },
{ text: 'Animation Duration', link: '/animation-duration' },
{ text: 'Animation Fill Mode', link: '/animation-fill-mode' },
{ text: 'Animation Iteration Count', link: '/animation-iteration-count' },
{ text: 'Animation Name', link: '/animation-name' },
{ text: 'Animation Play State', link: '/animation-play-state' },
{ text: 'Animation Timing Function', link: '/animation-timing-function' },
{ text: 'Translation Distance', link: '/translation-distance' },
],
},
],

editLink: { pattern: 'https://github.com/brc-dd/animated-tailwindcss/edit/main/docs/:path' },

footer: {
message: 'Released under the MIT License.',
copyright: 'Copyright © 2023-present Divyansh Singh',
},
},
})
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import './index.css'
</h1>
<div class="flex flex-wrap justify-center pt-6">
<div class="shrink-0 p-1.5">
<VPButton text="Get Started" href="/docs/installation" />
<VPButton text="Get Started" href="/installation" />
</div>
<div class="shrink-0 p-1.5">
<VPButton
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
45 changes: 0 additions & 45 deletions site/.vitepress/config.ts

This file was deleted.

2 changes: 1 addition & 1 deletion tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ const { withAnimations } = require('.')

module.exports = withAnimations({
// prefix: 'tw-',
content: ['./site/.vitepress/theme/*.vue'],
content: ['./docs/.vitepress/theme/*.vue'],
safelist: [{ pattern: /animate-.*/ }],
})

0 comments on commit 480de4f

Please sign in to comment.