Skip to content

docs: enable SPI documentation rendering via DocC - #125

Merged
kou merged 3 commits into
apache:mainfrom
DivineDominion:packageindex
Jan 21, 2026
Merged

docs: enable SPI documentation rendering via DocC#125
kou merged 3 commits into
apache:mainfrom
DivineDominion:packageindex

Conversation

@DivineDominion

@DivineDominion DivineDominion commented Jan 19, 2026

Copy link
Copy Markdown
Contributor

What's Changed

Swift Package Index automatically hosts rendered and browse-able documentation when DocC is used.

This PR adds an overview of the API surface of this library (a Markdown index file) that guides the documentation generator. It can be browsed in Xcode, too, if you want a preview:

2026-01-19 07-38-08 Xcode - Arrow  Documentation@2x

Enhancements would include more tutorialized content on how to use this, but the project website exists for this for now.

Closes #128.

Comment thread .spi.yml

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread README.md
## Getting Started

TODO: We should refer auto generated documentation on Swift Package Index after we register this package to Swift Package Index.
For API documentation and usage examples, see the [documentation on Swift Package Index](https://swiftpackageindex.com/apache/arrow-swift/documentation).

@DivineDominion DivineDominion Jan 19, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That link will start to work after the merge (when SPI picks up the changes)

@kou

kou commented Jan 19, 2026

Copy link
Copy Markdown
Member

Could you add our license header?

@DivineDominion

Copy link
Copy Markdown
Contributor Author

@kou I added the header from the README to the documentation index file. Finger crossed Apple's weird build tools work with that!

Comment thread .spi.yml
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
@DivineDominion

Copy link
Copy Markdown
Contributor Author

Thanks @kou I didn't think of the yaml file!

@kou kou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@kou
kou merged commit 015c8e1 into apache:main Jan 21, 2026
10 checks passed
@kou

kou commented Jan 31, 2026

Copy link
Copy Markdown
Member

@DivineDominion https://swiftpackageindex.com/apache/arrow-swift/ shows the "Documentation" link but https://swiftpackageindex.com/apache/arrow-swift/main/documentation/arrow returns "An unknown error occurred.". How to debug this?

@kou

kou commented Jan 31, 2026

Copy link
Copy Markdown
Member

Wow. It shows our documentation now... Why...?

@DivineDominion

DivineDominion commented Feb 2, 2026

Copy link
Copy Markdown
Contributor Author

Tagged releases are indexed and documentation is generated 'immediately' but for main branch updates, they run nightly jobs to check only, so it may take a while. @kou

Edit: oh, it's back to errors. I'll ask!

@DivineDominion
DivineDominion deleted the packageindex branch February 2, 2026 04:37
@kou

kou commented Feb 2, 2026

Copy link
Copy Markdown
Member

I understand. Thanks for the explanation!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generate documents on Swift Package Index and link to it from README

2 participants