Skip to content

Conversation

patrickfreed
Copy link
Contributor

SWIFT-734

This PR updates the release and documentation scripts to generate the docs in a way that works for multiple versions of the driver, based on SwiftNIO's setup. See #600 for the changes it makes to the gh-pages branch (or rather, check out the branch of my fork, since that diff is crazy).

--module-version "${version}")

# Generate MongoSwift docs
sourcekitten doc --spm --module-name MongoSwift > mongoswift-docs.json
Copy link
Contributor Author

@patrickfreed patrickfreed Feb 5, 2021

Choose a reason for hiding this comment

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

this was required to make the script work on Linux.

see: https://github.com/realm/jazzy#linux

@@ -0,0 +1,17 @@
import os
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I really loathe bash scripting (and I can't write it either) so I just made another python script.

@patrickfreed patrickfreed requested a review from kmahar February 5, 2021 00:43
Copy link
Contributor

@kmahar kmahar left a comment

Choose a reason for hiding this comment

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

nice, LGTM!

this got me thinking about getting the BSON lib symbols to show up in these docs going forward... I think we discussed this but don't think we have a ticket about it 🤔 opened SWIFT-1113

@patrickfreed
Copy link
Contributor Author

Good point, also I need to port this setup over to the BSON library too, since it probably makes sense for it to host its own docs as well. I'll do a follow up PR in swift-bson after this.

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.

2 participants