Skip to content

docs updates - #2141

Draft
heckj wants to merge 32 commits into
apple:mainfrom
heckj:docs-updates
Draft

docs updates#2141
heckj wants to merge 32 commits into
apple:mainfrom
heckj:docs-updates

Conversation

@heckj

@heckj heckj commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Broad sweep of documentation cleanup

  • capitalization consistency - Git, GitHub, Protocol Buffers, and protobuf for shorthand
  • reworking 'will' to present tense sentences
  • converting passive voice sentences to active voice, present tense
  • removing latin abbreviations, replacing with english prose
  • use sentence casing for headings, and use backticks for code voice consistently across markdown docs (aka in Documentation/)
  • fix symbol links, ArrayValue -> ListValue updates
  • fix out of date references, clean up style nits
  • grammar fixes for markdown details
  • consolidate deltas in API and PLUGIN docs using Documentation/ as the most recently updated source of truth, fill in a missing section in API.md in Documentation/ that was in the DocC catalog
  • adds missing abstracts (where not sourced from upstream .proto files)
  • expand SwiftPackageIndex hosting of docs content for both libraries provided by the package

@heckj heckj added the semver/none No version bump required. label Aug 13, 2026
@heckj heckj self-assigned this Aug 13, 2026
@tbkka

tbkka commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

This looks great!

heckj added 18 commits August 13, 2026 11:39
A handful of files still had their file-level header block (the
description sandwiched between the license separators) written as ///
instead of //, unlike the rest of the codebase.
Passive constructions throughout the /// doc comments and DocC markdown
prose left the actor unclear or buried in a "by ..." clause. Rewrites
these as simple, direct, active-voice sentences with the generator,
decoder, encoder, or caller named as the subject.
…nd consolidating examples for using the plugins to use an older, but clearly existing, version
@heckj

heckj commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

state at the moment, rendered locally:

SwiftProtobuf SwiftProtobufPluginLibrary

In terms of coverage, it's fairly significantly expanded:

SwiftProtobuf

Types Members Globals
Before 54% (126/234) abstract / 58% curated 76% (3469/4573) abstract / 54% curated 0.40% (1/253) abstract / 52% curated
After 84% (196/234) abstract / 76% curated 87% (3972/4573) abstract / 91% curated 32% (81/253) abstract / 72% curated

Overall abstract coverage: 71% → 84%

SwiftProtobufPluginLibrary

Types Members Globals
Before 80% (33/41) abstract / 68% curated 44% (294/672) abstract / 34% curated 14% (6/42) abstract / 45% curated
After 89% (39/44) abstract / 77% curated 53% (361/678) abstract / 59% curated 25% (11/44) abstract / 52% curated

Overall abstract coverage: 44% → 54%

The main libraries have organiztion/curation for the types to make them easier for someone scanning/reading online as well as through IDEs that expose DocC content/abstracts during development (both Xcode and VSCode with the Swift extension, perhaps others - I only checked the first two)

Some of the doc content exposed comes from code generation from upstream sources (the .proto files) and in those cases, I didn't attempt to override or overload, and used what's sourced from upstream faithfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants