-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add DocC to the project and host it where I can read it. #49
Comments
Sounds like a great addition - Feel free to open a PR for review when you want some review! |
This is a thing: https://github.com/DoccZz/docc2html |
Marking this as low priority since our Jazzy docs just got a really nice upgrade |
@MattFreiburgAsynchrony and I started to delve into this, but aren't yet sure a good tutorial to try this out on. We were starting down the path of trying to make an app that uses the features of SwiftCurrent, but were concerned that we'd be showing mostly how to make a bespoke app and not necessarily showing the features of the lib. Taking a step back to see if providing a use cases directory a la this to see if that might make more sense. We like the idea of short nuggets that show you what you can do without prescribing an app that does all the things. All this is to say that we're working on providing something that can instruct new users of how to consume the lib, but not quite sure what the best medium is. |
^ The project I mentioned takes the approach of having a bunch of use cases in one app. That is not necessarily what I had in mind. What I had in mind was more like a bunch of snippets or perhaps very small apps. Matt might have a different idea, but this is what I was thinking. |
I messed around a fair bit with trying to get a docc-generating GitHub action set up, leaning on the work from the PointFree guys' at Swift Parsing. I got as far as this:
That gave us Docc documentation for just the SwiftCurrent target hosted in GitHub pages, which is a great first step. However, we had trouble getting the _UIKit and _SwiftUI targets to get docc'd without jumping through some hoops. When Swift 5.6 and/or Xcode 13.3 get released, I think we'll have more flexibility. I've cobbled together the beginnings of a macOS hosted GitHub action that may get us up and running when they are released. More work will undoubtedly be necessary to get this working. I just couldn't test it until Xcode 13.3 gets released.
Locally, using the Xcode 13.3-beta3 version, I can run:
to generate GitHub pages-host able docc documentation. (In order to also document our _SwiftUI target, we'd need to add that to our SwiftCurrent scheme) Also newly available alongside Swift 5.6 is the DocC swift package plugin, which enables an additional command-line syntax:
Stay tuned... |
Xcode 14 to the rescue? |
I wish...we can host it on GitHub pages now but it still can't handle multiple targets. So our docs would be disconnected, but Jazzy is giving us all modules joined. |
Update on this, there's movement/discussion about a real implementation of DocC supporting multiple targets: https://forums.swift.org/t/combined-documentation-of-multiple-targets |
Is your feature request related to a problem? Please describe.
I like the jazzy docs but I would get so much more from DocC with the articles and nicer layout. Also having those documents available to me locally would be helpful with getting on-boarded.
Describe the solution you'd like
A DocC created for the project or for each framework (whatever makes sense), and a website I can view that DocC.
Describe alternatives you've considered
Keep using Jazzy and the wiki. And then I'll just keep being sad.
The text was updated successfully, but these errors were encountered: