Skip to content
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

Simplify multi-module documentation #1387

Merged
merged 19 commits into from
Aug 31, 2020
Merged

Conversation

sellmair
Copy link
Member

Closes #1265

@sellmair sellmair added enhancement An issue for a feature or an overall improvement feedback: Kotlin libs Feedback from Kotlin's internal libraries runner: Gradle plugin An issue/PR related to Dokka's Gradle plugin labels Aug 25, 2020
@sellmair sellmair added this to the 1.4.10 milestone Aug 25, 2020
@sellmair sellmair force-pushed the f/1265-multi-module-documentation branch 2 times, most recently from ee0ec51 to d32a1bf Compare August 26, 2020 13:40
@sellmair sellmair force-pushed the f/1265-multi-module-documentation branch 7 times, most recently from 81d2a76 to 4cbe1fc Compare August 28, 2020 06:20
@sellmair sellmair marked this pull request as ready for review August 28, 2020 09:36
@sellmair sellmair force-pushed the f/1265-multi-module-documentation branch from e57115e to 17c4ab9 Compare August 28, 2020 09:46
@sellmair sellmair force-pushed the f/1265-multi-module-documentation branch 2 times, most recently from c56e4f5 to 354e0af Compare August 28, 2020 13:42
@sellmair sellmair force-pushed the f/1265-multi-module-documentation branch from 7a124f5 to 50962e9 Compare August 28, 2020 14:40
core/src/main/kotlin/defaultConfiguration.kt Outdated Show resolved Hide resolved
core/src/main/kotlin/model/CompositeSourceSetID.kt Outdated Show resolved Hide resolved
core/src/main/kotlin/model/Documentable.kt Outdated Show resolved Hide resolved
var pluginsClasspath: List<File> = emptyList()
var pluginsConfigurations: Map<String, String> = emptyMap()
var failOnWarning: Boolean = false
private val lazySourceSets = mutableListOf<Lazy<DokkaSourceSetImpl>>()
Copy link
Contributor

Choose a reason for hiding this comment

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

I think few things can be simplified if we were storing here not Lazy<DokkaSourceSetImpl> but (moduleName: String) -> DokkaSourceSetImpl. Especially we would get rid of strange restriction that module name must be defined before the sourcesets.

Copy link
Contributor

Choose a reason for hiding this comment

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

Bump

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh. We should have continued this conversation here. Pawel and me talked about this in Slack:
Basically my argument here was, that making it the signature () -> DokkaSouceSetImpl would work, but it would just obfuscate the original contract which is: Yes this is lazy, but yes you will always get the same instance. IIRC, then we agreed on using Lazy here to signal this contract!

suppressedFiles = emptySet(),
analysisPlatform = Platform.DEFAULT
)
val defaultSourceSet = testApi.testRunner.defaultSourceSet
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really need this file?

Copy link
Member Author

Choose a reason for hiding this comment

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

We would not, but that would require me to change a lot usages to refer to the new path. I putted this into a "lower" module, since I needed it there 🙄
Do you want me to go ahead changing all usages, or should I go with a Deprecated annotation?

Copy link
Contributor

Choose a reason for hiding this comment

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

Annotating it as deprecated would produce lots of warnings, wouldn't it?
I know that removing it will be a tedious process but for the sake of project we shouldn't have leftovers such as this in our repo. 😒

Copy link
Member Author

Choose a reason for hiding this comment

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

Done ✅ ☺️

@sellmair sellmair modified the milestones: 1.4.10, 1.4.0-1 Aug 31, 2020
@sellmair sellmair requested a review from Kordyjan August 31, 2020 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An issue for a feature or an overall improvement feedback: Kotlin libs Feedback from Kotlin's internal libraries runner: Gradle plugin An issue/PR related to Dokka's Gradle plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multi Module documentation, requires README.md, and includes of file with duplicate content.
3 participants