Skip to content

Commit 08091d7

Browse files
authored
Merge pull request #149 from manchenkoff/1-docs
[Docs] Nuxt Content project for Github Pages
2 parents 6704920 + 32b41fa commit 08091d7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+14516
-376
lines changed

.editorconfig

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
name: Nuxt [Validate]
32
env:
43
node_version: 20

.github/workflows/docs.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Nuxt [Docs]
2+
env:
3+
node_version: 20
4+
concurrency:
5+
group: "pages"
6+
cancel-in-progress: false
7+
on:
8+
push:
9+
branches: ["main"]
10+
workflow_dispatch:
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: ${{ env.node_version }}
25+
- name: Enable corepack
26+
run: corepack enable
27+
- name: Install dependencies
28+
working-directory: ./docs
29+
run: npx nypm@latest i
30+
- name: Generate documentation
31+
run: pnpm generate
32+
working-directory: ./docs
33+
- name: Upload artifact
34+
uses: actions/upload-pages-artifact@v3
35+
with:
36+
path: ./docs/.output/public
37+
deploy:
38+
environment:
39+
name: github-pages
40+
url: ${{ steps.deployment.outputs.page_url }}
41+
runs-on: ubuntu-latest
42+
needs: build
43+
steps:
44+
- name: Deploy to GitHub Pages
45+
id: deployment
46+
uses: actions/deploy-pages@v4

.github/workflows/prerelease.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
name: Nuxt [Pre-Release]
32
env:
43
node_version: 20

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
name: Nuxt [Release]
32
env:
43
node_version: 20

docs/.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Public URL, used for OG Image when running nuxt generate
2+
NUXT_PUBLIC_SITE_URL=https://manchenkoff.github.com/nuxt-laravel-echo

docs/.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: ci
2+
3+
on: push
4+
5+
jobs:
6+
ci:
7+
runs-on: ${{ matrix.os }}
8+
9+
strategy:
10+
matrix:
11+
os: [ubuntu-latest]
12+
node: [22]
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v5
17+
18+
- name: Install pnpm
19+
uses: pnpm/action-setup@v4
20+
21+
- name: Install node
22+
uses: actions/setup-node@v5
23+
with:
24+
node-version: ${{ matrix.node }}
25+
cache: pnpm
26+
27+
- name: Install dependencies
28+
run: pnpm install
29+
30+
- name: Lint
31+
run: pnpm run lint
32+
33+
- name: Typecheck
34+
run: pnpm run typecheck

docs/.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Nuxt dev/build outputs
2+
.output
3+
.data
4+
.nuxt
5+
.nitro
6+
.cache
7+
dist
8+
9+
# Node dependencies
10+
node_modules
11+
12+
# Logs
13+
logs
14+
*.log
15+
16+
# Misc
17+
.DS_Store
18+
.fleet
19+
.idea
20+
21+
# Local env files
22+
.env
23+
.env.*
24+
!.env.example
25+
26+
# VSC
27+
.history

docs/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shamefully-hoist=true

docs/README.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Nuxt - Laravel Echo Docs
2+
3+
This directory contains Nuxt Content project to deploy
4+
module documentation to Github Pages.
5+
6+
## Setup
7+
8+
Make sure to install the dependencies:
9+
10+
```bash
11+
pnpm install
12+
```
13+
14+
## Development Server
15+
16+
Start the development server on `http://localhost:3000`:
17+
18+
```bash
19+
pnpm dev
20+
```
21+
22+
## Production
23+
24+
Build the application for production:
25+
26+
```bash
27+
pnpm build
28+
```
29+
30+
Or generate all pages for static hosting via:
31+
32+
```bash
33+
pnpm generate
34+
```
35+
36+
Locally preview production build:
37+
38+
```bash
39+
pnpm preview
40+
```
41+
42+
## Validation
43+
44+
To check code quality, run the following command:
45+
46+
```bash
47+
pnpm validate
48+
```
49+
50+
or separately:
51+
52+
```bash
53+
pnpm lint
54+
pnpm typecheck
55+
```

0 commit comments

Comments
 (0)