Conversation
paparazzi/build.gradle
Outdated
| dokkaSourceSets.main { | ||
| reportUndocumented = false | ||
| skipDeprecated = true | ||
| jdkVersion = 17 |
There was a problem hiding this comment.
paparazzi/build.gradle
Outdated
| tasks.named("dokkaGfm").configure { | ||
| outputDirectory = rootProject.file("docs/1.x") | ||
| dokka { | ||
| dokkaPublications.configureEach { |
There was a problem hiding this comment.
If there are multiple they might overwrite each other, choose 1 with .named?
a298e0e to
22104cd
Compare
paparazzi/build.gradle
Outdated
| suppress = true | ||
| } | ||
| perPackageOption { | ||
| matchingRegex = "app.cash.paparazzi.internal.*" |
There was a problem hiding this comment.
. is special char in regex: I think the "correct" syntax in Groovy is
| matchingRegex = "app.cash.paparazzi.internal.*" | |
| matchingRegex = /app\.cash\.paparazzi\.internal\..*/ |
There was a problem hiding this comment.
Although it will work most of the time with this pattern, it is still not using periods . as proper literals. Meaning any character might match.
This version is most likely the correct one to match app.cash.paparazzi.internal and all possible nested packages:
| matchingRegex = "app.cash.paparazzi.internal.*" | |
| matchingRegex = /app\.cash\.paparazzi\.internal(\..*)?/ |
@geoff-powell can you rebase your migration or was this PR paused on purpose?
paparazzi/build.gradle
Outdated
| outputDirectory = rootProject.file("docs/1.x") | ||
| dokka { | ||
| dokkaPublications.html { | ||
| outputDirectory.set(rootProject.file("docs/1.x")) |
There was a problem hiding this comment.
| outputDirectory.set(rootProject.file("docs/1.x")) | |
| outputDirectory = rootProject.file("docs/1.x") |
There was a problem hiding this comment.
should this also be 2.x now?
paparazzi/build.gradle
Outdated
| outputDirectory = rootProject.file("docs/1.x") | ||
| dokka { | ||
| dokkaPublications.html { | ||
| outputDirectory.set(rootProject.file("docs/1.x")) |
There was a problem hiding this comment.
should this also be 2.x now?
gradle.properties
Outdated
|
|
||
| # Dokka | ||
| org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled | ||
| org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn=true |
There was a problem hiding this comment.
| org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn=true |
probably better to surface these sooner?
| tasks.named("dokkaGfm").configure { | ||
| outputDirectory = rootProject.file("docs/1.x") | ||
| dokka { | ||
| dokkaPublications.html { |
There was a problem hiding this comment.
| dokkaPublications.html { | |
| dokkaPublications.named("html").configure { |
paparazzi/build.gradle
Outdated
| outputDirectory.set(rootProject.file("docs/1.x")) | ||
| } | ||
|
|
||
| dokkaSourceSets.main { |
There was a problem hiding this comment.
| dokkaSourceSets.main { | |
| dokkaSourceSets.named("main").configure { |
| dokkaSourceSets.main { | ||
| reportUndocumented = false | ||
| skipDeprecated = true | ||
| jdkVersion = libs.versions.javaTarget.get() as int |
| perPackageOption { | ||
| prefix = "app.cash.paparazzi.internal" | ||
| suppress = true | ||
| } |
There was a problem hiding this comment.
rebase and keep:
skipEmptyPackages = true
and convert:
- includeNonPublic = false
+ documentedVisibilities(VisibilityModifier.Public)
- platform = "jvm"
+ analysisPlatform = KotlinPlatform.JVM
- externalDocumentationLink {
- url.set(java.net.URL("https://developer.android.com/reference/"))
- }
+ externalDocumentationLinks.register("docs") {
+ url("https://developer.android.com/reference/")
+ }
- sourceLink {
- localDirectory.set(file("src/main/java"))
- remoteUrl.set(java.net.URL("https://github.com/cashapp/paparazzi/tree/master/paparazzi/src/main/java"))
- remoteLineSuffix.set("#L")
- }
+ sourceLink {
+ localDirectory.set(file("src/main/java"))
+ remoteUrl("https://github.com/cashapp/paparazzi/tree/master/paparazzi/src/main/java")
+ remoteLineSuffix.set("#L")
+ }
5fa7ddd to
ba063b3
Compare
docs/1.x/index.html
Outdated
| @@ -0,0 +1,183 @@ | |||
| <!DOCTYPE html> | |||
There was a problem hiding this comment.
Did you intentionally commit the output?
jrodbx
left a comment
There was a problem hiding this comment.
cool, let's land this and fast-follow on any breaks now that we've moved to a 2.x folder.
Also, per @TWiStErRob's comment, looks like the 1.x assets were committed. Assuming that's an accident, let's revert before merge?
ba063b3 to
25dd537
Compare
mkdocs.yml
Outdated
| nav: | ||
| - 'Overview': index.md | ||
| - '1.x API': 1.x/paparazzi/app.cash.paparazzi/index.html | ||
| - '1.x API': 1.x/paparazzi/app.cash.paparazzi/index.md |
There was a problem hiding this comment.
making sure this was intentional, is the 1.x no longer using html?
01c030a to
fe3043e
Compare
fe3043e to
d5cc660
Compare
| with: | ||
| name: mkdocs-${{ github.sha }} | ||
| path: | | ||
| **/docs/ |
There was a problem hiding this comment.
what's this addition for? shouldn't this covered in the build section below?
No description provided.