-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #185 from nuxt-modules/refactor/docs
refactor: docs
- Loading branch information
Showing
47 changed files
with
11,185 additions
and
7,011 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 |
---|---|---|
|
@@ -5,5 +5,6 @@ | |
], | ||
"rules": { | ||
"vue/multi-word-component-names": "off" | ||
} | ||
}, | ||
"ignorePatterns": ["**/docs"] | ||
} |
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
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 @@ | ||
# To use Nuxt UI Pro in production | ||
NUXT_UI_PRO_LICENSE= | ||
|
||
# Used when pre-rendering the docs for dynamic OG images | ||
NUXT_PUBLIC_SITE_URL= |
Empty file.
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
shamefully-hoist=true | ||
strict-peer-dependencies=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,35 @@ | ||
# Nuxt Cloudinary docs | ||
|
||
Docs template with [Nuxt UI](https://ui.nuxt.com). | ||
|
||
## Setup | ||
|
||
Install dependencies inside `docs/`: | ||
|
||
```bash | ||
pnpm i | ||
``` | ||
|
||
## Development | ||
|
||
```bash | ||
pnpm run dev | ||
``` | ||
|
||
## Static Generation | ||
|
||
Use the `generate` command to build your application. | ||
|
||
The HTML files will be generated in the .output/public directory and ready to be deployed to any static compatible hosting. | ||
|
||
```bash | ||
pnpm run generate | ||
``` | ||
|
||
## Preview build | ||
|
||
You might want to preview the result of your build locally, to do so, run the following command: | ||
|
||
```bash | ||
pnpm run preview | ||
``` |
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 |
---|---|---|
@@ -1,14 +1,28 @@ | ||
export default defineAppConfig({ | ||
docus: { | ||
title: 'Nuxt Cloudinary', | ||
description: '⚡️ High-performance image delivery and uploading at scale in Nuxt powered by Cloudinary.', | ||
image: '/cover.jpg', | ||
socials: { | ||
twitter: 'jacobandrewsky', | ||
github: 'nuxt-modules/cloudinary' | ||
ui: { | ||
primary: 'green', | ||
gray: 'slate', | ||
button: { | ||
color: { | ||
white: { | ||
link: 'text-white dark:text-white hover:text-gray-300 dark:hover:text-gray-300 underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-gray-500 dark:focus-visible:ring-gray-400 transition-all duration-200', | ||
}, | ||
transparent: { | ||
outline: 'ring-1 ring-inset ring-gray-700 text-white dark:text-white hover:bg-gray-900 disabled:bg-gray-300 dark:hover:bg-gray-900 dark:disabled:bg-gray-300 focus-visible:ring-2 focus-visible:ring-gray-400 dark:focus-visible:ring-gray-400', | ||
}, | ||
}, | ||
}, | ||
header: { | ||
logo: true | ||
}, | ||
elements: { | ||
variables: { | ||
light: { | ||
background: '255 255 255', | ||
foreground: 'var(--color-gray-700)', | ||
}, | ||
dark: { | ||
background: 'var(--color-gray-950)', | ||
foreground: 'var(--color-gray-200)', | ||
}, | ||
}, | ||
} | ||
}, | ||
}) |
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,145 @@ | ||
<script setup> | ||
useServerSeoMeta({ | ||
ogSiteName: "Nuxt Cloudinary", | ||
twitterCard: "summary_large_image", | ||
}); | ||
useHead({ | ||
htmlAttrs: { | ||
lang: "en", | ||
}, | ||
}); | ||
const links = [ | ||
{ | ||
label: "Documentation", | ||
to: "/getting-started", | ||
}, | ||
{ | ||
label: "Playground", | ||
to: "/playground", | ||
}, | ||
{ | ||
label: "Releases", | ||
to: "https://github.com/nuxt-modules/cloudinary/releases", | ||
target: "_blank", | ||
}, | ||
]; | ||
const { data: files } = useLazyFetch("/api/search.json", { | ||
default: () => [], | ||
server: false, | ||
}); | ||
const { data: navigation } = await useAsyncData("navigation", () => | ||
fetchContentNavigation() | ||
); | ||
// Provide | ||
provide("navigation", navigation); | ||
</script> | ||
|
||
<template> | ||
<UHeader :links="links"> | ||
<template #logo> | ||
<Logo /> | ||
</template> | ||
|
||
<template #right> | ||
<UColorModeButton v-if="!$colorMode.forced" /> | ||
<UButton | ||
aria-label="Nuxt Website" | ||
icon="i-simple-icons-nuxtdotjs" | ||
to="https://nuxt.com" | ||
target="_blank" | ||
color="gray" | ||
variant="ghost" | ||
/> | ||
<UButton | ||
aria-label="Nuxt on X" | ||
icon="i-simple-icons-x" | ||
to="https://x.com/nuxt_js" | ||
target="_blank" | ||
color="gray" | ||
variant="ghost" | ||
/> | ||
<UButton | ||
aria-label="Nuxt Cloudinary on GitHub" | ||
icon="i-simple-icons-github" | ||
to="https://github.com/nuxt-modules/cloudinary" | ||
target="_blank" | ||
color="gray" | ||
variant="ghost" | ||
/> | ||
<UButton | ||
aria-label="Cloudinary" | ||
icon="i-simple-icons-cloudinary" | ||
to="https://cloudinary.com" | ||
target="_blank" | ||
color="gray" | ||
variant="ghost" | ||
/> | ||
</template> | ||
<!-- Mobile panel --> | ||
<template v-if="$route.path !== '/'" #panel> | ||
<LazyUDocsSearchButton size="md" class="mb-4 w-full" /> | ||
<LazyUNavigationTree | ||
:links="mapContentNavigation(navigation)" | ||
default-open | ||
:multiple="false" | ||
/> | ||
</template> | ||
</UHeader> | ||
|
||
<NuxtLayout> | ||
<NuxtPage /> | ||
</NuxtLayout> | ||
|
||
<UFooter :links="links"> | ||
<template #left> | ||
<span class="text-sm"> | ||
Published under | ||
<NuxtLink | ||
to="https://github.com/nuxt-modules/Cloudinary" | ||
target="_blank" | ||
class="underline" | ||
>MIT License</NuxtLink | ||
> | ||
</span> | ||
</template> | ||
<template #right> | ||
<UColorModeButton v-if="!$colorMode.forced" /> | ||
<UButton | ||
aria-label="Nuxt Website" | ||
icon="i-simple-icons-nuxtdotjs" | ||
to="https://nuxt.com" | ||
target="_blank" | ||
color="gray" | ||
variant="ghost" | ||
/> | ||
<UButton | ||
aria-label="Nuxt on X" | ||
icon="i-simple-icons-x" | ||
to="https://x.com/nuxt_js" | ||
target="_blank" | ||
color="gray" | ||
variant="ghost" | ||
/> | ||
<UButton | ||
aria-label="Nuxt Cloudinary on GitHub" | ||
icon="i-simple-icons-github" | ||
to="https://github.com/nuxt-modules/cloudinary" | ||
target="_blank" | ||
color="gray" | ||
variant="ghost" | ||
/> | ||
<UButton | ||
aria-label="Cloudinary" | ||
icon="i-simple-icons-cloudinary" | ||
to="https://cloudinary.com" | ||
target="_blank" | ||
color="gray" | ||
variant="ghost" | ||
/> | ||
</template> | ||
</UFooter> | ||
<ClientOnly> | ||
<LazyUDocsSearch :files="files" :navigation="navigation" :links="links" /> | ||
</ClientOnly> | ||
</template> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
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
Oops, something went wrong.