Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Commit

Permalink
feat(docs): add docs via docus and CI/CD pipeline for deployment to s…
Browse files Browse the repository at this point in the history
…idebase.io (#39)

* Added demo docs and sync workflow

* Renamed secret

* Fixed Typo!

* Update 0.index.md

* Updated docs

* Updated workflow trigger

* Updated placeholder docs

* Delete .env.example
  • Loading branch information
zoey-kaiser committed Nov 30, 2022
1 parent 4019675 commit df5b985
Show file tree
Hide file tree
Showing 15 changed files with 19,849 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sidebase/nuxt-session:
- docs/content
- docs/public
sidebase/docs:
- source: docs/content/
dest: content/3.nuxt-session/
- source: docs/public/
dest: public/
16 changes: 16 additions & 0 deletions .github/workflows/sync.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Sync docs
on:
push:
branches:
- main
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@master
- name: Run GitHub File Sync
uses: BetaHuhn/repo-file-sync-action@v1
with:
GH_PAT: ${{ secrets.GH_TOKEN }}
12 changes: 12 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
node_modules
*.iml
.idea
*.log*
.nuxt
.vscode
.DS_Store
coverage
dist
sw.*
.env
.output
2 changes: 2 additions & 0 deletions docs/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
shamefully-hoist=true
strict-peer-dependencies=false
57 changes: 57 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Docus Starter

Starter template for [Docus](https://docus.dev).

## Clone

Clone the repository (using `nuxi`):

```bash
npx nuxi init docs -t nuxt-themes/docus-starter
```

## Setup

Install dependencies:

```bash
yarn install
```

## Development

```bash
yarn dev
```

## Edge Side Rendering

Can be deployed to Vercel Functions, Netlify Functions, AWS, and most Node-compatible environments.

Look at all the available presets [here](https://v3.nuxtjs.org/guide/deploy/presets).

```bash
yarn build
```

## 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
yarn generate
```

## Preview build

You might want to preview the result of your build locally, to do so, run the following command:

```bash
yarn preview
```

---

For a detailed explanation of how things work, check out [Docus](https://docus.dev).
5 changes: 5 additions & 0 deletions docs/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default defineAppConfig({
docus: {
title: 'My Docs'
}
})
8 changes: 8 additions & 0 deletions docs/content/1.index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: nuxt-session docs
aside: false
---

# Oh no! You are a bit early

These docs will be migrated soon, you can find the current documentation [here](https://github.com/sidebase/nuxt-session).
2 changes: 2 additions & 0 deletions docs/content/_dir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
title: nuxt-session
icon: heroicons-outline:clock
3 changes: 3 additions & 0 deletions docs/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default defineNuxtConfig({
extends: '@nuxt-themes/docus'
})
Loading

0 comments on commit df5b985

Please sign in to comment.