Skip to content

Commit 0a27bca

Browse files
authored
Merge pull request #323 from patchlevel/prepare-docs
Migrate docs from mkdocs to patchlevel.dev
2 parents 8021082 + fc4ef31 commit 0a27bca

19 files changed

Lines changed: 336 additions & 561 deletions

File tree

.github/workflows/docs-build-try.yml

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

.github/workflows/docs-build.yml

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

.github/workflows/docs-deploy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish docs
2+
3+
on:
4+
push:
5+
branches:
6+
- "[0-9]+.[0-9]+.x"
7+
release:
8+
types:
9+
- published
10+
11+
jobs:
12+
trigger:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Trigger workflow in other repo
16+
run: |
17+
curl -L -X POST \
18+
-H "Accept: application/vnd.github+json" \
19+
-H "Authorization: Bearer ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}" \
20+
-H "X-GitHub-Api-Version: 2026-03-10" \
21+
https://api.github.com/repos/patchlevel/patchlevel.dev/actions/workflows/prod-deployment.yaml/dispatches \
22+
-d '{"ref":"main"}'

bin/docs-extract-php-code

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if (file_exists($targetDir)) {
2323
mkdir($targetDir);
2424

2525
$finder = new Symfony\Component\Finder\Finder();
26-
$finder->files()->in(__DIR__ . '/../docs/pages')->name('*.md');
26+
$finder->files()->in(__DIR__ . '/../docs')->name('*.md');
2727

2828
foreach ($finder as $file) {
2929
$fileName = pathinfo($file->getBasename(), PATHINFO_FILENAME);

bin/docs-inject-php-code

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if (!file_exists($targetDir)) {
2525
}
2626

2727
$finder = new Symfony\Component\Finder\Finder();
28-
$finder->files()->in(__DIR__ . '/../docs/pages')->name('*.md');
28+
$finder->files()->in(__DIR__ . '/../docs')->name('*.md');
2929

3030
foreach ($finder as $file) {
3131
$fileName = pathinfo($file->getBasename(), PATHINFO_FILENAME);

0 commit comments

Comments
 (0)