Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Migrate to Generator models #104

Closed
wants to merge 12 commits into from
Closed

Migrate to Generator models #104

wants to merge 12 commits into from

Conversation

mattt
Copy link
Contributor

@mattt mattt commented May 8, 2020

Resolves #67
Resolves #27

Adding support for DocSet generation (#27) gives us a good opportunity to revisit the original implementation for the generate subcommand. Ad hoc use of if and switch statements work well enough for alternating between 2 formats, but that breaks down for 3 or more.

Now, all generators are unified around a single, common interface:

static func generate(for module: Module, with options: SwiftDoc.Generate.Options) throws

As for the DocSet generation itself, the HTML and search index are functional, but need some fine-tuning. CSS routing should work after merging #93.

@mattt mattt added this to the 1.0.0-beta.5 milestone Jul 31, 2020
@mattt mattt modified the milestones: 1.0.0-beta.5, 1.0.0-beta.6 Sep 25, 2020
@mattt mattt closed this Apr 17, 2021
@mattt mattt removed this from the 1.0.0-beta.6 milestone Apr 17, 2021
@mattt mattt mentioned this pull request Jun 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rearchitect documentation generators DocSet Output
1 participant