mbonnin
01/08/2024, 12:44 PM-javadocs
artifacts to MavenCentral? Is that still used nowadays?Emil Kantis
01/08/2024, 2:05 PMmbonnin
01/08/2024, 2:10 PMmbonnin
01/08/2024, 2:11 PMAdam S
01/08/2024, 4:09 PMJeff Lockhart
01/08/2024, 7:49 PM-javadoc
jar. I figure that's at least more useful than an empty one.mbonnin
01/08/2024, 10:23 PMpublishToMavenLocal
. + the setup code is not trivial (we have KMP, Android, JVM, gradle plugins, etc...). At this point I wonder if it's worth maintaining all that codeJeff Lockhart
01/08/2024, 10:35 PMAdam S
01/08/2024, 10:54 PMAdam S
01/08/2024, 10:58 PMmbonnin
01/08/2024, 10:59 PMyou could just add a link to the docs inside instead?I like that!
mbonnin
01/08/2024, 11:00 PMis packaging it into a JAR going to be used by anyone?Current plan is to use it for my own needs. CI would download "older" versions from MavenCentral
mbonnin
01/08/2024, 11:01 PMAdam S
01/08/2024, 11:01 PMJeff Lockhart
01/08/2024, 11:12 PMCLOVIS
01/09/2024, 2:13 PMmbonnin
01/09/2024, 2:16 PMmbonnin
01/09/2024, 2:17 PMCLOVIS
01/09/2024, 2:17 PMmbonnin
01/09/2024, 2:18 PMmbonnin
01/09/2024, 2:18 PMCLOVIS
01/09/2024, 2:19 PMmbonnin
01/09/2024, 2:19 PMCLOVIS
01/09/2024, 2:19 PMCLOVIS
01/09/2024, 2:20 PMCLOVIS
01/09/2024, 2:20 PMmbonnin
01/09/2024, 2:20 PMmbonnin
01/09/2024, 2:20 PMCLOVIS
01/09/2024, 2:21 PMCLOVIS
01/09/2024, 2:21 PMCLOVIS
01/09/2024, 2:22 PMOleg Yukhnevich
01/09/2024, 2:29 PMversioning
plugin to host multi-version Dokka documentation? πCLOVIS
01/09/2024, 2:29 PMCLOVIS
01/09/2024, 2:30 PMOleg Yukhnevich
01/09/2024, 2:31 PMGetting the links to work cross modules would probably not be fun.
At least in my situation they don't, since all modules' are built independently.Theoretically you could setup it via
externalDocumentationLink
in this case but I haven't triedCLOVIS
01/09/2024, 2:32 PMTheoretically you could setup it viaThat would require hard-coding the links to be to javadoc.io, right? I'm not sure I prefer hard-coding this particular service for anyone who opens the JAR vs not linking at all and letting them figure out they need to open the other JAR too.in this case but I haven't triedexternalDocumentationLink
mbonnin
01/09/2024, 2:33 PMmbonnin
01/09/2024, 2:34 PMexternalDocumentationLink
in this case but I haven't tried
I don't think that can work without some JS/scripting, right? If we're keeping static files as the target, the old docs need to be aware of the "new" docs, which can only happen if everything is built at the same time (i.e. stateful?) edit: or maybe an iframe?Oleg Yukhnevich
01/09/2024, 2:35 PMBecause my CD is stateless, and doesn't have access to the previously built files.question 1: if you are using github pages, there is possibility to store current version - it should be enough to build next version (as current will include all previous version) question 2: if you are publishing it in
javadoc.jar
, then you have all previous version built and stored in the most reliable file-storage - Maven Central π But setup could be not as easyCLOVIS
01/09/2024, 2:36 PMOleg Yukhnevich
01/09/2024, 2:37 PMThat would require hard-coding the links to be to javadoc.io, right?yes, good point, though, if
javadoc
here is the main use case, so why not? not sure, that a lot of people will open javadoc.jar
manually, but I understandmbonnin
01/09/2024, 2:38 PMyou have all previous version built and stored in the most reliable file-storage - Maven CentralFWIW, this is what I'm doing here, downloading the previous versions on demand when building the current version
mbonnin
01/09/2024, 2:39 PMOleg Yukhnevich
01/09/2024, 2:39 PMI don't think that can work without some JS/scripting, right?Not sure why do you need it.
externalDocumentationLink
will generate links in build time - and as for <http://javadoc.io|javadoc.io>
use case, every version will have it's own URL and separate website (inside iframe)
So links between modules for single version will be resolved statically
Or am I missing something?CLOVIS
01/09/2024, 2:40 PMquestion 1: if you are using github pages, there is possibility to store current version - it should be enough to build next version (as current will include all previous version)I'm using GitLab Pages, which is mostly similar: the CD job generates a static website, and GitLab hosts that magically. I do not have a single folder in which old documentation is stored, but I could download each version separately from their version number. I feel like we are a bit going off-topic for this thread, don't hesitate to create another thread in #dokka and @ me so we can continue this discussion π
question 2: if you are publishing it inThat's true, but the MavenCentral output is not aggregated, each module only has its own documentation, whereas on the main website it's a single output merging everything., then you have all previous version built and stored in the most reliable file-storage - Maven Central π But setup could be not as easyjavadoc.jar
mbonnin
01/09/2024, 2:40 PMOr am I missing something?Yea, with iframes I think it works π. Sorry not a huge HTML expert π
CLOVIS
01/09/2024, 2:41 PMDoesn't it first load the URL to get the package-list, and then only links to what it finds inside it? In this example, all modules would be built in parallel, so none of them have been published yet, and the URL is necessarily incorrect.will generate links in build time - and as forexternalDocumentationLink
use case, every version will have it's own URL and separate website (inside iframe)<http://javadoc.io|javadoc.io>
CLOVIS
01/09/2024, 2:42 PMOleg Yukhnevich
01/09/2024, 2:47 PMI feel like we are a bit going off-topic for this thread, don't hesitate to create another thread in #dokka and @ me so we can continue this discussionYeah. I see, there are some things, that are harder than I first thought π I will try some ways to achieve what you want (now, that I understand the issues) and will come back in coming days I will ping you in #dokka channel after that Thanks!
Oleg Yukhnevich
01/09/2024, 2:50 PMDoesn't it first load the URL to get the package-list, and then only links to what it finds inside it? In this example, all modules would be built in parallel, so none of them have been published yet, and the URL is necessarily incorrect.Last offtop answer , I promise π It's possible to provide local path to
package-list
, so it will be possible to resolve at least links from dependencies (full cross-linking will be not possible I believe)
Anyway, it's more a hack, then a proper solution, I understand...