mirror of https://github.com/sussy-code/docs.git
Add basic Guider project and remove Nuxt content
This commit is contained in:
parent
e10040dc40
commit
c06bedc93c
|
@ -1,7 +1,6 @@
|
||||||
dist
|
dist
|
||||||
node_modules
|
node_modules
|
||||||
.output
|
.output
|
||||||
.nuxt
|
|
||||||
public
|
public
|
||||||
# Ignore index due to prettier removing setext headers
|
# Ignore index due to prettier removing setext headers
|
||||||
*.index.md
|
*.index.md
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
root: true,
|
||||||
extends: ['@nuxt/eslint-config', 'plugin:prettier/recommended'],
|
extends: ['plugin:@next/next/recommended', 'plugin:prettier/recommended'],
|
||||||
rules: {
|
parserOptions: {
|
||||||
'vue/max-attributes-per-line': 'off',
|
sourceType: 'module',
|
||||||
'vue/multi-word-component-names': 'off',
|
ecmaVersion: 2020,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,71 +1,48 @@
|
||||||
name: Deploy Nuxt site to Pages
|
name: "docs-deploy"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# Runs on pushes targeting the default branch
|
|
||||||
push:
|
push:
|
||||||
branches: ["master"]
|
branches:
|
||||||
|
- master
|
||||||
# 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:
|
jobs:
|
||||||
# Build job
|
|
||||||
build:
|
build:
|
||||||
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v2
|
- uses: pnpm/action-setup@v2
|
||||||
with:
|
with:
|
||||||
version: 8
|
version: 8
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "20"
|
node-version: "20"
|
||||||
cache: pnpm
|
cache: pnpm
|
||||||
- name: Setup Pages
|
|
||||||
uses: actions/configure-pages@v4
|
|
||||||
#with:
|
|
||||||
# static_site_generator: nuxt
|
|
||||||
- name: Restore cache
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
dist
|
|
||||||
.nuxt
|
|
||||||
key: ${{ runner.os }}-nuxt-build-${{ hashFiles('dist') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-nuxt-build-
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
- name: Static HTML export with Nuxt
|
|
||||||
run: pnpm generate
|
- name: Build
|
||||||
env:
|
run: pnpm build
|
||||||
NUXT_APP_BASE_URL: /docs/
|
|
||||||
- name: Upload artifact
|
- name: Upload
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: ./dist
|
path: ./out
|
||||||
|
|
||||||
# Deployment job
|
|
||||||
deploy:
|
deploy:
|
||||||
|
needs: build
|
||||||
|
permissions:
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
environment:
|
environment:
|
||||||
name: github-pages
|
name: github-pages
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
|
|
|
@ -2,11 +2,11 @@ node_modules
|
||||||
*.iml
|
*.iml
|
||||||
.idea
|
.idea
|
||||||
*.log*
|
*.log*
|
||||||
.nuxt
|
|
||||||
.vscode
|
.vscode
|
||||||
.DS_Store
|
.DS_Store
|
||||||
coverage
|
coverage
|
||||||
dist
|
dist
|
||||||
sw.*
|
sw.*
|
||||||
.env
|
.env
|
||||||
.output
|
out
|
||||||
|
.next
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
export default defineAppConfig({
|
|
||||||
docus: {
|
|
||||||
title: 'movie-web',
|
|
||||||
description:
|
|
||||||
'movie-web is a free and open source streaming site, no ads, no tracking, no nonsense.',
|
|
||||||
url: 'https://movie-web.github.io/docs',
|
|
||||||
image: '/docs/cover.png',
|
|
||||||
socials: {
|
|
||||||
github: 'movie-web/movie-web',
|
|
||||||
},
|
|
||||||
github: {
|
|
||||||
repo: 'docs',
|
|
||||||
owner: 'movie-web',
|
|
||||||
branch: 'master',
|
|
||||||
dir: 'content',
|
|
||||||
},
|
|
||||||
aside: {
|
|
||||||
level: 0,
|
|
||||||
exclude: [],
|
|
||||||
},
|
|
||||||
header: {
|
|
||||||
logo: true,
|
|
||||||
},
|
|
||||||
footer: {
|
|
||||||
credits: {
|
|
||||||
icon: '',
|
|
||||||
text: 'Made with 💜',
|
|
||||||
href: 'https://github.com/movie-web',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
/// <reference types="next" />
|
||||||
|
/// <reference types="next/image-types/global" />
|
||||||
|
|
||||||
|
// NOTE: This file should not be edited
|
||||||
|
// see https://nextjs.org/docs/basic-features/typescript for more information.
|
|
@ -0,0 +1,12 @@
|
||||||
|
import { guider } from '@neato/guider';
|
||||||
|
|
||||||
|
const withGuider = guider({
|
||||||
|
// The location of your theme file, created in the next step
|
||||||
|
themeConfig: './theme.config.tsx',
|
||||||
|
});
|
||||||
|
|
||||||
|
export default withGuider({
|
||||||
|
// These are the normal Next.JS settings.
|
||||||
|
// Check out Next.JS docs: https://nextjs.org/docs/app/api-reference/next-config-js
|
||||||
|
output: 'export',
|
||||||
|
});
|
|
@ -1,11 +0,0 @@
|
||||||
export default defineNuxtConfig({
|
|
||||||
// https://github.com/nuxt-themes/docus
|
|
||||||
extends: '@nuxt-themes/docus',
|
|
||||||
devtools: { enabled: true },
|
|
||||||
|
|
||||||
app: {
|
|
||||||
head: {
|
|
||||||
link: [{ rel: 'icon', type: 'image/x-icon', href: '/docs/favicon.ico' }],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
|
32
package.json
32
package.json
|
@ -1,25 +1,27 @@
|
||||||
{
|
{
|
||||||
"name": "docus-starter",
|
"name": "movie-web-docs",
|
||||||
"version": "0.1.0",
|
"version": "0.2.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxi dev",
|
"dev": "next dev",
|
||||||
"build": "nuxi build",
|
"build": "next build",
|
||||||
"generate": "nuxi generate",
|
"start": "next start",
|
||||||
"preview": "nuxi preview",
|
"lint": "next lint",
|
||||||
"lint": "eslint .",
|
"lint:fix": "next lint --fix"
|
||||||
"lint:fix": "eslint --fix ."
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nuxt-themes/docus": "latest",
|
"@next/eslint-plugin-next": "^14.1.4",
|
||||||
"@nuxt/devtools": "^1.0.6",
|
"@types/react": "18.2.73",
|
||||||
"@nuxt/eslint-config": "^0.2.0",
|
|
||||||
"@nuxtjs/plausible": "^0.2.4",
|
|
||||||
"@types/node": "^20.10.6",
|
|
||||||
"eslint": "^8.56.0",
|
"eslint": "^8.56.0",
|
||||||
"eslint-config-prettier": "^9.1.0",
|
"eslint-config-prettier": "^9.1.0",
|
||||||
"eslint-plugin-prettier": "^5.1.2",
|
"eslint-plugin-prettier": "^5.1.2",
|
||||||
"nuxt": "^3.9.0",
|
"prettier": "^3.1.1",
|
||||||
"prettier": "^3.1.1"
|
"typescript": "5.4.3"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@neato/guider": "^0.1.3",
|
||||||
|
"next": "^14.1.4",
|
||||||
|
"react": "^18.2.0",
|
||||||
|
"react-dom": "^18.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
import { createNotFoundPage } from '@neato/guider/client';
|
||||||
|
|
||||||
|
export default createNotFoundPage();
|
|
@ -0,0 +1,4 @@
|
||||||
|
import '@neato/guider/style.css';
|
||||||
|
import { createGuiderApp } from '@neato/guider/client';
|
||||||
|
|
||||||
|
export default createGuiderApp();
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Hello world
|
||||||
|
This is my first `@neato/guider` page!
|
8807
pnpm-lock.yaml
8807
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
"extends": ["@nuxtjs"],
|
|
||||||
"lockFileMaintenance": {
|
|
||||||
"enabled": true
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
import { defineTheme, directory, link } from '@neato/guider/theme';
|
||||||
|
|
||||||
|
export default defineTheme({
|
||||||
|
directories: [
|
||||||
|
directory("main", { // ID of your directory (unique per site), used for referencing in your page files
|
||||||
|
sidebar: [
|
||||||
|
// Creates a link in your sidebar, add more below it
|
||||||
|
link("Home", "/")
|
||||||
|
]
|
||||||
|
})
|
||||||
|
],
|
||||||
|
});
|
|
@ -1,18 +0,0 @@
|
||||||
import { defineTheme } from 'pinceau';
|
|
||||||
|
|
||||||
export default defineTheme({
|
|
||||||
color: {
|
|
||||||
primary: {
|
|
||||||
50: '#F5E5FF',
|
|
||||||
100: '#E7CCFF',
|
|
||||||
200: '#D4A9FF',
|
|
||||||
300: '#BE85FF',
|
|
||||||
400: '#A861FF',
|
|
||||||
500: '#8E3DFF',
|
|
||||||
600: '#7F36D4',
|
|
||||||
700: '#662CA6',
|
|
||||||
800: '#552578',
|
|
||||||
900: '#441E49',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
|
|
@ -1,3 +1,28 @@
|
||||||
{
|
{
|
||||||
"extends": "./.nuxt/tsconfig.json"
|
"compilerOptions": {
|
||||||
|
"lib": [
|
||||||
|
"dom",
|
||||||
|
"dom.iterable",
|
||||||
|
"esnext"
|
||||||
|
],
|
||||||
|
"allowJs": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"strict": false,
|
||||||
|
"noEmit": true,
|
||||||
|
"incremental": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"module": "esnext",
|
||||||
|
"moduleResolution": "Bundler",
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"isolatedModules": true,
|
||||||
|
"jsx": "preserve"
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"next-env.d.ts",
|
||||||
|
"**/*.ts",
|
||||||
|
"**/*.tsx"
|
||||||
|
],
|
||||||
|
"exclude": [
|
||||||
|
"node_modules"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue