Skip to content

Commit 53426ae

Browse files
authored
Update dependencies (#118)
* feat: update to elventy 3 * chore: update devDependencies to latest versions for improved performance and compatibility * chore: update GitHub Actions and Webpack configuration for improved compatibility and performance * chore: update teak
1 parent f3fbefc commit 53426ae

11 files changed

Lines changed: 3922 additions & 8108 deletions

.eleventy.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,21 @@ const markdown = require('./lib/markdown');
55
const manifestFilter = require('./lib/manifestFilter');
66
const pageCollection = require('./lib/pageCollection');
77
const selectChildren = require('./lib/selectChildren');
8-
const pluginRss = require('@11ty/eleventy-plugin-rss');
8+
const tocFilter = require('./lib/tocFilter');
99
const options = require('./_data/options');
1010
const site = require('./_data/site');
1111
const redirectCollection = require('./lib/redirectCollection');
1212

13-
module.exports = function (config) {
13+
module.exports = async function (config) {
14+
const { default: pluginRss } = await import('@11ty/eleventy-plugin-rss');
1415
// Copy folders and files.
1516
config.addPassthroughCopy('build');
1617
config.setUseGitIgnore(false);
1718

1819
// Filters.
1920
config.addFilter('manifest', manifestFilter);
2021
config.addFilter('selectChildren', selectChildren);
22+
config.addFilter('toc', tocFilter);
2123

2224
/**
2325
* Date string for Sitemap.
@@ -59,7 +61,6 @@ module.exports = function (config) {
5961
});
6062

6163
// Plugins
62-
config.addPlugin(require('eleventy-plugin-toc'));
6364
// Required for sitemap.
6465
config.addPlugin(pluginRss);
6566

.github/workflows/gh-pages-deploy.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,35 +33,35 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535
- name: Checkout
36-
uses: actions/checkout@v4
36+
uses: actions/checkout@v6
3737
with:
3838
path: ./timber-docs
3939
token: ${{ github.token }}
4040
- name: Checkout
41-
uses: actions/checkout@v4
41+
uses: actions/checkout@v6
4242
with:
4343
repository: timber/timber
4444
path: ./timber
4545
token: ${{ github.token }}
4646
- name: Setup Nodejs
47-
uses: actions/setup-node@v4
47+
uses: actions/setup-node@v6
4848
with:
4949
node-version: 18
5050
- uses: 'shivammathur/setup-php@v2'
5151
with:
5252
php-version: '8.2'
5353
- name: Install composer
54-
uses: ramsey/composer-install@v3
54+
uses: ramsey/composer-install@v4
5555
with:
5656
working-directory: 'timber-docs'
5757
- name: Build files
5858
run: |
5959
cd ./timber-docs
6060
npm run build
6161
- name: Setup Pages
62-
uses: actions/configure-pages@v4
62+
uses: actions/configure-pages@v6
6363
- name: Upload artifact
64-
uses: actions/upload-pages-artifact@v3
64+
uses: actions/upload-pages-artifact@v5
6565
with:
6666
path: './timber-docs/docs'
6767
# Deployment job
@@ -78,4 +78,4 @@ jobs:
7878
steps:
7979
- name: Deploy to GitHub Pages
8080
id: deployment
81-
uses: actions/deploy-pages@v4
81+
uses: actions/deploy-pages@v5

_data/options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
pathPrefix: '/docs/',
2+
pathPrefix: process.env.ELEVENTY_ENV === 'production' ? '/docs/' : '/',
33
dir: {
44
input: 'content',
55
output: 'docs',

0 commit comments

Comments
 (0)