Skip to content

Commit 1cf94e4

Browse files
authored
Feature/refactor examples (#2230)
* refactor: move examples to live in website * feature: add documentation links to examples * feature: add more examples to types * feature: merge example description with option description * chore: added more examples to website * refactor: layout of documentation and playground - expand to use whole width - reorganize elements in playground slightly
1 parent abfafeb commit 1cf94e4

1,195 files changed

Lines changed: 5493 additions & 91018 deletions

File tree

Some content is hidden

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

.github/workflows/job-examples.yml

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

.github/workflows/test-suite.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
- '.github/actions/**'
88
- 'src/**'
99
- 'tools/**'
10-
- 'examples/**'
1110
- 'composer.lock'
1211
- 'composer.json'
1312
- 'phpunit.xml.dist'
@@ -18,7 +17,6 @@ on:
1817
- '.github/actions/**'
1918
- 'src/**'
2019
- 'tools/**'
21-
- 'examples/**'
2220
- 'composer.lock'
2321
- 'composer.json'
2422
- 'phpunit.xml.dist'
@@ -40,10 +38,6 @@ jobs:
4038
dependencies: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && '["locked","lowest","highest"]' || '["locked"]' }}
4139
secrets: inherit
4240

43-
examples:
44-
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
45-
uses: ./.github/workflows/job-examples.yml
46-
4741
extension-tests:
4842
uses: ./.github/workflows/job-extension-tests.yml
4943

.php-cs-fixer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
__DIR__ . '/web/landing/src',
3030
__DIR__ . '/web/landing/tests',
3131
__DIR__ . '/web/landing/bin',
32-
__DIR__ . '/examples',
3332
__DIR__ . '/tools/rector/src',
3433
__DIR__ . '/tools/phpunit/extension/telemetry/src',
3534
__DIR__ . '/tools/phpunit/extension/telemetry/tests',

composer.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,6 @@
278278
"build": [
279279
"@test:docs",
280280
"@test:monorepo",
281-
"@test:examples",
282281
"@static:analyze",
283282
"@test",
284283
"@test:mutation"
@@ -467,14 +466,11 @@
467466
"tools/phpunit/vendor/bin/phpunit --testsuite=tool-phpunit-telemetry-unit --log-junit ./var/phpunit/logs/tool-phpunit-telemetry-unit.junit.xml --coverage-clover=./var/phpunit/coverage/clover/tool-phpunit-telemetry-unit.coverage.xml"
468467
],
469468
"test:docs": [
470-
"docker run -t --rm -v $PWD:/app norberttech/md-link-linter --exclude=vendor --exclude=.scratchpad --exclude=examples --exclude=documentation ."
469+
"docker run -t --rm -v $PWD:/app norberttech/md-link-linter --exclude=vendor --exclude=.scratchpad --exclude=documentation ."
471470
],
472471
"test:website": [
473472
"composer test --working-dir=./web/landing"
474473
],
475-
"test:examples": [
476-
"./examples/run.php"
477-
],
478474
"test:mutation": [
479475
"Composer\\Config::disableProcessTimeout",
480476
"tools/infection/vendor/bin/infection --threads=max"

documentation/examples.md

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

documentation/style-guide.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
</thead>
2323
<tbody>
2424
<tr>
25-
<td><img src="assets/img/sunset_orange.png" alt="Sunset Orange" title="Sunset Orange" width="100px" height="100px"></td>
26-
<td><img src="assets/img/light_slate_blue.png" alt="Light Slate Blue" title="Light Slate Blue" width="100px" height="100px"></td>
27-
<td><img src="assets/img/warm_blue.png" alt="Warm Blue" title="Warm Blue" width="100px" height="100px"></td>
28-
<td><img src="assets/img/daisy_bush.png" alt="Daisy Bush" title="Daisy Bush" width="100px" height="100px"></td>
29-
<td><img src="assets/img/mirage.png" alt="Mirage" title="Warm Blue" width="100px" height="100px"></td>
25+
<td><img src="documentation/assets/img/sunset_orange.png" alt="Sunset Orange" title="Sunset Orange" width="100px" height="100px"></td>
26+
<td><img src="documentation/assets/img/light_slate_blue.png" alt="Light Slate Blue" title="Light Slate Blue" width="100px" height="100px"></td>
27+
<td><img src="documentation/assets/img/warm_blue.png" alt="Warm Blue" title="Warm Blue" width="100px" height="100px"></td>
28+
<td><img src="documentation/assets/img/daisy_bush.png" alt="Daisy Bush" title="Daisy Bush" width="100px" height="100px"></td>
29+
<td><img src="documentation/assets/img/mirage.png" alt="Mirage" title="Warm Blue" width="100px" height="100px"></td>
3030
</tr>
3131
<tr>
3232
<td align="center"><code>#FF5547</code></td>

examples/.gitignore

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

0 commit comments

Comments
 (0)