Skip to content

Releases: tayloraswift/swift-unidoc

0.21.0

19 Jan 00:43
Compare
Choose a tag to compare

There are three features added in Unidoc 0.21.0.

  • Declarations that are overloaded on async can now be disambiguated in the UCF syntax with [async], or [async: false] to select the non-async overload.
  • Unidoc can now conditionally ignore broken symbol links using the [ignore when: SOME_DEFINITION] syntax, which can be combined with --define SOME_DEFINITION passed to unidoc compile. This is most useful for CI workflows that attempt to validate documentation that includes links to symbols that only exist on certain platforms.
  • You can now print the tool version with unidoc --version

Full Changelog: 0.20.1...0.21.0

0.20.0

08 Jan 05:37
53aa5dd
Compare
Choose a tag to compare

What's Changed

  • Unidoc now supports type signature based link disambiguation, allowing you to distinguish between different overloads on the same base name.
  • Unidoc now supports Package Themes, which can be selected under Package Settings and take effect instantly (#364)
  • In the list of package consumers, Unidoc now displays the version (git tag) associated with the most recent release of the downstream package (#356)
  • Clicking on a sidebar link to an extended type now scrolls you directly to that module’s extensions instead of depositing you at the top of the page (#374)
  • Unidoc can now (lazily) generate redirects to historical documentation when API is removed in a subsequent release. The redirect is available if at least one trustworthy client (Googlebot, Bingbot, or a logged-in user) had visited the deleted page before the symbol was removed (#358, #361)
  • Unidoc now records the git commit date in the binary symbol graph format, if known (#371)
  • Unidoc now prefers non-inherited symbols when disambiguating symbol links and breaks ties by preferring the symbol with more documentation (#381)
  • Plugin logs can now be viewed through the HTML UI (#363)
  • Unidoc can now be built in distributed configuration, with creating binaries for frontend and backend servers (#367)
  • Adds a utility command unidoc list-assets (#370)
  • Unidoc now compresses symbol graphs before uploading them to a server (#354)

Notable Bugfixes

  • Deduplicate macro synthesized decls (#352)
  • Ignore validation errors resulting from swiftlang/swift#76877 (#353)
  • Multi-column DocC layouts no longer overflow their parent containers (#390)

Full Changelog: 0.19.6...0.20.0

0.19.6

01 Oct 23:38
Compare
Choose a tag to compare

What's Changed

  • Improved the ergonomics of the unidoc local command — it will now build the SwiftPM project in the current working directory if given no arguments, or the package specified by -i/--project-path if supplied.
  • Added an overload disambiguation heuristic that automatically selects the documented overload, if exactly one overload among the choices has an associated doccomment and none of the others do.
  • Trailing parentheses in symbol links are now meaningful, and will exclude struct, enum, class, actor, typealias, protocol, associatedtype, deinit, and var declarations.
  • The absence of trailing parentheses in symbol links is now meaningful, and will exclude macro declarations only.

Full Changelog: 0.19.5...0.19.6

0.19.5

29 Sep 23:04
5e79ca2
Compare
Choose a tag to compare

This release fixes a regression introduced in 0.19.4, in which @_exported symbols would cause false positives in the ambiguous symbol link checker, if the fully-qualified symbol link written spans three or more modules that re-export one another.

0.19.4

29 Sep 16:19
1db4476
Compare
Choose a tag to compare

What's Changed

  • fix module name shadowing problem preventing compiling Unidoc itself on macOS Sequoia by @tayloraswift in #344
  • enable writing codelinks that resolve through @_exported paths and serve HTTP redirects for @_exported symbols by @tayloraswift in #345
  • add definitions for bridgeOS and add missing Swift 6 stdlib modules to the standard library recipe by @tayloraswift in #347

Full Changelog: 0.19.3...0.19.4

0.19.3

18 Sep 23:30
f07ba0b
Compare
Choose a tag to compare

This release makes the project compile with Swift 6.0.

This release also enables using Swift 6.0 as the compiler backend for building packages (this is different from compiling Unidoc itself!) and also disables several Unidoc assertions that collide with known regressions in the Swift 6.0 compiler.

Please note, on macOS, using a downloadable non-Xcode 6.0 toolchain as a package compiler backend is not recommended. In particular, you are likely to run into swiftlang/swift#76561 !

0.19.2

12 Sep 21:08
0e1e42f
Compare
Choose a tag to compare

This release fixes a bug that caused SwiftPM packages that use uppercase letters in their project directory names to fail to compile on case-sensitive file systems.

Full Changelog: 0.19.1...0.19.2

0.19.1

07 Sep 21:26
48b03c2
Compare
Choose a tag to compare

What's Changed

  • Optimized dynamic linker for Symbol Graphs with ABI ≥ 0.11.0
  • Add support for visionOS @available markers

Unidoc 0.19

29 Aug 23:19
b9230cb
Compare
Choose a tag to compare

As some may already be aware, Swift Unidoc is a documentation engine that supports rendering documentation for a package and its dependencies, with symbol links that cross module and even package boundaries. This release introduces the unidoc preview and unidoc local tools, which enable compiling and browsing rendered documentation on your local machine.

What’s the update for?

Although Unidoc has existed for a long time now, effectively writing documentation that takes full advantage of its feature set has historically been hampered by several obstacles:

  • Cross-package link resolution occurs at link time, on the server side, which prevented the compiler from diagnosing broken cross-package links.
  • Because cross-package links appear syntactically identical to package-internal links, this prevented the compiler from effectively diagnosing broken links at compile time at all.
  • Because it is difficult (if not impossible) to model the entire Swift package ecosystem locally, in practice, iterating with Unidoc required interacting with the centralized Swiftinit database.
  • This also precluded using Unidoc as a CI validation step, as the CI pipeline would have to manage a build lifecycle on Swiftinit, which is very logistically complex.

Validate your links locally!

Unidoc 0.19 completely overhauls Unidoc’s compilation model such that all link resolution now takes place at compile time, on the client, without having to interact with Swiftinit at all. This allows you to iterate on your documentation locally with the confidence that your documentation is valid before even committing it in Git, or pushing it to GitHub.

Prebuilt binaries now available!

On select platforms (x86_64 Ubuntu 24.04 and aarch64 macOS), we now provide pre-built toolchains that can be installed without compiling Unidoc from source. The downloadable archives also include a copy of the web assets needed to browse rendered documentation locally.

Get started now!

You can get started with local documentation right now by following the Unidoc Quickstart guide. Setting up Unidoc for the first time has also become much easier, as the unidoc tool now provides a unidoc init subcommand that can automatically configure and initialize a local deployment on Linux and macOS.

0.18.0

18 Jul 20:08
45b94b7
Compare
Choose a tag to compare

it’s been a long time since the last ‘proper’ release, and we got in the bad habit of not writing release notes, so here’s a quick rundown of the major changes since 0.8.0.

  • Unidoc now supports macOS (#169, #210)
  • Unidoc now features an intrapage navigation sidebar on pages with section headings (#269)
  • Generic extension blocks now have clickable section anchors (#274)
  • Unidoc now correctly handle the case where packages refer to their dependencies by non-canonical names (#146)
  • Underscored declarations now appear under a collapsed section (#147)
  • Improved auto-generated curation of “miscellaneous” symbols (#150)
  • Unidoc can now resolve documentation links to section headings (#195)
  • Unidoc can now render IDE-style tooltips, and also export them to external websites (#209)
  • Fixed an issue causing the server to hang indefinitely when submitting forms on Safari (#227)
  • Unidoc can now render IDE-style symbol references in code snippets (#228, #245, #259, #260, #261)
  • Unidoc can now display documentation for packages that lack a stable release tag (#232)
  • Unidoc now correctly detects executable targets in pre-5.3 SwiftPM manifests (#241)
  • Unidoc now supports “article-only” documentation, notably, TSPL (#276)
  • Unidoc now allows disabling HTTPS in local development mode (#288)
  • Unidoc now supports previewing documentation for multiple local packages at once (#289)
  • Most Unidoc tools have been migrated to swift-argument-parser and now display richer help (#296)
  • Unidoc now supports prerelease bounds in dependency requirements (#302)
  • Unidoc can now compile markdown documentation containing hyperlinks with schemes besides https:// (#304)
  • Unidoc can now compute and and display ABI compatibility metric for a documentation volume (#305)
  • Unidoc now preserves the generic parameter substitutions in same-type constraints (#306)
  • @Joannis made his first contribution in #290

Full Changelog: 0.8.0...0.18.0