Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3 docs #60

Merged
merged 2 commits into from
May 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
67 changes: 67 additions & 0 deletions .github/workflows/v3-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Sample workflow for building and deploying a VitePress site to GitHub Pages
#
name: Deploy VitePress site to Pages

on:
push:
branches: [v3]
pull_request:
branches: [v3]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: pages
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Not needed if lastUpdated is not enabled
# - uses: pnpm/action-setup@v3 # Uncomment this if you're using pnpm
# - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install dependencies
run: yarn install
- name: Build with VitePress
run: yarn docs:deploy
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/.vitepress/dist

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/download-artifact@v4
with:
path: $GITHUB_WORKSPACE/v3
- run: echo $GITHUB_WORKSPACE
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ lerna-debug.log*

# Turbo
.turbo

# VitePress
**/.vitepress/cache
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"grammarly.selectors": [
{
"language": "markdown",
"scheme": "file"
}
]
}
61 changes: 61 additions & 0 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "Ovee.js",
description: "Simple fully reactive framework for server-side generated markup",

themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: 'Guide', link: '/guide/installation' },
{ text: 'API', link: '/api' }
],

sidebar: {
'/guide/': [
{
text: 'Getting Started',
base: '/guide',
items: [
{ text: 'Installation', link: '/installation' },
{ text: 'Overview', link: '/overview' }
]
},
{
text: 'Usage',
base: '/guide/usage',
items: [
{ text: 'App', link: '/app' },
{ text: 'Modules', link: '/modules' },
{ text: 'Components', link: '/components' },
{ text: 'Event Handling', link: '/event-handling' },
{ text: 'Reactivity', link: '/reactivity' },
{ text: 'Composables', link: '/composables' },
{ text: 'JSX', link: '/jsx' },
]
},
{
text: 'Built-in',
base: '/guide/built-in',
items: [
{ text: 'useAttribute', link: '/use-attribute' },
{ text: 'useDataAttr', link: '/use-data-attr' },
{ text: 'useElementRef', link: '/use-element-ref' },
{ text: 'useModule', link: '/use-module' },
{ text: 'useProp', link: '/use-prop' },
{ text: 'useQueryComponent', link: '/use-query-component' },
{ text: 'useQuerySelector', link: '/use-query-selector' },
{ text: 'useSlots', link: '/use-slots' },
{ text: 'useTemplate', link: '/use-template' },
]
}
],
'/api/': [],
},

socialLinks: [
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }
]
}
})
24 changes: 0 additions & 24 deletions docs/.vuepress/components/mermaid.vue

This file was deleted.

34 changes: 0 additions & 34 deletions docs/.vuepress/config.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/.vuepress/styles/palette.styl

This file was deleted.

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

This file was deleted.

120 changes: 0 additions & 120 deletions docs/addons.md

This file was deleted.

3 changes: 3 additions & 0 deletions docs/api/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# API

🚧 Work is still in progress with this one... 🚧
Loading
Loading