Skip to content

Conversation

@biplab1
Copy link
Collaborator

@biplab1 biplab1 commented Oct 1, 2025

Jira ticket: KMPPT-81

Summary of Changes:

  • Used dokka for API documentation generation
  • Added a basic docusaurus website for feature documentation

@biplab1 biplab1 marked this pull request as draft October 1, 2025 15:34
@biplab1 biplab1 force-pushed the KMPPT-81-document-generation-template-structure branch 2 times, most recently from 1713745 to ce5909c Compare October 6, 2025 16:52
@coderabbitai
Copy link

coderabbitai bot commented Oct 28, 2025

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Collaborator

@niyajali niyajali left a comment

Choose a reason for hiding this comment

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

@biplab1 this will fix the issue also pull the latest changes and rebase this branch

// Dokka for documentation
register("dokkaConvention") {
id = "org.convention.dokka.plugin"
implementationClass = "org.convention.DokkaConventionPlugin"
Copy link
Collaborator

Choose a reason for hiding this comment

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

change it to DokkaConventionPlugin

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changed it to DokkaConventionPlugin

}
}

dokka {
Copy link
Collaborator

Choose a reason for hiding this comment

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

You won't need to call this block as you're configuring this on the convention plugin using this method(configureDokkaConvention)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Forgot to remove that block. Removed them now.

alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.kotlin.parcelize)
alias(libs.plugins.mifos.kmp.room)
alias(libs.plugins.dokka)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Also, you no need to apply this plugin on (core,core-base, feature) modules as this applied on KMP convention plugin so it will applied automatically, but you need to apply this on the application modules such as cmp-android, cmp-desktop etc if the kmp plugin isn't applied on there and need to manually set the module name using the dokka block like below.

Copy link
Collaborator Author

@biplab1 biplab1 Oct 28, 2025

Choose a reason for hiding this comment

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

I have removed the dokka plugin in modules where KMP convention is present and applied in those where KMP convention is absent. Module name is not required to be set for modules other than the once inside core and core-base since those have same names which needs to be uniquely defined for the navigation panel in dokka to be correctly displayed.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't understand brother, are you asking about some issues or just updating me,

If you getting issue regarding the core,core-base module names as few might present on both directory then you need update this method(configureDokkaConvention) accordingly will solve the issue, no need to set the package name explicitly on those modules.

Copy link
Collaborator

Choose a reason for hiding this comment

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

And as I can see that method also handle it properly as it remove the colon(:) and replace with hyphen(-) so for exam the (core: analytics) will be core-analytics and the (core-base:analytics) would be core-base-analytics and if you want to configure it in other format then update that method accordingly @biplab1

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Module name is not required to be set for modules other than the once inside core and core-base since those have same names which needs to be uniquely defined for the navigation panel in dokka to be correctly displayed.

I meant that we don’t need to change the module names for cmp-android, cmp-desktop, cmp-web, etc. Also, it was a statement, not a question, since it lacks grammatical structuring like that of a question and doesn’t include a question mark.

@biplab1 biplab1 force-pushed the KMPPT-81-document-generation-template-structure branch from 2edabb7 to bf783a8 Compare October 29, 2025 15:09
@biplab1 biplab1 force-pushed the KMPPT-81-document-generation-template-structure branch from bf783a8 to 0e1066e Compare October 29, 2025 15:45
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