Skip to content

Add support for --cross in the doc sub-command#4183

Merged
Gedochao merged 1 commit intoVirtusLab:mainfrom
Gedochao:feature/cross-doc
Mar 17, 2026
Merged

Add support for --cross in the doc sub-command#4183
Gedochao merged 1 commit intoVirtusLab:mainfrom
Gedochao:feature/cross-doc

Conversation

@Gedochao
Copy link
Contributor

@Gedochao Gedochao commented Mar 16, 2026

Adds support for --cross generating documentation with doc.

//> using scala 2.13 3.3
package lib

/** Example class for cross-built documentation. */
class Example {
  /** Returns a greeting. */
  def greet: String = "Hello"
}
scala-cli --power doc --cross . -o doc-out
# Wrote Scaladoc to doc-out/2.13.18
# Wrote Scaladoc to doc-out/3.3.7

Checklist

  • tested the solution locally and it works
  • ran the code formatter (scala-cli fmt .)
  • ran scalafix (./mill -i __.fix)
  • ran reference docs auto-generation (./mill -i 'generate-reference-doc[]'.run)

How much have your relied on LLM-based tools in this contribution?

extensively, Cursor + Claude

How was the solution tested?

automated tests included

Additional notes

@Gedochao Gedochao force-pushed the feature/cross-doc branch from 90e14bd to e149b36 Compare March 16, 2026 09:22
@Gedochao Gedochao force-pushed the feature/cross-doc branch from e149b36 to 536d2f3 Compare March 16, 2026 09:27
@Gedochao Gedochao marked this pull request as ready for review March 16, 2026 10:56
@Gedochao Gedochao requested review from tgodzik and zielinsky March 16, 2026 10:56
@Gedochao Gedochao enabled auto-merge (squash) March 16, 2026 13:15
@Gedochao Gedochao merged commit 4c529d6 into VirtusLab:main Mar 17, 2026
172 of 180 checks passed
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