Commit 8a086b6
Experimental markdown output (#1303)
* Add experimental markdown output flag and pass it through to the convert feature flags
* Initial export of Markdown from Article
* Initial processing of a type-level symbol
* Adds symbol declarations and article reference links
* Output tutorials to markdown
* Be smarter about removing indentation from within block directives
* Baseline for adding new tests for markdown output
* Basic test infrastructure for markdown output
* Adds symbol link tests to markdown output
* Tutoorial code rendering markdown tests
* Adding metadata to markdown output
* Include package source for markdown output test catalog
* Output metadata updates
* Adds default availability for modules to markdown export
* Move availability out of symbol and in to general metadata for markdown output
* Refactor markdown output so the final node type is standalone
* Add generated markdown flag to render node metadata
* Only include unavailable in markdown header if it is true
* Initial setup of manifest output, no references
* Output of manifest / relationships
* Manifest output format updates
* Remove member symbol relationship
* More compact availability, deal with metadata availability for symbols
* Update tests so all inputs are locally defined
* Remove print statements from unused visitors
* Added snippet handling
* Remove or _spi-hide new public API
* Remove or _spi-hide new public API (part 2)
* Prevent recursion when the abstract of a link contains a link and we are rendering links-with-abstracts
* Test and temporary fix for colspan issue swiftlang/swift-markdown#238
* Remove separate SwiftDocCMarkdownOutput target
* Bump swift-markdown, remove temporary bug fix
* Updates to handle removed bundle parameter
* Extract common writer code into a helper function
* Clarify use of article.md in test catalog
* Deal with internal links with anchor tags
* Deal with unresolved symbol links
* Updates to improve public API / clarity of MarkdownOutputNode
* Improve public API of manifest, sort contents before writing to prevent unneccessary diffs on re-run
* Don't use unstructured `Data` for WritableMarkdownOutputNode
* Reduce public SPI surface around markdown writing
* Make relationship subtype a specific type rather than a string
* Make it clear that path component is a fallback title, harden linked list rendering
* Add todos and missing tests
* Move markdown output types from public SPI to package
* don't include scheme or host in documentation links
* Reformat multi-condition if statements
* remove whitespace-only change
* Remove unused declaration
* Remove redundant return types
* Remove MarkdownOutputNodeTranslator
* Add TODO for alternate declarations
* Add TODO for structural review
* Add stacks todo, set writable type back to package
* uri -> identifier
* Use RelationshipsGroup.Kind instead of creating a mirror type
* Lower access level of manifest, remove children method
* Restrict package level declarations to those actually used at package level
* Merging main
---------
Co-authored-by: Richard Turton <r_turton@apple.com>1 parent d89dfe7 commit 8a086b6
File tree
16 files changed
+2365
-5
lines changed- Sources
- DocCCommandLine
- Action/Actions/Convert
- ArgumentParsing
- ActionExtensions
- Subcommands
- SwiftDocC
- Converter
- Infrastructure
- Model
- MarkdownOutput/Translation
- Rendering
- Section/Sections
- SwiftDocCMarkdownOutput
- Utility
- Tests/SwiftDocCTests/Rendering/Markdown
16 files changed
+2365
-5
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
71 | 86 | | |
72 | 87 | | |
73 | 88 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
92 | 111 | | |
93 | 112 | | |
94 | 113 | | |
| |||
Sources/DocCCommandLine/ArgumentParsing/ActionExtensions/ConvertAction+CommandInitialization.swift
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
546 | 552 | | |
547 | 553 | | |
548 | 554 | | |
| |||
637 | 643 | | |
638 | 644 | | |
639 | 645 | | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
640 | 658 | | |
641 | 659 | | |
642 | 660 | | |
| |||
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
116 | 133 | | |
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
134 | 150 | | |
135 | 151 | | |
136 | 152 | | |
| |||
235 | 251 | | |
236 | 252 | | |
237 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
238 | 260 | | |
239 | 261 | | |
240 | 262 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
51 | 60 | | |
52 | 61 | | |
53 | 62 | | |
| |||
0 commit comments