Skip to content

Commit

Permalink
feat: docs add sponsor link
Browse files Browse the repository at this point in the history
  • Loading branch information
productdevbook committed Sep 21, 2022
1 parent 3ec80a2 commit 0de6fa5
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 2 deletions.
5 changes: 5 additions & 0 deletions docs/app.vue
@@ -0,0 +1,5 @@
<template>
<AppLayout>
<NuxtPage />
</AppLayout>
</template>
13 changes: 13 additions & 0 deletions docs/layouts/default.vue
@@ -0,0 +1,13 @@
<template>
<DocsPageContent class="min-h-page">
<slot />
<a
href="https://github.com/sponsors/productdevbook"
target="_blank"
class="fixed px-4 hover:bg-red-400 flex shadow shadow-red-100 font-semibold items-center justify-center bottom-14 right-10 py-2 bg-red-500 row-span-full text-lg text-white rounded-full"
>
<Icon name="uil:github" size="24" class="mr-2" />
<p>sponsor us</p>
</a>
</DocsPageContent>
</template>
23 changes: 23 additions & 0 deletions docs/layouts/page.vue
@@ -0,0 +1,23 @@
<script setup lang="ts">
const { page } = useContent()
</script>

<template>
<div class="flex flex-col min-h-screen">
<AppContainer
:fluid="page.fluid"
:constrained-class="page.constrainedClass"
:padded="page.padded"
>
<slot />
<a
href="https://github.com/sponsors/productdevbook"
target="_blank"
class="fixed px-4 hover:bg-red-400 flex shadow shadow-red-100 font-semibold items-center justify-center bottom-14 right-10 py-2 bg-red-500 row-span-full text-lg text-white rounded-full"
>
<Icon name="uil:github" size="24" class="mr-2" />
<p>sponsor us</p>
</a>
</AppContainer>
</div>
</template>
6 changes: 5 additions & 1 deletion docs/nuxt.config.ts
Expand Up @@ -7,7 +7,11 @@ export default defineNuxtConfig({
routes: ['/', '/blog/announcing-v2']
}
},
modules: ['@nuxtlabs/github-module', '@huntersofbook/plausible-nuxt'],
modules: [
'@nuxtlabs/github-module',
'@huntersofbook/plausible-nuxt',
'nuxt-icon'
],
extends: process.env.DOCUS_THEME_PATH || '@nuxt-themes/docus',
github: {
owner: 'huntersofbook',
Expand Down
3 changes: 2 additions & 1 deletion docs/package.json
Expand Up @@ -14,7 +14,8 @@
"@nuxt/content": "^2.1.1",
"@nuxtlabs/github-module": "npm:@nuxtlabs/github-module-edge@1.3.1-27629534.edb1935",
"monaco-editor-core": "^0.34.0",
"nuxt": "^3.0.0-rc.11"
"nuxt": "^3.0.0-rc.11",
"nuxt-icon": "^0.1.6"
},
"dependencies": {
"@typescript/ata": "^0.9.3",
Expand Down
8 changes: 8 additions & 0 deletions docs/yarn.lock
Expand Up @@ -4614,6 +4614,14 @@ nuxi@3.0.0-rc.11:
optionalDependencies:
fsevents "~2.3.2"

nuxt-icon@^0.1.6:
version "0.1.6"
resolved "https://registry.yarnpkg.com/nuxt-icon/-/nuxt-icon-0.1.6.tgz#141c5929f23e10058a52ecc40143f7f3cd427624"
integrity sha512-kxw2a1VcLpqzFp0q84AhRykXOnVO5p8dEIPF0GWbFiAOK0pn1acCbTVRbgKm4sD3H+g1v3Gm8OYvl71TCDDkqg==
dependencies:
"@iconify/vue" "^3.2.1"
"@nuxt/kit" "^3.0.0-rc.9"

nuxt@^3.0.0-rc.11:
version "3.0.0-rc.11"
resolved "https://registry.yarnpkg.com/nuxt/-/nuxt-3.0.0-rc.11.tgz#08f9861b71b68e322bf8f732f8b28956bb92219f"
Expand Down

0 comments on commit 0de6fa5

Please sign in to comment.