-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: add DocC API documentation #214
Conversation
@TomWFox this should make the docs look even nicer and once some of the interactive tutorials are added from the Playgrounds allow linking to blogs, etc. The tutorials are pretty easy to make and will look like: https://developer.apple.com/tutorials/SwiftUI I've attempted to make this release to the current documentation link (I think this has to be The docs will look like (can be switched to dark/light mode by the user): https://syndikit.dev/documentation/ |
This looks great, thanks for all the insightful info. I'm looking forward to interactive tutorials! I don't think changing |
@TomWFox I tried this out on one of my personal repo's and it seems there's some additional work we need to figure out with GitHub Pages to get this to show the documentation. I think it has something to do with finding the equivalent to:
In Jekyll, https://developer.apple.com/documentation/Xcode/distributing-documentation-to-external-developers |
Conflicts: ParseSwift.xcodeproj/project.pbxproj
Hmm, I did some reading and it seems it’s not currently possible to host DocC as a static site for GitHub pages. This post was insightful https://www.jessesquires.com/blog/2021/06/29/apple-docc-great-but-useless-for-oss/ - there was a reference to a post about converting the archive to a static site but I would imagine that could be a janky solution. It seems straight forward to host DocC on Netlify or similar but it wouldn’t be ideal to loose the simplicity of gh pages. We may have to wait to see how things develop here. |
Great find! From the article, they linked to a tweet which mentions DocC may eventually be hosted by Swift Package Index which would make for an easy process https://twitter.com/_sa_s/status/1410155365270966274?s=21 |
Conflicts: CHANGELOG.md Sources/ParseSwift/ParseConstants.swift
Thanks for opening this pull request!
|
I will reformat the title to use the proper commit message syntax. |
Codecov Report
@@ Coverage Diff @@
## main #214 +/- ##
==========================================
+ Coverage 84.98% 85.01% +0.03%
==========================================
Files 114 114
Lines 12048 12048
==========================================
+ Hits 10239 10243 +4
+ Misses 1809 1805 -4
Continue to review full report at Codecov.
|
New Pull Request Checklist
Issue Description
Starting from Xcode 13, DocC can be used to build documentation natively. These make the docs look exactly look like the apple docs along with enabling the addition of interactive tutorials. Tutorials can be created easily from the Playground code, though screenshots will need to be added to the tutorial assets to make them look nice.
Related issue: #n/a
Approach
TODOs before merging