Skip to content
This repository was archived by the owner on Apr 20, 2026. It is now read-only.

Commit ae93a8a

Browse files
author
berfinyuksel
committed
Use reusable documentation workflow and disable old docs workflow
1 parent 2a65588 commit ae93a8a

File tree

3 files changed

+182
-70
lines changed

3 files changed

+182
-70
lines changed

.github/workflows/docs.yaml

Lines changed: 74 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,75 @@
1+
# Original docs workflow disabled in favor of new-docs.yml
2+
# This file is kept only for reference. The active workflow is .github/workflows/new-docs.yml
3+
# Backup of the original content: .github/workflows/docs.yaml.bak
14

2-
name: "Documentation"
3-
4-
on:
5-
pull_request_target:
6-
branches:
7-
- "[0-9]+.[0-9]+"
8-
- "[0-9]+.x"
9-
paths:
10-
- 'doc/**'
11-
- '.github/workflows/docs.yaml'
12-
- 'README.md'
13-
push:
14-
branches:
15-
- "[0-9]+.[0-9]+"
16-
- "[0-9]+.x"
17-
- "*_actions"
18-
paths:
19-
- 'doc/**'
20-
- '.github/workflows/docs.yaml'
21-
- 'README.md'
22-
23-
permissions:
24-
contents: read
25-
26-
jobs:
27-
docs:
28-
name: "Generate docs Pimcore Docs Generator"
29-
runs-on: "ubuntu-latest"
30-
steps:
31-
- name: "Checkout code"
32-
uses: "actions/checkout@v4"
33-
with:
34-
ref: ${{ github.event.pull_request.head.sha }}
35-
36-
- name: "Checkout Docs Generator"
37-
uses: "actions/checkout@v4"
38-
with:
39-
repository: "pimcore/docs-generator"
40-
ref: "main"
41-
path: "./docs-generator"
42-
token: ${{ secrets.DOCS_GENERATOR_ACCESS_TOKEN }}
43-
44-
- name: "Install Node"
45-
uses: actions/setup-node@v4
46-
with:
47-
node-version: 'lts/*'
48-
registry-url: 'https://registry.npmjs.org'
49-
50-
- name: Prepare Docs
51-
working-directory: "./docs-generator"
52-
run: |
53-
mkdir docs
54-
# copy docs to working directory
55-
cp -r ../doc ./docs/
56-
57-
# copy readme to working directory
58-
cp -r ../README.md ./docs/
59-
60-
# copy index page
61-
cp bin/resources/00_index_empty.md ./docs/00_index.md
62-
63-
# use special docusaurus config (to exclude search plugin) and check for broken links
64-
mv docusaurus.config.js.repos-tests docusaurus.config.js
65-
66-
- name: Build Docs
67-
working-directory: "./docs-generator"
68-
run: |
69-
npm install
70-
npm run build
71-
5+
#
6+
# name: "Documentation"
7+
#
8+
# on:
9+
# pull_request_target:
10+
# branches:
11+
# - "[0-9]+.[0-9]+"
12+
# - "[0-9]+.x"
13+
# paths:
14+
# - 'doc/**'
15+
# - '.github/workflows/docs.yaml'
16+
# - 'README.md'
17+
# push:
18+
# branches:
19+
# - "[0-9]+.[0-9]+"
20+
# - "[0-9]+.x"
21+
# - "*_actions"
22+
# paths:
23+
# - 'doc/**'
24+
# - '.github/workflows/docs.yaml'
25+
# - 'README.md'
26+
#
27+
# permissions:
28+
# contents: read
29+
#
30+
# jobs:
31+
# docs:
32+
# name: "Generate docs Pimcore Docs Generator"
33+
# runs-on: "ubuntu-latest"
34+
# steps:
35+
# - name: "Checkout code"
36+
# uses: "actions/checkout@v4"
37+
# with:
38+
# ref: ${{ github.event.pull_request.head.sha }}
39+
#
40+
# - name: "Checkout Docs Generator"
41+
# uses: "actions/checkout@v4"
42+
# with:
43+
# repository: "pimcore/docs-generator"
44+
# ref: "main"
45+
# path: "./docs-generator"
46+
# token: ${{ secrets.DOCS_GENERATOR_ACCESS_TOKEN }}
47+
#
48+
# - name: "Install Node"
49+
# uses: actions/setup-node@v4
50+
# with:
51+
# node-version: 'lts/*'
52+
# registry-url: 'https://registry.npmjs.org'
53+
#
54+
# - name: Prepare Docs
55+
# working-directory: "./docs-generator"
56+
# run: |
57+
# mkdir docs
58+
# # copy docs to working directory
59+
# cp -r ../doc ./docs/
60+
#
61+
# # copy readme to working directory
62+
# cp -r ../README.md ./docs/
63+
#
64+
# # copy index page
65+
# cp bin/resources/00_index_empty.md ./docs/00_index.md
66+
#
67+
# # use special docusaurus config (to exclude search plugin) and check for broken links
68+
# mv docusaurus.config.js.repos-tests docusaurus.config.js
69+
#
70+
# - name: Build Docs
71+
# working-directory: "./docs-generator"
72+
# run: |
73+
# npm install
74+
# npm run build
75+
#

.github/workflows/docs.yaml.bak

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
2+
name: "Documentation"
3+
4+
on:
5+
pull_request_target:
6+
branches:
7+
- "[0-9]+.[0-9]+"
8+
- "[0-9]+.x"
9+
paths:
10+
- 'doc/**'
11+
- '.github/workflows/docs.yaml'
12+
- 'README.md'
13+
push:
14+
branches:
15+
- "[0-9]+.[0-9]+"
16+
- "[0-9]+.x"
17+
- "*_actions"
18+
paths:
19+
- 'doc/**'
20+
- '.github/workflows/docs.yaml'
21+
- 'README.md'
22+
23+
permissions:
24+
contents: read
25+
26+
jobs:
27+
docs:
28+
name: "Generate docs Pimcore Docs Generator"
29+
runs-on: "ubuntu-latest"
30+
steps:
31+
- name: "Checkout code"
32+
uses: "actions/checkout@v4"
33+
with:
34+
ref: ${{ github.event.pull_request.head.sha }}
35+
36+
- name: "Checkout Docs Generator"
37+
uses: "actions/checkout@v4"
38+
with:
39+
repository: "pimcore/docs-generator"
40+
ref: "main"
41+
path: "./docs-generator"
42+
token: ${{ secrets.DOCS_GENERATOR_ACCESS_TOKEN }}
43+
44+
- name: "Install Node"
45+
uses: actions/setup-node@v4
46+
with:
47+
node-version: 'lts/*'
48+
registry-url: 'https://registry.npmjs.org'
49+
50+
- name: Prepare Docs
51+
working-directory: "./docs-generator"
52+
run: |
53+
mkdir docs
54+
# copy docs to working directory
55+
cp -r ../doc ./docs/
56+
57+
# copy readme to working directory
58+
cp -r ../README.md ./docs/
59+
60+
# copy index page
61+
cp bin/resources/00_index_empty.md ./docs/00_index.md
62+
63+
# use special docusaurus config (to exclude search plugin) and check for broken links
64+
mv docusaurus.config.js.repos-tests docusaurus.config.js
65+
66+
- name: Build Docs
67+
working-directory: "./docs-generator"
68+
run: |
69+
npm install
70+
npm run build
71+

.github/workflows/new-docs.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: "Documentation (Reusable)"
2+
3+
on:
4+
pull_request_target:
5+
branches:
6+
- "[0-9]+.[0-9]+"
7+
- "[0-9]+.x"
8+
- "reusable-workflows"
9+
paths:
10+
- "doc/**"
11+
- ".github/workflows/docs.yaml"
12+
- ".github/workflows/docs.yml"
13+
- ".github/workflows/new-docs.yml"
14+
- "README.md"
15+
push:
16+
branches:
17+
- "[0-9]+.[0-9]+"
18+
- "[0-9]+.x"
19+
- "*_actions"
20+
- "reusable-workflows"
21+
paths:
22+
- "doc/**"
23+
- ".github/workflows/docs.yaml"
24+
- ".github/workflows/docs.yml"
25+
- ".github/workflows/new-docs.yml"
26+
- "README.md"
27+
28+
permissions:
29+
contents: read
30+
31+
jobs:
32+
docs:
33+
uses: pimcore/workflows-collection-public/.github/workflows/reusable-docs.yaml@reusable-workflows
34+
with:
35+
docs_path: "doc"
36+
secrets:
37+
DOCS_GENERATOR_ACCESS_TOKEN: ${{ secrets.DOCS_GENERATOR_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)