Skip to content

Commit

Permalink
Documentation pipeline fix (#32)
Browse files Browse the repository at this point in the history
* Update deploy-gh-pages.yml

npm@5

Signed-off-by: drakon660 <drakon660@gmail.com>

* Update deploy-gh-pages.yml

npm install --package-lock-only

Signed-off-by: drakon660 <drakon660@gmail.com>

* checking another approach

* another one

* try pnpm

* install pnpm

* pnpm version

* node 20 and pnpm@2

* no frozen lockfile

* sample from internet

* missing j

* ignore dead links + npm ci

* npm ci + package lock

* package lock file

* not dot in package-lock.json

* back orginal file

* npm ci

* rollup added

* explicit rollup install

* add vitepress to pipeline

* add vitepress to pipeline fix bash

* only repo name

* pipeline change

* tye.yaml removed

* description fix, push path

---------

Signed-off-by: drakon660 <drakon660@gmail.com>
  • Loading branch information
drakon660 authored Mar 7, 2024
1 parent d6e27d2 commit 33092e2
Show file tree
Hide file tree
Showing 4 changed files with 1,050 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ name: Deploy VitePress site to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

paths:
- 'docs/**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand All @@ -20,7 +20,6 @@ permissions:
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
Expand All @@ -40,6 +39,8 @@ jobs:
run: npm ci
- name: Build with VitePress
run: |
npm i -O @rollup/rollup-linux-x64-gnu
npm add -D vitepress
npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
touch docs/.vitepress/dist/.nojekyll
- name: Upload artifact
Expand Down
5 changes: 3 additions & 2 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
base: '/tye-v2.github.io/',
ignoreDeadLinks: true,
base: '/tye2/',
title: "Tye 2",
description: "Tye",
description: "Tye 2",
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
Expand Down
Loading

0 comments on commit 33092e2

Please sign in to comment.