-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compatibility with WordPress 6.5 (#48)
* caption field was removed in WordPress 6.5 * chore(package updates): * new docs, created with npx nuxi init -t github:nuxt-ui-pro/docs * correct cacheKey * docs
- Loading branch information
1 parent
9d7d43f
commit 6a63c21
Showing
39 changed files
with
15,121 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_size = 2 | ||
indent_style = space | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Production license for @nuxt/ui-pro, get one at https://ui.nuxt.com/pro/purchase | ||
NUXT_UI_PRO_LICENSE= | ||
|
||
# Public URL, used for OG Image when running nuxt generate | ||
NUXT_PUBLIC_SITE_URL= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
dist | ||
node_modules | ||
.output | ||
.nuxt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module.exports = { | ||
root: true, | ||
extends: [ | ||
'@nuxt/eslint-config' | ||
], | ||
rules: { | ||
// Global | ||
semi: ['error', 'never'], | ||
quotes: ['error', 'single'], | ||
'quote-props': ['error', 'as-needed'], | ||
// Vue | ||
'vue/multi-word-component-names': 0, | ||
'vue/max-attributes-per-line': 'off', | ||
'vue/no-v-html': 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Nuxt dev/build outputs | ||
.output | ||
.data | ||
.nuxt | ||
.nitro | ||
.cache | ||
dist | ||
|
||
# Node dependencies | ||
node_modules | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
||
# Misc | ||
.DS_Store | ||
.fleet | ||
.idea | ||
|
||
# Local env files | ||
.env | ||
.env.* | ||
!.env.example | ||
|
||
# VSC | ||
.history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
shamefully-hoist=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
imports.autoImport=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
![nuxt-ui-docs-social-card](https://github.com/nuxt-ui-pro/docs/assets/739984/f64e13d9-9ae0-4e03-bf7f-6be4c36cd9ba) | ||
|
||
# Nuxt UI Pro - Docs template | ||
|
||
[![Nuxt UI Pro](https://img.shields.io/badge/Made%20with-Nuxt%20UI%20Pro-00DC82?logo=nuxt.js&labelColor=020420)](https://ui.nuxt.com/pro) | ||
[![Nuxt Studio](https://img.shields.io/badge/Open%20in%20Nuxt%20Studio-18181B?&logo=nuxt.js&logoColor=3BB5EC)](https://nuxt.studio/themes/docs) | ||
|
||
- [Live demo](https://docs-template.nuxt.dev/) | ||
- [Play on Stackblitz](https://stackblitz.com/github/nuxt-ui-pro/docs) | ||
- [Documentation](https://ui.nuxt.com/pro/getting-started) | ||
- [Clone on Nuxt Studio](https://nuxt.studio/themes/docs) | ||
|
||
## Quick Start | ||
|
||
```bash [Terminal] | ||
npx nuxi init -t github:nuxt-ui-pro/docs | ||
``` | ||
|
||
## Setup | ||
|
||
Make sure to install the dependencies: | ||
|
||
```bash | ||
# npm | ||
npm install | ||
|
||
# pnpm | ||
pnpm install | ||
|
||
# yarn | ||
yarn install | ||
|
||
# bun | ||
bun install | ||
``` | ||
|
||
## Development Server | ||
|
||
Start the development server on `http://localhost:3000`: | ||
|
||
```bash | ||
# npm | ||
npm run dev | ||
|
||
# pnpm | ||
pnpm run dev | ||
|
||
# yarn | ||
yarn dev | ||
|
||
# bun | ||
bun run dev | ||
``` | ||
|
||
## Production | ||
|
||
Build the application for production: | ||
|
||
```bash | ||
# npm | ||
npm run build | ||
|
||
# pnpm | ||
pnpm run build | ||
|
||
# yarn | ||
yarn build | ||
|
||
# bun | ||
bun run build | ||
``` | ||
|
||
Locally preview production build: | ||
|
||
```bash | ||
# npm | ||
npm run preview | ||
|
||
# pnpm | ||
pnpm run preview | ||
|
||
# yarn | ||
yarn preview | ||
|
||
# bun | ||
bun run preview | ||
``` | ||
|
||
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information. | ||
|
||
## Nuxt Studio integration | ||
|
||
Add `@nuxthq/studio` dependency to your package.json: | ||
|
||
```bash | ||
# npm | ||
npm install --save-dev @nuxthq/studio | ||
|
||
# pnpm | ||
pnpm add -D @nuxthq/studio | ||
|
||
# yarn | ||
yarn add -D @nuxthq/studio | ||
|
||
# bun | ||
bun add -d @nuxthq/studio | ||
``` | ||
|
||
Add this module to your `nuxt.config.ts`: | ||
|
||
```ts | ||
export default defineNuxtConfig({ | ||
... | ||
modules: [ | ||
... | ||
'@nuxthq/studio' | ||
] | ||
}) | ||
``` | ||
|
||
Read more on [Nuxt Studio docs](https://nuxt.studio/docs/projects/setup). | ||
|
||
## Renovate integration | ||
|
||
Install [Renovate GitHub app](https://github.com/apps/renovate/installations/select_target) on your repository and you are good to go. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
export default defineAppConfig({ | ||
ui: { | ||
primary: 'green', | ||
gray: 'slate', | ||
footer: { | ||
bottom: { | ||
left: 'text-sm text-gray-500 dark:text-gray-400', | ||
wrapper: 'border-t border-gray-200 dark:border-gray-800' | ||
} | ||
} | ||
}, | ||
seo: { | ||
siteName: 'Nuxt UI Pro - Docs template', | ||
}, | ||
header: { | ||
logo: { | ||
alt: '', | ||
light: '', | ||
dark: '' | ||
}, | ||
search: true, | ||
colorMode: true, | ||
links: [{ | ||
icon: 'i-simple-icons-github', | ||
to: 'https://github.com/nuxt-ui-pro/docs', | ||
target: '_blank', | ||
'aria-label': 'Docs template on GitHub' | ||
}] | ||
}, | ||
footer: { | ||
credits: 'Copyright © 2023', | ||
colorMode: false, | ||
links: [{ | ||
icon: 'i-simple-icons-nuxtdotjs', | ||
to: 'https://nuxt.com', | ||
target: '_blank', | ||
'aria-label': 'Nuxt Website' | ||
}, { | ||
icon: 'i-simple-icons-discord', | ||
to: 'https://discord.com/invite/ps2h6QT', | ||
target: '_blank', | ||
'aria-label': 'Nuxt UI on Discord' | ||
}, { | ||
icon: 'i-simple-icons-x', | ||
to: 'https://x.com/nuxt_js', | ||
target: '_blank', | ||
'aria-label': 'Nuxt on X' | ||
}, { | ||
icon: 'i-simple-icons-github', | ||
to: 'https://github.com/nuxt/ui', | ||
target: '_blank', | ||
'aria-label': 'Nuxt UI on GitHub' | ||
}] | ||
}, | ||
toc: { | ||
title: 'Table of Contents', | ||
bottom: { | ||
title: 'Community', | ||
edit: 'https://github.com/nuxt-ui-pro/docs/edit/main/content', | ||
links: [{ | ||
icon: 'i-heroicons-star', | ||
label: 'Star on GitHub', | ||
to: 'https://github.com/nuxt/ui', | ||
target: '_blank', | ||
}, { | ||
icon: 'i-heroicons-book-open', | ||
label: 'Nuxt UI Pro docs', | ||
to: 'https://ui.nuxt.com/pro/guide', | ||
target: '_blank', | ||
}, { | ||
icon: 'i-simple-icons-nuxtdotjs', | ||
label: 'Purchase a license', | ||
to: 'https://ui.nuxt.com/pro/purchase', | ||
target: '_blank', | ||
}] | ||
} | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<script setup lang="ts"> | ||
import type { ParsedContent } from '@nuxt/content/dist/runtime/types' | ||
const { seo } = useAppConfig() | ||
const { data: navigation } = await useAsyncData('navigation', () => fetchContentNavigation()) | ||
const { data: files } = useLazyFetch<ParsedContent[]>('/api/search.json', { | ||
default: () => [], | ||
server: false | ||
}) | ||
useHead({ | ||
meta: [ | ||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' } | ||
], | ||
link: [ | ||
{ rel: 'icon', href: '/favicon.ico' } | ||
], | ||
htmlAttrs: { | ||
lang: 'en' | ||
} | ||
}) | ||
useSeoMeta({ | ||
titleTemplate: `%s - ${seo?.siteName}`, | ||
ogSiteName: seo?.siteName, | ||
ogImage: 'https://docs-template.nuxt.dev/social-card.png', | ||
twitterImage: 'https://docs-template.nuxt.dev/social-card.png', | ||
twitterCard: 'summary_large_image' | ||
}) | ||
provide('navigation', navigation) | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<NuxtLoadingIndicator /> | ||
|
||
<Header /> | ||
|
||
<UMain> | ||
<NuxtLayout> | ||
<NuxtPage /> | ||
</NuxtLayout> | ||
</UMain> | ||
|
||
<Footer /> | ||
|
||
<ClientOnly> | ||
<LazyUContentSearch :files="files" :navigation="navigation" /> | ||
</ClientOnly> | ||
|
||
<UNotifications /> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<script setup lang="ts"> | ||
const { footer } = useAppConfig() | ||
</script> | ||
|
||
<template> | ||
<UFooter> | ||
<template #left> | ||
{{ footer.credits }} | ||
</template> | ||
|
||
<template #right> | ||
<UColorModeButton v-if="footer?.colorMode" /> | ||
|
||
<template v-if="footer?.links"> | ||
<UButton | ||
v-for="(link, index) of footer?.links" | ||
:key="index" | ||
v-bind="{ color: 'gray', variant: 'ghost', ...link }" | ||
/> | ||
</template> | ||
</template> | ||
</UFooter> | ||
</template> |
Oops, something went wrong.