Commit 49e2065
authored
docs: rename annotations-reference to attributes-reference (#800)
* docs: rename annotations-reference to attributes-reference
Doctrine annotation support was dropped in #677; the page's body has
been calling these "attributes" for a long time. Bring the filename
and URL slug in line so the whole stack uses consistent terminology.
What changed
- website/docs/annotations-reference.md → attributes-reference.md
(plus frontmatter `id` and sidebars.json entry)
- versioned_docs/version-8.0.0/ gets the same rename since 8.0.0 is
the current stable release served at `/docs/annotations-reference`.
Older versioned_docs are frozen snapshots and are left untouched.
- versioned_sidebars/version-8.0.0-sidebars.json updated to match.
- Incoming link in authentication-authorization.mdx updated (both
the `next` and v8.0.0 copies).
- CHANGELOG.md and migrating.md link paths updated (both copies).
Anchor fragments were already stale (sections were renamed from
`## @input annotation` → `## #[Input]` long ago); repointed them at
the current slugs where the anchor identifies the attribute
unambiguously, and stripped the dead `-annotation` suffix.
Backwards compatibility
- Added `@docusaurus/plugin-client-redirects` (pinned to the existing
2.4.3 line) with a single rule: `/docs/annotations-reference` →
`/docs/attributes-reference`. External inbound links keep working
(meta-refresh + JS redirect, preserves the URL fragment).
Remaining prose cleanup
While touching this area, also fixed a few stale "annotation" prose
references that the Doctrine removal missed:
- custom-types.mdx: "in the following annotations:" → "attributes:"
- semver.md: "through its annotations"/"custom annotations" → attributes
- argument-resolving.md: stale `@Autowire annotation` and related
wording in the parameter-middleware example
Verified via `yarn build`: site compiles clean, redirect HTML emitted
at build/docs/annotations-reference/index.html pointing at the new
canonical URL.
* docs: revert v8.0.0 edits and cut v8.2.0 snapshot instead
Follow-up to review feedback: v8.0.0 is a frozen release snapshot and
shouldn't be edited to reflect unreleased terminology. Restore all
v8.0.0 versioned_docs files to their state at release time (matches
origin/master exactly).
Instead, cut a new v8.2.0 docs snapshot via `yarn docusaurus docs:version
8.2.0`. That captures the current `docs/` state — including the rename,
the prose cleanup, and unreleased features like #[EnumValue] (#793) —
as a new versioned release. 8.2.0 becomes the new "latest" (first in
versions.json), so `/docs/*` now serves from it and the redirect
target `/docs/attributes-reference` is valid.
Result:
- /docs/annotations-reference → redirects to /docs/attributes-reference
- /docs/attributes-reference → v8.2.0 (new latest)
- /docs/8.0.0/annotations-reference → v8.0.0 snapshot, frozen, unchanged
- /docs/next/attributes-reference → docs/ preview
Minor docs-version snapshots are established convention in this
project (6.1, 4.3, 4.2, 4.1 are all on record), so cutting 8.2.0
alongside this rename does not break norms.
Build verified: `yarn build` passes; redirect HTML emitted at
build/docs/annotations-reference/index.html; v8.0.0 snapshot diffs
to origin/master as zero.1 parent 2d643f8 commit 49e2065
53 files changed
Lines changed: 5796 additions & 14 deletions
File tree
- website
- docs
- versioned_docs/version-8.2.0
- versioned_sidebars
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
185 | | - | |
| 184 | + | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
54 | 66 | | |
55 | 67 | | |
56 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
0 commit comments