You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-11Lines changed: 17 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Unidoc powers the [Swiftinit](https://swiftinit.org) open source package index!
12
12
13
13
## Features
14
14
15
-
### Small archive sizes
15
+
### 🪶 Small archive sizes
16
16
17
17
Unidoc servers are designed to store versioned documentation indefinitely. To achieve this, Unidoc uses a stable binary symbol graph format that can be up to two orders of magnitude smaller than an equivalent DocC archive.
18
18
@@ -28,7 +28,7 @@ Here’s a comparison for the (in)famous [SwiftSyntax](https://github.com/apple/
28
28
> [DocC numbers sourced from Slack](https://swift-open-source.slack.com/archives/C04PCMXMBD0/p1694154083683579?thread_ts=1694101493.046719&cid=C04PCMXMBD0)
29
29
30
30
31
-
### Evolving documentation
31
+
### ⬆️ Evolving documentation
32
32
33
33
You can regenerate Unidoc documentation from symbol graph archives without recompiling documentation from package sources, which historically was a [major bottleneck](https://forums.swift.org/t/navigating-html-docs-vs-generated-interfaces/67115/7) in the DocC workflow. In many situations, this means you can easily upgrade Unidoc documentation to take advantage of new features even if the underlying symbol graph was compiled by an older version of Unidoc.
34
34
@@ -37,60 +37,66 @@ You can re-link Unidoc documentation against newer versions of their package (an
37
37
Unidoc databases use a cellular architecture which allows you to stagger documentation upgrades across a package index without taking the server offline.
38
38
39
39
40
-
### Cross-package references
40
+
### 🔗 Cross-package references
41
41
42
42
Unidoc can validate and resolve cross-package symbol links, including links to symbols in the standard library. This means you can link to [`String`](https://swiftinit.org/docs/swift/swift/string) in your documentation, and Unidoc will automatically generate a link to the standard library documentation for `String`.
43
43
44
44
Normal “IDE-style” symbol references, such as links to [`Int`](https://swiftinit.org/docs/swift/swift/int) within function signatures, are also supported.
45
45
46
46
47
-
### Cross-package extensions
47
+
### 🕸 Cross-package extensions
48
48
49
49
Unidoc can display extensions, including third-party extensions, directly in the documentation for the extended type. This means you can view [`Channel`](https://swiftinit.org/docs/swift-nio/niocore/channel) members originating from packages such as [`swift-nio-ssl`](https://github.com/apple/swift-nio-ssl) and [`swift-nio-http2`](https://github.com/apple/swift-nio-http2) from the `swift-nio` documentation itself.
50
50
51
51
In the future, we hope to support finer-grained control over third-party extensions shown in extendee documentation.
52
52
53
53
54
-
### Inherited symbols
54
+
### 💞 Inherited symbols
55
55
56
56
Because Unidoc is a multi-package documentation engine, it can track and display symbols inherited from protocols in upstream dependencies, including the standard library, at negligible storage cost. This means types in third-party libraries that conform to protocols such as [`Sequence`](https://swiftinit.org/docs/swift/swift/sequence) can display and link to `Sequence` API in their member lists.
57
57
58
58
59
-
### Server-side database
59
+
### 🌐 Unified database
60
60
61
61
Unidoc servers maintain a combined database of all documentation in their index. This allows Unidoc to serve (or redirect) individual symbol pages on-demand, instead of requiring clients to download enormous Vue.js indices for client-side rendering. This provides better performance for clients, and greatly reduces cache churn on the server as documentation is upgraded.
62
62
63
63
64
-
### Lightweight HTML
64
+
### 🔋 Lightweight HTML
65
65
66
66
Unidoc generates lightweight HTML documentation that uses CSS for the majority of its layout and interactivity, and serves a very low number of additional assets. This means Unidoc pages are responsive, accessible, cache-friendly, and render with minimal content-layout shift ([CLS](https://web.dev/cls/)).
67
67
68
68
69
-
### Documentation coverage
69
+
### 📜 Readable signatures
70
+
71
+
Unidoc symbol graphs include line-breaking markers computed by SwiftSyntax, which allows Unidoc to display long function signatures in a readable, line-wrapped format. This makes it much easier to scan long lists of symbols with complex signatures, such as the member list of SwiftSyntax’s [`AccessPathComponentSyntax`](https://swiftinit.org/docs/swift-syntax/swiftsyntax/accesspathcomponentsyntax).
72
+
73
+
### 🛸 Documentation coverage
70
74
71
75
Unidoc can compute documentation coverage on a per-package and per-module basis. You can view coverage levels as pie-chart visualizations on package and module pages; see [`swift-atomics`](https://swiftinit.org/docs/swift-atomics)’s [package page](https://swiftinit.org/docs/swift-atomics) for an example.
72
76
73
77
74
-
### GitHub integration
78
+
### :octocat: GitHub integration
75
79
76
80
Unidoc can periodically index Git tags by querying the GitHub API. This feature requires a [GitHub app registration](https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/differences-between-github-apps-and-oauth-apps) and app secret and is not enabled by default. Unidoc can also load repository metadata from GitHub, and use it to generate permanent links to source code on GitHub if the underlying symbol graph includes source map information.
77
81
78
82
The Unidoc compiler builds symbol graph archives with source maps by default, even if GitHub integration is not available.
79
83
80
84
81
-
### Secure administration
85
+
### 🔐 Secure administration
82
86
83
87
When GitHub integration is available, Unidoc can use [social authentication](https://en.wikipedia.org/wiki/Social_login) to allow users to log in with their GitHub account and perform administrative actions.
84
88
85
89
As the [Swiftinit](https://swiftinit.org) index grows, we hope to allow package maintainers to claim ownership of their packages and manage their documentation directly through the Swiftinit website.
86
90
87
91
88
-
### Search engine optimization (SEO)
92
+
### 🔎 Search engine optimization (SEO)
89
93
90
94
Unidoc can generate, update, and serve sitemap files for search crawlers like Googlebot. This allows search engines to discover and index your documentation, and makes it easier for users to find your package.
91
95
92
96
Unidoc will make an effort to generate a `<meta>` description for every symbol in a package, even if the symbol has no documentation.
93
97
98
+
Unidoc avoids generating many copies of the same documentation, which can hinder visibility in search engines.
0 commit comments