Commit 3622c50
committed
fix(copilot-review): suppress Article schema on versioned docs roots too
Addresses Copilot comment 3081151415 on PR #832.
The previous suppressArticleSchema check only matched /docs/ as the
docs root, but this site serves versioned hub pages too — /docs/4.0.0/,
/docs/3.0.0/, /docs/2.0.0/, /docs/1.0.0/ — via onlyIncludeVersions and
includeCurrentVersion in docusaurus.config.js. Each versioned root is
also an index of content with no single author/date/headline, so
emitting Article/BlogPosting/APIReference schema on those pages had
the same type-mismatch problem the base case fix was addressing.
Added a regex check for /docs/<digit-starting-version>/ so any current
or archived versioned root is caught by the same suppression path.
Current content pages inside versioned trees (e.g.
/docs/4.0.0/keploy-explained/how-keploy-works/) still emit Article
schema as normal since they have real authors, dates, and headlines —
only the bare versioned roots are suppressed.
Signed-off-by: Neha Gupta <gneha21@yahoo.in>1 parent 69e5eee commit 3622c50
1 file changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
157 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
158 | 164 | | |
159 | 165 | | |
160 | 166 | | |
161 | 167 | | |
162 | | - | |
| 168 | + | |
| 169 | + | |
163 | 170 | | |
164 | 171 | | |
165 | 172 | | |
| |||
0 commit comments