-
Notifications
You must be signed in to change notification settings - Fork 417
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
Make possible to use @sample in the module .md file #429
Comments
No, but you can include simple code blocks by using backticks |
Ok... I was asking because if that was possible, the code embedded in the documentation could be tested (picked from a test) and documentation would be correct :) Do you think it is worthy to convert this to an issue? And thanks for the information! :) |
(adding my details to this) Is your feature request related to a problem? Please describe I'd like to include a code sample/snippet of how the classes in the package fit together. Describe the solution you'd like Describe alternatives you've considered This can be slightly improved by maintaining 2 copies of the sample: one in the markdown, the other as code. However, it is then up to developers to know to update both locations when making changes. Additional context |
backticks do not work either, as of Gradle plugin version 1.4.0-rc |
Tried to include code sample in markdown. Single
As a result only |
For anyone looking for a workaround, I've gotten multiple
Greetings.kt: package samples
object Greetings {
fun formal() {
println("Hello")
}
fun casual() {
println("What's up?")
}
} Greetings.md: # Package my.package.name
My package overview...
@sample samples.Greetings.formal
@sample samples.Greetings.casual |
No description provided.
The text was updated successfully, but these errors were encountered: