Skip to content

Commit 0c0c61c

Browse files
authored
Merge pull request doctrine#11627 from greg0ire/no-custom-directives
Replace custom directives with native option
2 parents b13564c + cc28fed commit 0c0c61c

File tree

2 files changed

+77
-110
lines changed

2 files changed

+77
-110
lines changed

.github/workflows/documentation.yml

Lines changed: 7 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -5,40 +5,16 @@ on:
55
branches:
66
- "*.x"
77
paths:
8-
- .github/workflows/documentation.yml
9-
- docs/**
8+
- ".github/workflows/documentation.yml"
9+
- "docs/**"
1010
push:
1111
branches:
1212
- "*.x"
1313
paths:
14-
- .github/workflows/documentation.yml
15-
- docs/**
14+
- ".github/workflows/documentation.yml"
15+
- "docs/**"
1616

1717
jobs:
18-
validate-with-guides:
19-
name: "Validate documentation with phpDocumentor/guides"
20-
runs-on: "ubuntu-22.04"
21-
22-
steps:
23-
- name: "Checkout code"
24-
uses: "actions/checkout@v4"
25-
26-
- name: "Install PHP"
27-
uses: "shivammathur/setup-php@v2"
28-
with:
29-
coverage: "none"
30-
php-version: "8.3"
31-
32-
- name: "Remove existing composer file"
33-
run: "rm composer.json"
34-
35-
- name: "Require phpdocumentor/guides-cli"
36-
run: "composer require --dev phpdocumentor/guides-cli --no-update"
37-
38-
- name: "Install dependencies with Composer"
39-
uses: "ramsey/composer-install@v3"
40-
with:
41-
dependency-versions: "highest"
42-
43-
- name: "Run guides-cli"
44-
run: "vendor/bin/guides -vvv --no-progress docs/en 2>&1 | grep -v 'No template found for rendering directive' | ( ! grep WARNING )"
18+
documentation:
19+
name: "Documentation"
20+
uses: "doctrine/.github/.github/workflows/[email protected]"

docs/en/sidebar.rst

Lines changed: 70 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,86 +1,77 @@
11
:orphan:
22

3-
.. toc::
3+
.. toctree::
4+
:caption: Tutorials
5+
:depth: 3
46

5-
.. tocheader:: Tutorials
7+
tutorials/getting-started
8+
tutorials/getting-started-database
9+
tutorials/getting-started-models
10+
tutorials/working-with-indexed-associations
11+
tutorials/extra-lazy-associations
12+
tutorials/composite-primary-keys
13+
tutorials/ordered-associations
14+
tutorials/override-field-association-mappings-in-subclasses
15+
tutorials/pagination
16+
tutorials/embeddables
617

7-
.. toctree::
8-
:depth: 3
18+
.. toctree::
19+
:caption: Reference
20+
:depth: 3
921

10-
tutorials/getting-started
11-
tutorials/getting-started-database
12-
tutorials/getting-started-models
13-
tutorials/working-with-indexed-associations
14-
tutorials/extra-lazy-associations
15-
tutorials/composite-primary-keys
16-
tutorials/ordered-associations
17-
tutorials/override-field-association-mappings-in-subclasses
18-
tutorials/pagination
19-
tutorials/embeddables
22+
reference/architecture
23+
reference/configuration
24+
reference/faq
25+
reference/basic-mapping
26+
reference/association-mapping
27+
reference/inheritance-mapping
28+
reference/working-with-objects
29+
reference/working-with-associations
30+
reference/typedfieldmapper
31+
reference/events
32+
reference/unitofwork
33+
reference/unitofwork-associations
34+
reference/transactions-and-concurrency
35+
reference/batch-processing
36+
reference/dql-doctrine-query-language
37+
reference/query-builder
38+
reference/native-sql
39+
reference/change-tracking-policies
40+
reference/partial-objects
41+
reference/annotations-reference
42+
reference/attributes-reference
43+
reference/xml-mapping
44+
reference/yaml-mapping
45+
reference/php-mapping
46+
reference/caching
47+
reference/improving-performance
48+
reference/tools
49+
reference/metadata-drivers
50+
reference/best-practices
51+
reference/limitations-and-known-issues
52+
tutorials/pagination
53+
reference/filters
54+
reference/namingstrategy
55+
reference/advanced-configuration
56+
reference/second-level-cache
57+
reference/security
2058

21-
.. toc::
59+
.. toctree::
60+
:caption: Cookbook
61+
:depth: 3
2262

23-
.. tocheader:: Reference
24-
25-
.. toctree::
26-
:depth: 3
27-
28-
reference/architecture
29-
reference/configuration
30-
reference/faq
31-
reference/basic-mapping
32-
reference/association-mapping
33-
reference/inheritance-mapping
34-
reference/working-with-objects
35-
reference/working-with-associations
36-
reference/typedfieldmapper
37-
reference/events
38-
reference/unitofwork
39-
reference/unitofwork-associations
40-
reference/transactions-and-concurrency
41-
reference/batch-processing
42-
reference/dql-doctrine-query-language
43-
reference/query-builder
44-
reference/native-sql
45-
reference/change-tracking-policies
46-
reference/partial-objects
47-
reference/annotations-reference
48-
reference/attributes-reference
49-
reference/xml-mapping
50-
reference/yaml-mapping
51-
reference/php-mapping
52-
reference/caching
53-
reference/improving-performance
54-
reference/tools
55-
reference/metadata-drivers
56-
reference/best-practices
57-
reference/limitations-and-known-issues
58-
tutorials/pagination
59-
reference/filters
60-
reference/namingstrategy
61-
reference/advanced-configuration
62-
reference/second-level-cache
63-
reference/security
64-
65-
.. toc::
66-
67-
.. tocheader:: Cookbook
68-
69-
.. toctree::
70-
:depth: 3
71-
72-
cookbook/aggregate-fields
73-
cookbook/custom-mapping-types
74-
cookbook/decorator-pattern
75-
cookbook/dql-custom-walkers
76-
cookbook/dql-user-defined-functions
77-
cookbook/implementing-arrayaccess-for-domain-objects
78-
cookbook/implementing-the-notify-changetracking-policy
79-
cookbook/resolve-target-entity-listener
80-
cookbook/sql-table-prefixes
81-
cookbook/strategy-cookbook-introduction
82-
cookbook/validation-of-entities
83-
cookbook/working-with-datetime
84-
cookbook/mysql-enums
85-
cookbook/advanced-field-value-conversion-using-custom-mapping-types
86-
cookbook/entities-in-session
63+
cookbook/aggregate-fields
64+
cookbook/custom-mapping-types
65+
cookbook/decorator-pattern
66+
cookbook/dql-custom-walkers
67+
cookbook/dql-user-defined-functions
68+
cookbook/implementing-arrayaccess-for-domain-objects
69+
cookbook/implementing-the-notify-changetracking-policy
70+
cookbook/resolve-target-entity-listener
71+
cookbook/sql-table-prefixes
72+
cookbook/strategy-cookbook-introduction
73+
cookbook/validation-of-entities
74+
cookbook/working-with-datetime
75+
cookbook/mysql-enums
76+
cookbook/advanced-field-value-conversion-using-custom-mapping-types
77+
cookbook/entities-in-session

0 commit comments

Comments
 (0)