swiftlang / swift-book

The Swift Programming Language book
Apache License 2.0
1.75k stars 161 forks source link

Improve the navigation within the grammar #48

Open amartini51 opened 2 years ago

amartini51 commented 2 years ago

The version of TSPL currently published using the pre-DocC toolchain styles each item in the definition of a grammar rule as a link to that item's own definition. The live link makes it easy to follow a series of production rules, one step at a time.

DocC doesn't currently have the ability to link to somewhere on the page other than a heading.

amartini51 commented 1 year ago

Depends on: https://github.com/apple/swift-markdown/issues/83