Skip to content

Commit 92b52cb

Browse files
committed
Merge branch 'develop' into trunk
2 parents 06a5b15 + 00c7fd8 commit 92b52cb

File tree

181 files changed

+9975
-3280
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+9975
-3280
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ node_modules
33
tests/*
44
vendor/*
55
bin/*
6-
hookdocs/*
6+
wp-hooks-docs/*
77
docs/*

.gitattributes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/.vscode export-ignore
66
/bin export-ignore
77
/docs export-ignore
8-
/hookdocs export-ignore
8+
/wp-hooks-docs export-ignore
99
/node_modules export-ignore
1010
/release export-ignore
1111
/src export-ignore
@@ -21,7 +21,6 @@
2121
/composer.lock export-ignore
2222
/CONTRIBUTING.md export-ignore
2323
/CREDITS.md export-ignore
24-
/hookdoc-conf.json export-ignore
2524
/LICENSE.md export-ignore
2625
/package-lock.json export-ignore
2726
/package.json export-ignore
@@ -32,3 +31,4 @@
3231
/README.md export-ignore
3332
/tsconfig.json export-ignore
3433
/webpack.config.js export-ignore
34+
/wp-hooks-doc.json export-ignore

.github/hookdoc-tmpl/README.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/hookdoc-tmpl/layout.tmpl

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/hookdoc-tmpl/static/styles-10up.css

Lines changed: 0 additions & 146 deletions
This file was deleted.

.github/workflows/build-docs.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build Developer Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- trunk
7+
8+
jobs:
9+
release:
10+
name: Push (merge) to trunk
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16+
17+
- name: Setup proper PHP version
18+
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
19+
with:
20+
php-version: 8.3
21+
22+
- name: Setup node
23+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
24+
with:
25+
node-version-file: .nvmrc
26+
27+
- name: Install dependencies and build assets
28+
run: |
29+
npm install
30+
npm run build
31+
npm run makepot
32+
composer install --no-dev -o
33+
34+
- name: Build docs
35+
run: |
36+
npm run build:docs
37+
38+
- name: Deploy docs update
39+
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
40+
with:
41+
github_token: ${{ secrets.GITHUB_TOKEN }}
42+
publish_dir: './docs/build'

.github/workflows/cypress.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
run: |
4949
npx mochawesome-merge ./tests/cypress/reports/*.json -o tests/cypress/reports/mochawesome.json
5050
rm -rf ./tests/cypress/reports/mochawesome-*.json
51-
npx mochawesome-json-to-md -p ./tests/cypress/reports/mochawesome.json -o ./tests/cypress/reports/mochawesome.md
51+
npx mochawesome-json-to-md -p ./tests/cypress/reports/mochawesome.json -o ./tests/cypress/reports/mochawesome.md -t ./tests/cypress/template.md
5252
npx mochawesome-report-generator tests/cypress/reports/mochawesome.json -o tests/cypress/reports/
5353
cat ./tests/cypress/reports/mochawesome.md >> $GITHUB_STEP_SUMMARY
5454

.github/workflows/phpcs.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,3 @@ jobs:
5252
git checkout $HEAD_REF
5353
./vendor/bin/phpcs-changed -s --git --git-base origin/${{ github.base_ref }} ${{ steps.changed-files.outputs.all_changed_files }}
5454
55-
vipcs:
56-
name: vipcs
57-
runs-on: ubuntu-latest
58-
59-
steps:
60-
- name: Checkout
61-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
62-
63-
- name: VIPCS check
64-
uses: 10up/wpcs-action@4b2d47a70e3a0a9c08b40a4a90bc3ccbbdc12b3f # v1.7.0
65-
with:
66-
enable_warnings: true
67-
standard: 'WordPress-VIP-Go'
68-
excludes: 'tests'

.github/workflows/plugin-check.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@ jobs:
3737
build-dir: ${{ github.event.repository.name }}
3838
exclude-checks: 'plugin_readme,plugin_updater' # Plugin isn't on .org so excluding these for now.
3939
exclude-directories: 'assets,dist,vendor'
40+
ignore-codes: 'PluginCheck.CodeAnalysis.DiscouragedFunctions.load_plugin_textdomainFound' # Plugin isn't on .org so we load the textdomain manually.
4041
ignore-warnings: true

.github/workflows/stable.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,3 @@ jobs:
3939
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4040
MESSAGE: 'Release: ({sha}) {msg}'
4141

42-
- name: Build docs
43-
run: npm run build:docs
44-
45-
- name: Deploy docs update
46-
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
47-
with:
48-
github_token: ${{ secrets.GITHUB_TOKEN }}
49-
publish_dir: './docs'

0 commit comments

Comments
 (0)