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

How to only show the functions that are defined in the class? #1780

Closed
shipsywor opened this issue Mar 16, 2021 · 1 comment
Closed

How to only show the functions that are defined in the class? #1780

shipsywor opened this issue Mar 16, 2021 · 1 comment
Labels
question A user question, can be resolved if the question is answered/resolved

Comments

@shipsywor
Copy link

shipsywor commented Mar 16, 2021

Question
How to only show the functions that are defined in the class?

Screenshots

k_2021-03-16_18-39-53

Installation

  • Operating system: Windows
  • Build tool: Gradle v6.8.2
  • Dokka version: 1.4.20

Additional context
Please specify in my Android build.gradle file, what configuration should I add with examples. Having so many hundreds of functions that I did not defined makes the doc almost unuseable.

The screenshot shown above is generated for the Class. As you can see, only nice function and onCreate doc should have been generated:

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        nice("PIZZA")
    }

    /**
     * Deserve it pizza nice
     */
    fun nice(poi: String){
        Log.d("Nice", "nice: FUN $poi ")
    }
}

Here is what I tried:

android {

    dokkaHtml.configure {
        dokkaSourceSets {
            named("main") {
                noAndroidSdkLink.set(false)
                skipEmptyPackages.set(true)
            }
        }
    }
}

Thank you for helping!

@shipsywor shipsywor added the question A user question, can be resolved if the question is answered/resolved label Mar 16, 2021
@zsmb13
Copy link
Contributor

zsmb13 commented Mar 16, 2021

This duplicates the issue mentioned above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A user question, can be resolved if the question is answered/resolved
Projects
None yet
Development

No branches or pull requests

3 participants