Skip to content

Commit

Permalink
feat: Update for v5
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Oct 8, 2024
1 parent a8481cc commit 63fc22c
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 20 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Build and Deploy Docs
env:
DOCS_DEST_DIR: /recipe/v4
DOCS_DEST_DIR: /recipe
on:
push:
branches:
- v4
- v5
paths:
- 'docs/**'
pull_request:
branches:
- v4
- v5
paths:
- 'docs/**'
workflow_dispatch:
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/code-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request: null
push:
branches:
- develop-v4
- develop-v5
workflow_dispatch:
permissions:
contents: read
Expand All @@ -14,11 +14,9 @@ jobs:
fail-fast: false
matrix:
actions:
-
name: 'PHPStan'
- name: 'PHPStan'
run: composer phpstan
-
name: 'Coding Standards'
- name: 'Coding Standards'
run: composer fix-cs
name: ${{ matrix.actions.name }}
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MAJOR_VERSION?=4
MAJOR_VERSION?=5
PLUGINDEV_PROJECT_DIR?=/Users/andrew/webdev/sites/plugindev/cms_v${MAJOR_VERSION}/
VENDOR?=nystudio107
PROJECT_PATH?=${VENDOR}/$(shell basename $(CURDIR))
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nystudio107/craft-recipe",
"description": "A comprehensive recipe FieldType for Craft CMS that includes metric/imperial conversion, portion calculation, and JSON-LD microdata support",
"type": "craft-plugin",
"version": "4.0.9",
"version": "5.0.0",
"keywords": [
"craft",
"cms",
Expand All @@ -23,14 +23,14 @@
}
],
"require": {
"craftcms/cms": "^4.0.0"
"craftcms/cms": "^5.0.0"
},
"require-dev": {
"craftcms/ecs": "dev-main",
"craftcms/feed-me": "^5.0.0",
"craftcms/feed-me": "^6.0.0",
"craftcms/phpstan": "dev-main",
"craftcms/rector": "dev-main",
"nystudio107/craft-seomatic": "^4.0.0"
"nystudio107/craft-seomatic": "^5.0.0"
},
"scripts": {
"phpstan": "phpstan --ansi --memory-limit=1G",
Expand Down
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MAJOR_VERSION?=4
MAJOR_VERSION?=5
TAG?=20-alpine
CONTAINER?=$(shell basename $(dir $(CURDIR)))-v${MAJOR_VERSION}-docs
DOCS_DEV_PORT?=400${MAJOR_VERSION}
Expand Down
12 changes: 6 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: 'Recipe Plugin',
description: 'Documentation for the Recipe plugin',
base: '/docs/recipe/v4/',
base: '/docs/recipe/',
lang: 'en-US',
head: [
['meta', {content: 'https://github.com/nystudio107', property: 'og:see_also',}],
Expand All @@ -18,15 +18,15 @@ export default defineConfig({
],
logo: '/img/plugin-logo.svg',
editLink: {
pattern: 'https://github.com/nystudio107/craft-recipe/edit/develop-v4/docs/docs/:path',
pattern: 'https://github.com/nystudio107/craft-recipe/edit/develop-v5/docs/docs/:path',
text: 'Edit this page on GitHub'
},
algolia: {
appId: 'ANVOBU7GYX',
apiKey: '66d1888afb505fa3d1b0342a487706ff',
indexName: 'recipe',
searchParameters: {
facetFilters: ["version:v4"],
facetFilters: ["version:v5"],
},
},
lastUpdatedText: 'Last Updated',
Expand All @@ -37,9 +37,9 @@ export default defineConfig({
{text: 'Changelog', link: 'https://nystudio107.com/plugins/recipe/changelog'},
{text: 'Issues', link: 'https://github.com/nystudio107/craft-recipe/issues'},
{
text: 'v4', items: [
{text: 'v5', link: 'https://nystudio107.com/docs/recipe/'},
{text: 'v4', link: '/'},
text: 'v5', items: [
{text: 'v5', link: '/'},
{text: 'v4', link: 'https://nystudio107.com/docs/recipe/v4/'},
{text: 'v1', link: 'https://nystudio107.com/docs/recipe/v1/'},
],
},
Expand Down

0 comments on commit 63fc22c

Please sign in to comment.