Skip to content

Commit

Permalink
refactor: Update for v5 docs
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Feb 9, 2024
1 parent 45ac670 commit 8d7da60
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Build and Deploy Docs
env:
DOCS_DEST_DIR: /webperf/
DOCS_DEST_DIR: /webperf/v4/
on:
push:
branches:
Expand Down
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ MAJOR_VERSION?=4
TAG?=20-alpine
CONTAINER?=$(shell basename $(dir $(CURDIR)))-v${MAJOR_VERSION}-docs
DOCS_DEV_PORT?=400${MAJOR_VERSION}
DOCS_DEST?=../../../sites/nystudio107/web/docs/webperf
DOCS_DEST?=../../../sites/nystudio107/web/docs/webperf/v4
IMAGE_INFO=$(shell docker image inspect $(CONTAINER):$(TAG))
IMAGE_NAME=${CONTAINER}:${TAG}
DOCKER_RUN=docker container run --rm -it -v "${CURDIR}":/app
Expand Down
13 changes: 7 additions & 6 deletions docs/docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {defineConfig} from 'vitepress'
export default defineConfig({
title: 'Webperf Plugin',
description: 'Documentation for the Webperf plugin',
base: '/docs/webperf/',
base: '/docs/webperf/v4/',
lang: 'en-US',
head: [
['meta', {content: 'https://github.com/nystudio107', property: 'og:see_also',}],
Expand Down Expand Up @@ -31,11 +31,11 @@ export default defineConfig({
{
text: 'Topics',
items: [
{ text: 'Webperf Plugin', link: '/' },
{ text: 'Webperf Overview', link: '/overview.html' },
{ text: 'Performance Resources', link: '/resources.html' },
{ text: 'Configuring Webperf', link: '/configuring.html' },
{ text: 'Using Webperf', link: '/using.html' },
{text: 'Webperf Plugin', link: '/'},
{text: 'Webperf Overview', link: '/overview.html'},
{text: 'Performance Resources', link: '/resources.html'},
{text: 'Configuring Webperf', link: '/configuring.html'},
{text: 'Using Webperf', link: '/using.html'},
],
}
],
Expand All @@ -46,6 +46,7 @@ export default defineConfig({
{text: 'Issues', link: 'https://github.com/nystudio107/craft-webperf/issues'},
{
text: 'v4', items: [
{text: 'v5', link: 'https://nystudio107.com/docs/webperf/'},
{text: 'v4', link: '/'},
{text: 'v3', link: 'https://nystudio107.com/docs/webperf/v3/'},
],
Expand Down

0 comments on commit 8d7da60

Please sign in to comment.