Commit ed492be
authored
Deprecate two-step documentation context creation (#1059)
* Deprecate `DocumentationConverter`
* Update DataProvider protocol to a be general purpose
* Update DiagnosticConsoleWriter to use DataProvider protocol
* Update LinkResolver to use DataProvider protocol
* Update one test helper to use InputProvider to discover inputs
* Update tests to load inputs using test helpers
* Avoid loading same bundle twice in same test
* Avoid creating unused workspace and context in tests
* Use InMemoryDataProvider instead of custom type in test
* Avoid force try in one test
* Move additional global checks to context configuration
* Avoid copying the test bundle when the catalog content isn't modified
* Update ConvertActionIndexerTests to use InputProvider to discover inputs
* Avoid using `_legacyDataProvider` in tests
* Update tests to pass link dependency files instead of using `configureContext`
* Update final test helper to use `InputProvider` to discover inputs
Also, remove no longer used `configureContext` parameter
* Use test file system for empty test bundle
* Use test helper for setting feature flags
* Deprecate `DocumentationWorkspace`
rdar://136208312
* Update BundleDiscoveryTests to use test helpers for input discovery
* Remove unused data provider parameter from convert action initializer
* Stop conforming test file system to workspace data provider
* Deprecate `GeneratedDataProvider`
* Deprecate `PrebuiltLocalFileSystemDataProvider`
* Remove unused SymbolGraphLoader initializer
* Indicate in deprecated tests when they can be removed
* Remove out-of-date deprecation warning for already removed code
* Deprecate `DocumentationWorkspaceDataProvider`
* Deprecate `DocumentationContextDataProvider`
* Deprecate additional multi-bundle-related properties
* Add comments to deprecated tests explaining that they aren't skipped
* Update comment about why unexpected errors and turned into diagnostics and add FIXME to change this in the future1 parent e600b1f commit ed492be
File tree
60 files changed
+537
-809
lines changed- Sources
- SwiftDocCTestUtilities
- SwiftDocCUtilities/Action/Actions
- Convert
- SwiftDocC
- DocumentationService/Convert
- Infrastructure
- Context
- Diagnostics
- Input Discovery
- Link Resolution
- Symbol Graph
- Workspace
- LinkTargets
- Model/Rendering
- Utility
- Tests
- SwiftDocCTests
- Checker/Checkers
- Converter
- Diagnostics
- Infrastructure
- DocumentationContext
- Input Discovery
- SymbolGraph
- LinkTargets
- Model
- Rendering
- Utility
- SwiftDocCUtilitiesTests
- ArgumentParsing
- Utility
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
60 files changed
+537
-809
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
| 270 | + | |
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
97 | 107 | | |
98 | 108 | | |
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
| |||
Lines changed: 11 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
510 | | - | |
| 510 | + | |
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
| |||
Lines changed: 36 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
82 | | - | |
| 84 | + | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| |||
111 | 113 | | |
112 | 114 | | |
113 | 115 | | |
114 | | - | |
| 116 | + | |
115 | 117 | | |
116 | 118 | | |
| 119 | + | |
117 | 120 | | |
118 | | - | |
| 121 | + | |
119 | 122 | | |
120 | 123 | | |
121 | 124 | | |
122 | 125 | | |
123 | | - | |
| 126 | + | |
| 127 | + | |
124 | 128 | | |
125 | 129 | | |
126 | 130 | | |
| |||
144 | 148 | | |
145 | 149 | | |
146 | 150 | | |
| 151 | + | |
147 | 152 | | |
148 | 153 | | |
149 | 154 | | |
| |||
285 | 290 | | |
286 | 291 | | |
287 | 292 | | |
| 293 | + | |
288 | 294 | | |
289 | 295 | | |
290 | 296 | | |
| |||
293 | 299 | | |
294 | 300 | | |
295 | 301 | | |
| 302 | + | |
296 | 303 | | |
297 | 304 | | |
298 | 305 | | |
| |||
311 | 318 | | |
312 | 319 | | |
313 | 320 | | |
314 | | - | |
| 321 | + | |
315 | 322 | | |
316 | 323 | | |
317 | 324 | | |
318 | 325 | | |
319 | 326 | | |
320 | 327 | | |
321 | 328 | | |
| 329 | + | |
322 | 330 | | |
323 | 331 | | |
324 | 332 | | |
| |||
329 | 337 | | |
330 | 338 | | |
331 | 339 | | |
| 340 | + | |
332 | 341 | | |
333 | 342 | | |
334 | 343 | | |
| |||
343 | 352 | | |
344 | 353 | | |
345 | 354 | | |
| 355 | + | |
346 | 356 | | |
347 | 357 | | |
348 | 358 | | |
| |||
354 | 364 | | |
355 | 365 | | |
356 | 366 | | |
| 367 | + | |
357 | 368 | | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
358 | 381 | | |
359 | 382 | | |
360 | 383 | | |
| |||
363 | 386 | | |
364 | 387 | | |
365 | 388 | | |
366 | | - | |
367 | | - | |
| 389 | + | |
368 | 390 | | |
369 | 391 | | |
370 | 392 | | |
| |||
2551 | 2573 | | |
2552 | 2574 | | |
2553 | 2575 | | |
2554 | | - | |
2555 | | - | |
2556 | 2576 | | |
2557 | 2577 | | |
2558 | 2578 | | |
2559 | 2579 | | |
| 2580 | + | |
2560 | 2581 | | |
2561 | | - | |
| 2582 | + | |
2562 | 2583 | | |
2563 | 2584 | | |
2564 | 2585 | | |
| |||
2624 | 2645 | | |
2625 | 2646 | | |
2626 | 2647 | | |
2627 | | - | |
| 2648 | + | |
2628 | 2649 | | |
2629 | 2650 | | |
2630 | 2651 | | |
| |||
2672 | 2693 | | |
2673 | 2694 | | |
2674 | 2695 | | |
2675 | | - | |
| 2696 | + | |
2676 | 2697 | | |
2677 | 2698 | | |
2678 | 2699 | | |
| |||
3055 | 3076 | | |
3056 | 3077 | | |
3057 | 3078 | | |
| 3079 | + | |
| 3080 | + | |
| 3081 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
0 commit comments