Skip to content

Releases: tayloraswift/swift-unidoc

0.7.0

07 Feb 00:51
Compare
Choose a tag to compare

there are few obvious user-facing changes in this release, but a lot has shifted around in the code base since 0.6.

  • Symbol graph build system now correctly runs git submodule update --init
  • Symbol graph compiler can now recover from a Swift compiler crash (which sadly happens all too often…)
  • Symbol graph compiler now uses a separate scratch directory from .build, which should make it easier to run it in a docker container
  • Trailing slashes are now allowed in the Unidoc codelink format
  • Admins can now inspect all of the package names and aliases associated with a package
  • Admins can now change the preferred name of a package
  • Server-side symbol graph linker now runs in the background as needed
  • Server-side symbol graph linker can now export compiled symbol graphs to Amazon S3, which should greatly reduce the amount of disk space Unidoc requires
  • Server-side symbol graph linker can now compress compiled symbol graphs with DEFLATE
  • Admins can now view total server error (5xx) count
  • Admins can now view global mongod ping times
  • Admins can now manually uplink symbol graphs from the web UI
  • Uplinking old documentation no longer generates new activity feed entries
  • Fixed #123
  • Symbol graph compiler now supports packages with dots in their names
  • Symbol graph compiler can now collect information about available version-specific Package.swift manifests, and displays it in the web UI
  • Added quick links to the web UI homepage
  • Web server now queries from the fastest available mongod replica (when replication is enabled), which should reduce the amount of times people see pictures of Margot Robbie crying
  • Upgraded swift-mongodb dependency to obtain some critical MongoDB driver bugfixes
  • Enum cases are now displayed in a separate section in the web UI
  • Protocol requirements now also benefit from autogenerated ‘See also’ sections
  • Admins can now change robots.txt without restarting the server
  • TikTok Bytespider is now blacklisted by default (sorry ByteDance)
  • Adjusted the package scoring formula (we are slowly becoming swiftpackageindex :( )
  • @available(obsoleted) symbols now render in grayed-out font in the web UI

0.6.0

11 Jan 22:15
Compare
Choose a tag to compare

See release notes on the Swift Forums

0.3.0

26 Sep 22:11
a6000fa
Compare
Choose a tag to compare

🚠 Per-symbol migration banners

The Unidoc server can now query successors for symbols in older (and prerelease) versions, and display a banner directing visitors to the symbol’s counterpart in the latest stable release of its package. This link is specific to the symbol, and comes with a corresponding <link rel="canonical"> element and HTTP header.

Example: https://swiftinit.org/docs/swift-nio:2.57.0/niocore/eventloopgroup

Firefox_Screenshot_2023-09-17T22-30-08 946Z

If the symbol does not exist in the latest stable release, Unidoc will only display the link to the package documentation root.

🔭 Version management

Stale documentation is a perennial problem that afflicts all package indexes in the swift community, including swiftinit. Index sites can fail to serve up-to-date documentation for a variety of reasons, and these reasons are generally opaque to the reader.

  • The index may be unaware that a package it mirrors has released a new version.

  • The index may be backlogged by other releases in the documentation build queue.

  • The index may be unable to build documentation due to bugs in its documentation compiler, or even the swift compiler itself.

To increase awareness of new releases and decouple version indexing from the build infrastructure, Unidoc 0.3 now features deepened GitHub integration enabling Unidoc servers to track release activity in near-real time.

This information is now surfaced to the public through /tags dashboards, which can be reached from the landing page for the documentation of any package.

Example: https://swiftinit.org/tags/swift-asn1

Firefox_Screenshot_2023-09-26T21-04-54 445Z

⌨️ DocC keyboard shortcuts

Unidoc’s front-end now supports the / keyboard shortcut for focusing the symbol search bar.

Although this is a relatively superficial change, it can be a significant ergonomic improvement, particularly if you have muscle memory from navigating DocC documentation.

image

The search bar can be defocused with the Esc key.

📂 Collapsible ‘See Also” sections

Very long ‘See Also’ sections are now collapsed by default. This is most relevant to packages with exceptionally bloated topics listings, such as SwiftSyntax.

Example: https://swiftinit.org/docs/swift-syntax/swiftsyntax/enumcaseparameterclausesyntax

image

️⛳️ Symbol disambiguation pages

Unidoc is able to serve symbol disambiguation pages under the 300 Multiple Choice HTTP status.

Although you should avoid creating ambiguous symbol links if possible, they are a natural occurrence as APIs evolve and overloads are added.

Example: https://swiftinit.org/docs/swift-certificates/x509/policyevaluationresult.failstomeetpolicy(reason:)

image

✨ Miscellaneous changes

We fixed some symbol link parsing bugs in the Unidoc compiler, improved the performance of some documentation queries, upgraded the project to Swift 5.9, enabled HTTP/2 support, and hardened the security of some of the server’s administrative endpoints.

0.2.4

22 Sep 02:25
875408d
Compare
Choose a tag to compare

New in Unidoc 0.2.4:

Swift 5.9 support

Unidoc now supports (and requires) Swift 5.9.

HTTP/2 support

The Unidoc server now supports (and prefers) HTTP/2 over HTTP/1.1.

GitHub crawling

Unidoc can now crawl GitHub periodically to index git tags and update repository metadata.

Git tag dashboard

The Git Tags dashboard has been improved.

image

0.2.2

17 Sep 22:40
3a1b7ed
Compare
Choose a tag to compare

New in 0.2.2.

🚠 Per-symbol migration banners

Unidoc 0.2.2 can query successors for symbols in older (and prerelease) documentation snapshots, and display a banner directing visitors to the symbol’s counterpart in the latest stable release of its package. This link is specific to the symbol, and comes with a corresponding <link rel="canonical"> element and HTTP header.

Example: https://swiftinit.org/docs/swift-nio:2.57.0/niocore/eventloopgroup

Firefox_Screenshot_2023-09-17T22-30-08 946Z

If the symbol does not exist in the latest stable release, Unidoc will only display a link to the package documentation root.