-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Yaël GUILLOUX <[email protected]>
- Loading branch information
Showing
150 changed files
with
10,182 additions
and
18,554 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,32 @@ | ||
export default defineAppConfig({ | ||
docus: { | ||
title: 'Docus', | ||
description: 'The best place to start your documentation.', | ||
image: 'https://user-images.githubusercontent.com/904724/185365452-87b7ca7b-6030-4813-a2db-5e65c785bf88.png', | ||
socials: { | ||
twitter: '_docus', | ||
github: 'nuxt-themes/docus', | ||
}, | ||
aside: { | ||
level: 1, | ||
exclude: [] | ||
}, | ||
header: { | ||
logo: true, | ||
showLinkIcon: true, | ||
exclude: [] | ||
}, | ||
footer: { | ||
iconLinks: [ | ||
{ | ||
href: 'https://nuxt.com', | ||
icon: 'IconNuxtLabs' | ||
}, | ||
{ | ||
href: 'https://vuetelescope.com', | ||
icon: 'IconVueTelescope' | ||
} | ||
] | ||
} | ||
} | ||
}) |
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,64 @@ | ||
# Getting Started | ||
|
||
From your Markdown files to a deployed website in few minutes. | ||
|
||
## Play online | ||
|
||
You can start playing with Docus in your browser using Stackblitz: | ||
|
||
:button-link[Play on StackBlitz]{icon="IconStackBlitz" href="https://stackblitz.com/github/nuxt-themes/docus-starter" blank .mr-2} | ||
|
||
## Create a new project | ||
|
||
1. Start a fresh Docus project with: | ||
|
||
```bash [npx] | ||
npx nuxi init docs -t themes/docus | ||
``` | ||
|
||
2. Install the dependencies in the `docs` folder: | ||
|
||
::code-group | ||
|
||
```bash [npm] | ||
npm install | ||
``` | ||
|
||
```bash [yarn] | ||
yarn install | ||
``` | ||
|
||
```bash [pnpm] | ||
pnpm install --shamefully-hoist | ||
``` | ||
|
||
:: | ||
|
||
3. Run the `dev` command to start Docus in development mode: | ||
|
||
::code-group | ||
|
||
```bash [npm] | ||
npm run dev | ||
``` | ||
|
||
```bash [yarn] | ||
yarn dev | ||
``` | ||
|
||
```bash [pnpm] | ||
pnpm run dev | ||
``` | ||
|
||
:: | ||
|
||
::alert{type="success"} | ||
✨ Well done! A browser window should automatically open for <http://localhost:3000> | ||
:: | ||
|
||
|
||
::alert{type="info"} | ||
The starter uses the [Docs Theme](/guide/features). | ||
<br/> | ||
Check out the [Guide section](/guide/theming/usage) about theming to change it. | ||
:: |
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,12 @@ | ||
# Project Structure | ||
|
||
Docus is a Nuxt theme that provides a ready-to-use documentation website, if you are familiar with Nuxt, you will feel right at home. | ||
|
||
## Directory Structure | ||
|
||
```bash | ||
content/ | ||
index.md | ||
app.config.ts | ||
nuxt.config.ts | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
icon: ph:star-duotone | ||
navigation.redirect: /get-started/installation |
2 changes: 1 addition & 1 deletion
2
template/content/3.api/1.components.md → .docs/content/3.api/1.components.md
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
export default defineNuxtConfig({ | ||
extends: '../', | ||
modules: ['@nuxthq/studio'] | ||
}) |
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
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,3 +1,6 @@ | ||
{ | ||
"extends": "@nuxtjs/eslint-config-typescript" | ||
"extends": "@nuxtjs/eslint-config-typescript", | ||
"rules": { | ||
"vue/multi-word-component-names": 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 @@ | ||
export default defineAppConfig({ | ||
docus: { | ||
title: 'MDC' | ||
} | ||
}) |
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,17 @@ | ||
<script setup> | ||
const count = ref(0) | ||
</script> | ||
|
||
<template> | ||
<button @click="count++"> | ||
{{ count }} | ||
</button> | ||
</template> | ||
|
||
<style scoped> | ||
button { | ||
border: 1px #ddd solid; | ||
padding: 3px 10px; | ||
border-radius: 5px; | ||
} | ||
</style> |
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,20 @@ | ||
# Markdown meets Vue Components | ||
|
||
MDC is Markdown with a way to use Vue components with a `:component` syntax fitting perfectly into your markup. No import needed, just use the component name as a tag, supporting props and slots. Writing interative content with Vue is now a breeze. | ||
|
||
::code-group | ||
|
||
```md [MDC] | ||
# Hello MDC | ||
|
||
I am using an inline component :counter-button. | ||
``` | ||
::code-block{label="Preview" preview} | ||
# Hello MDC | ||
|
||
I am using an inline component :counter-button. | ||
:: | ||
|
||
:: | ||
|
||
COucou ca va |
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 @@ | ||
export default defineNuxtConfig({ | ||
extends: '../', | ||
modules: ['@nuxthq/studio'] | ||
}) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
File renamed without changes.
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,70 @@ | ||
export default defineAppConfig({ | ||
docus: { | ||
title: 'Docus', | ||
description: 'The best place to start your documentation.', | ||
image: 'https://user-images.githubusercontent.com/904724/185365452-87b7ca7b-6030-4813-a2db-5e65c785bf88.png', | ||
socials: { | ||
twitter: '@nuxt_js', | ||
github: 'https://github.com/nuxt-themes/docus', | ||
// facebook: '', | ||
// instagram: '', | ||
// youtube: '', | ||
// medium: '' | ||
}, | ||
aside: { | ||
level: 1, | ||
exclude: [] | ||
}, | ||
header: { | ||
title: '', | ||
logo: false, // TODO: handle logo as string for component | ||
showLinkIcon: false, // Toggle links icons in the header | ||
exclude: [] | ||
}, | ||
footer: { | ||
credits: { | ||
icon: 'IconDocus', | ||
text: 'Powered by Docus', | ||
href: 'https://docus.dev' | ||
} | ||
} | ||
} | ||
}) | ||
|
||
declare module '@nuxt/schema' { | ||
interface AppConfigInput { | ||
docus?: { | ||
title?: string | ||
description?: string | ||
image?: string | ||
socials?: { | ||
twitter?: string | ||
github?: string | ||
facebook?: string | ||
instagram?: string | ||
youtube?: string | ||
medium?: string | ||
}, | ||
aside?: { | ||
level: number | ||
exclude?: string[] | ||
}, | ||
header?: { | ||
title?: string, | ||
logo?: boolean | ||
showLinkIcon?: boolean | ||
exclude?: string[] | ||
}, | ||
footer?: { | ||
credits?: boolean | ||
iconLinks?: IconLink[] | ||
} | ||
} | ||
} | ||
} | ||
|
||
interface IconLink { | ||
href: string | ||
icon: string | ||
label?: string | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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.
ef9e7c4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
docus – ./
docus-nuxtlabs.vercel.app
docus-theme.vercel.app
docus-git-dev-nuxtlabs.vercel.app
docus.dev
www.docus.dev