Skip to content

Commit

Permalink
refactor: Update for v5
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Feb 13, 2024
1 parent 9d1e9a8 commit eac2a77
Show file tree
Hide file tree
Showing 7 changed files with 20 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: /cookies/v4/
DOCS_DEST_DIR: /cookies/
on:
push:
branches:
- v4
- v5
paths:
- 'docs/**'
pull_request:
branches:
- v4
- v5
paths:
- 'docs/**'
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion .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 Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/badges/quality-score.png?b=v4)](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/?branch=v4) [![Code Coverage](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/badges/coverage.png?b=v4)](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/?branch=v4) [![Build Status](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/badges/build.png?b=v4)](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/build-status/v4) [![Code Intelligence Status](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/badges/code-intelligence.svg?b=v4)](https://scrutinizer-ci.com/code-intelligence)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/badges/quality-score.png?b=v5)](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/?branch=v5) [![Code Coverage](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/badges/coverage.png?b=v5)](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/?branch=v5) [![Build Status](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/badges/build.png?b=v5)](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/build-status/v5) [![Code Intelligence Status](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/badges/code-intelligence.svg?b=v5)](https://scrutinizer-ci.com/code-intelligence)

# Cookies plugin for Craft CMS 4.x
# Cookies plugin for Craft CMS 5.x

A simple plugin for setting and getting cookies from within [Craft CMS](http://craftcms.com) templates.

![Screenshot](./docs/docs/resources/img/plugin-logo.png)

## Requirements

This plugin requires Craft CMS 4.0.0 or later.
This plugin requires Craft CMS 5.0.0 or later.

**Installation**

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nystudio107/craft-cookies",
"description": "A simple plugin for setting and getting cookies from within Craft CMS templates.",
"type": "craft-plugin",
"version": "4.0.1",
"version": "5.0.0-beta.1",
"keywords": [
"craft",
"cms",
Expand All @@ -23,7 +23,7 @@
}
],
"require": {
"craftcms/cms": "^4.0.0"
"craftcms/cms": "^5.0.0-beta.1"
},
"require-dev": {
"craftcms/ecs": "dev-main",
Expand Down
4 changes: 2 additions & 2 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
MAJOR_VERSION?=4
MAJOR_VERSION?=5
TAG?=20-alpine
CONTAINER?=$(shell basename $(dir $(CURDIR)))-v${MAJOR_VERSION}-docs
DOCS_DEV_PORT?=400${MAJOR_VERSION}
DOCS_DEST?=../../../sites/nystudio107/web/docs/cookies/v4
DOCS_DEST?=../../../sites/nystudio107/web/docs/cookies
IMAGE_INFO=$(shell docker image inspect $(CONTAINER):$(TAG))
IMAGE_NAME=${CONTAINER}:${TAG}
DOCKER_RUN=docker container run --rm -it -v "${CURDIR}":/app
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: 'Cookies Plugin',
description: 'Documentation for the Cookies plugin',
base: '/docs/cookies/v4/',
base: '/docs/cookies/',
lang: 'en-US',
head: [
['meta', {content: 'https://github.com/nystudio107', property: 'og:see_also',}],
Expand All @@ -18,7 +18,7 @@ export default defineConfig({
],
logo: '/img/plugin-logo.svg',
editLink: {
pattern: 'https://github.com/nystudio107/craft-cookies/edit/develop-v4/docs/docs/:path',
pattern: 'https://github.com/nystudio107/craft-cookies/edit/develop-v5/docs/docs/:path',
text: 'Edit this page on GitHub'
},
algolia: {
Expand All @@ -34,10 +34,10 @@ export default defineConfig({
{text: 'Changelog', link: 'https://nystudio107.com/plugins/cookies/changelog'},
{text: 'Issues', link: 'https://github.com/nystudio107/craft-cookies/issues'},
{
text: 'v1', items: [
{text: 'v5', link: 'https://nystudio107.com/docs/cookies/'},
{text: 'v4', link: '/'},
{text: 'v1', link: 'https://nystudio107.com/docs/cookies/v4/'},
text: 'v5', items: [
{text: 'v5', link: '/'},
{text: 'v4', link: 'https://nystudio107.com/docs/cookies/v4/'},
{text: 'v1', link: 'https://nystudio107.com/docs/cookies/v1/'},
],
},
]
Expand Down
6 changes: 3 additions & 3 deletions docs/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
title: Cookies plugin for Craft CMS
description: Documentation for the Cookies plugin. The Cookies plugin allows for setting and getting cookies from within Craft CMS templates
---
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/badges/quality-score.png?b=v4)](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/?branch=v4) [![Code Coverage](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/badges/coverage.png?b=v4)](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/?branch=v4) [![Build Status](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/badges/build.png?b=v4)](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/build-status/v4) [![Code Intelligence Status](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/badges/code-intelligence.svg?b=v4)](https://scrutinizer-ci.com/code-intelligence)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/badges/quality-score.png?b=v5)](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/?branch=v5) [![Code Coverage](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/badges/coverage.png?b=v5)](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/?branch=v5) [![Build Status](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/badges/build.png?b=v5)](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/build-status/v5) [![Code Intelligence Status](https://scrutinizer-ci.com/g/nystudio107/craft-cookies/badges/code-intelligence.svg?b=v5)](https://scrutinizer-ci.com/code-intelligence)

# Cookies plugin for Craft CMS 4.x
# Cookies plugin for Craft CMS 5.x

A simple plugin for setting and getting cookies from within [Craft CMS](http://craftcms.com) templates.

![Screenshot](./resources/img/plugin-logo.png)

## Requirements

This plugin requires Craft CMS 4.0.0 or later.
This plugin requires Craft CMS 5.0.0 or later.

**Installation**

Expand Down

0 comments on commit eac2a77

Please sign in to comment.