Skip to content

Commit c27fd1d

Browse files
committed
Update docusaurus dependencies, prepare 2.x branch
1 parent cdcc7f6 commit c27fd1d

File tree

7 files changed

+23705
-14757
lines changed

7 files changed

+23705
-14757
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Deploy docs to Pages
22

33
on:
44
push:
5-
branches: ["1.x"]
5+
branches: ["2.x"]
66

77
# Allows you to run this workflow manually from the Actions tab
88
workflow_dispatch:

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Coilpack is a composer package that lets you harness the powerful Laravel ecosys
1313

1414
## Changelog
1515

16-
To view a list of changes in the project please visit the [current changelog](https://github.com/ExpressionEngine/Coilpack/blob/1.x/CHANGELOG.md).
16+
To view a list of changes in the project please visit the [current changelog](https://github.com/ExpressionEngine/Coilpack/blob/2.x/CHANGELOG.md).
1717

1818
## Frequently Asked Questions
1919

docs/upgrade-guide.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
# Upgrade Guide
22

3-
You can upgrade to the latest version of Coilpack by running `composer update` at the root level of your Laravel project. Upgrades that require extra attention or interaction will be documented on this page.
3+
You can upgrade to the latest version of Coilpack by running `composer update --with-all-dependencies` at the root level of your Laravel project. Upgrades that require extra attention or interaction will be documented on this page.
44

55
## Review the Changelog
66

77
It's always a good idea to be aware of what is changing in each release. You can see a list of all changes in our [current changelog](https://github.com/ExpressionEngine/Coilpack/blob/1.x/CHANGELOG.md).
88

99
## Configuration Changes
1010

11-
Between versions the Coilpack configuration file may change. We recommend comparing the most [recent changes](https://github.com/ExpressionEngine/Coilpack/blob/1.x/config/coilpack.php) with your own `config/coilpack.php` file.
11+
Between versions the Coilpack configuration file may change. We recommend comparing the most [recent changes](https://github.com/ExpressionEngine/Coilpack/blob/1.x/config/coilpack.php) with your own `config/coilpack.php` file.
12+
13+
## Upgrading to 2.0 from 1.x
14+
15+
The GraphQL signature for the Range Slider Fieldtype has changed to allow requesting specific subfields like `value`, `from`, and `to`.
16+
17+
`Expressionengine\Coilpack\View\FormTag` has been deprecated in 2.0, so if you were extending this class please be aware and update your subclasses. The new trait `Expressionengine\Coilpack\View\Traits\CreatesHtmlForm` provides similar functionality.

docusaurus.config.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// @ts-check
22
// Note: type annotations allow type checking and IDEs autocompletion
33

4-
const lightCodeTheme = require('prism-react-renderer/themes/github');
5-
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
4+
import {themes as prismThemes} from 'prism-react-renderer';
65

76
/** @type {import('@docusaurus/types').Config} */
87
const config = {
@@ -27,6 +26,10 @@ const config = {
2726
locales: ['en'],
2827
},
2928

29+
future: {
30+
experimental_faster: true,
31+
},
32+
3033
presets: [
3134
[
3235
'classic',
@@ -129,8 +132,8 @@ const config = {
129132
copyright: `Packet Tide owns and develops ExpressionEngine.<br/> © Packet Tide, All Rights Reserved.`,
130133
},
131134
prism: {
132-
theme: lightCodeTheme,
133-
darkTheme: darkCodeTheme,
135+
theme: prismThemes.github,
136+
darkTheme: prismThemes.dracula,
134137
// Unfortunately Twig isn't this easy to support
135138
// https://github.com/facebook/docusaurus/issues/6963
136139
// https://github.com/facebook/docusaurus/issues/8065

0 commit comments

Comments
 (0)