Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
123dfc0
docs: new docs using docus
larbish Jun 4, 2025
bb788ec
up
larbish Jun 4, 2025
0e5d708
up
larbish Jun 5, 2025
4aac7a0
up
larbish Jun 5, 2025
e1e4e7e
content
larbish Jun 5, 2025
39315c4
up
larbish Jun 5, 2025
7e56300
up
larbish Jun 5, 2025
72e4b6f
up
larbish Jun 5, 2025
b5ed7bc
v1
larbish Jun 5, 2025
7905229
up
larbish Jun 5, 2025
e28e73b
up
larbish Jun 5, 2025
0867572
remove docus from workspace
larbish Jun 5, 2025
1f1717f
nightly
larbish Jun 5, 2025
5be8e71
apply studio formatting
larbish Jun 5, 2025
00fdd12
simplify deps
larbish Jun 5, 2025
7d93e06
up deps
larbish Jun 5, 2025
e6f9b88
deps: up
larbish Jun 6, 2025
5c11bbc
docs: fix styling
atinux Jun 6, 2025
2da14ed
up
atinux Jun 6, 2025
52b2ecf
app header body
larbish Jun 6, 2025
821a571
up
larbish Jun 6, 2025
68e7666
use workspace
larbish Jun 6, 2025
9ff5899
up
larbish Jun 6, 2025
e91ce4f
link image module
larbish Jun 6, 2025
346c719
chore(deps): upgrade
larbish Jun 10, 2025
a4cedf3
add ui pro
larbish Jun 10, 2025
3e4d605
up deps
larbish Jun 12, 2025
a2ca077
up docus
larbish Jun 12, 2025
e5232a9
upgrade docus
larbish Jun 12, 2025
7186af9
latest docus alpha
larbish Jun 12, 2025
68fe8a2
final commit rename docus to docs
larbish Jun 16, 2025
841252b
fix workspace
larbish Jun 16, 2025
8ff2370
Merge branch 'main' into docs/docus
larbish Jun 16, 2025
0daa52d
add lint rules on docs folder
larbish Jun 16, 2025
ae3efd7
Merge remote-tracking branch 'origin/main' into docs/docus
danielroe Jun 16, 2025
45d8a0e
chore: reduce diff
danielroe Jun 16, 2025
9d6d4e3
chore: fix build/dev scripts
danielroe Jun 16, 2025
40dc527
chore: revert gitignore
danielroe Jun 16, 2025
0d34c84
chore: update knip
danielroe Jun 16, 2025
42894cd
chore: pin node types
danielroe Jun 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions docs/.env.example

This file was deleted.

63 changes: 0 additions & 63 deletions docs/README.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/app.config.ts

This file was deleted.

137 changes: 0 additions & 137 deletions docs/app.vue

This file was deleted.

55 changes: 55 additions & 0 deletions docs/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
export default defineAppConfig({
header: {
title: 'Nuxt Image',
},
ui: {
colors: {
primary: 'green',
neutral: 'slate',
},
},
uiPro: {
pageHero: {
slots: {
container: 'lg:!grid-cols-3',
wrapper: 'col-span-2',
},
},
},
socials: {
nuxt: 'https://nuxt.com',
x: 'https://x.com/nuxt_js',
},
toc: {
title: 'Table of Contents',
bottom: {
title: 'Community',
links: [
{
icon: 'i-ph-shooting-star-duotone',
label: 'Star on GitHub',
to: 'https://github.com/nuxt/image',
target: '_blank',
},
{
icon: 'i-ph-chat-centered-text-duotone',
label: 'Chat on Discord',
to: 'https://chat.nuxt.dev',
target: '_blank',
},
{
icon: 'i-ph-hand-heart-duotone',
label: 'Become a Sponsor',
to: 'https://github.com/sponsors/nuxt',
target: '_blank',
},
{
icon: 'i-simple-icons-nuxtdotjs',
label: 'Nuxt docs',
to: 'https://nuxt.com',
target: '_blank',
},
],
},
},
})
8 changes: 8 additions & 0 deletions docs/app/assets/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@import "tailwindcss";
@import "@nuxt/ui-pro";

@source "../../../content/**/*";
@source "../../../node_modules/docus/app/**/*";
@theme static {
--font-sans: 'Public Sans', sans-serif;
}
32 changes: 32 additions & 0 deletions docs/app/components/AppHeaderBody.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<script setup lang="ts">
import type { ContentNavigationItem } from '@nuxt/content'

const navigation = inject<Ref<ContentNavigationItem[]>>('navigation')

const nav = computed(() => ([
{
title: 'Documentation',
icon: 'i-heroicons-book-open-solid',
path: '/get-started/installation',
children: navigation!.value,
},
{
title: 'Playground',
icon: 'i-ph-play-duotone',
path: '/playground',
}, {
title: 'Releases',
icon: 'i-heroicons-rocket-launch-solid',
path: 'https://github.com/nuxt/image/releases',
target: '_blank',
},
]))
</script>

<template>
<UContentNavigation
highlight
variant="link"
:navigation="nav"
/>
</template>
20 changes: 20 additions & 0 deletions docs/app/components/AppHeaderCenter.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<script setup lang="ts">
const links = [{
label: 'Documentation',
to: '/get-started/installation',
}, {
label: 'Playground',
to: '/playground',
}, {
label: 'Releases',
to: 'https://github.com/nuxt/image/releases',
target: '_blank',
}]
</script>

<template>
<UNavigationMenu
:items="links"
variant="link"
/>
</template>
6 changes: 6 additions & 0 deletions docs/app/components/DocsAsideLeftTop.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<template>
<UContentSearchButton
:collapsed="false"
class="mb-8 w-full"
/>
</template>
48 changes: 48 additions & 0 deletions docs/app/components/content/CopyCodeInput.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<script setup lang="ts">
const props = defineProps<{
source: string
}>()

const copied = ref(false)

function copy() {
navigator.clipboard.writeText(props.source)
copied.value = true

setTimeout(() => {
copied.value = false
}, 2000)
}
</script>

<template>
<UInput
:model-value="props.source"
aria-label="Copy code to get started"
size="xl"
class="w-88"
disabled
:ui="{ base: 'disabled:cursor-default' }"
>
<template #leading>
<UIcon name="i-ph-terminal" />
</template>
<template
v-if="props.source?.length"
#trailing
>
<UTooltip
text="Copy to clipboard"
:content="{ side: 'right' }"
>
<UButton
:color="copied ? 'success' : 'neutral'"
variant="link"
:icon="copied ? 'i-lucide-copy-check' : 'i-lucide-copy'"
aria-label="Copy to clipboard"
@click="copy"
/>
</UTooltip>
</template>
</UInput>
</template>
Loading