Skip to content

Commit

Permalink
improve python intro and scala web docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Feb 1, 2025
1 parent 35b24b1 commit 3ad0947
Show file tree
Hide file tree
Showing 41 changed files with 21 additions and 11 deletions.
11 changes: 9 additions & 2 deletions docs/modules/ROOT/pages/pythonlib/intro.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@
= Building Python with Mill




:language: python
:language-small: python

Mill can be used to build Python projects, whether large pure-Python codebases
or Python modules mixed in with other languages like Java or Kotlin. While Python
is traditionally a scripting language, larger Python projects often include tools like
xref:pythonlib/linting.adoc#_formatting[autoformatting], xref:pythonlib/linting.adoc#_linting[linting],
typechecking with Mypy, packaging PEX files, xref:pythonlib/publishing.adoc[publishing to PyPI],
and so on. These workflows can benefit from a build tool like Mill to provide parallelization,
caching, xref:large/selective-execution.adoc[Selective Test Execution], and other
features that speed up development and CI.

include::partial$Intro_Header.adoc[]

NOTE: Mill's Python support is still under active development, and you can expect
Expand Down
18 changes: 10 additions & 8 deletions docs/modules/ROOT/pages/scalalib/web-examples.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,32 @@ include::partial$example/scalalib/web/1-todo-webapp.adoc[]

include::partial$example/scalalib/web/2-webapp-cache-busting.adoc[]

== TodoMVC http4s Web App

include::partial$example/scalalib/web/3-todo-http4s.adoc[]

== Scala.js Modules

include::partial$example/scalalib/web/3-scalajs-module.adoc[]
include::partial$example/scalalib/web/4-scalajs-module.adoc[]

== Scala.js Webserver Integration

include::partial$example/scalalib/web/4-webapp-scalajs.adoc[]
include::partial$example/scalalib/web/5-webapp-scalajs.adoc[]

== Scala.js/Scala-JVM Code Sharing

include::partial$example/scalalib/web/5-webapp-scalajs-shared.adoc[]
include::partial$example/scalalib/web/6-webapp-scalajs-shared.adoc[]

== Publishing Cross-Platform Scala Modules

include::partial$example/scalalib/web/6-cross-version-platform-publishing.adoc[]
include::partial$example/scalalib/web/7-cross-version-platform-publishing.adoc[]

== Publishing Cross-Platform Scala Modules Alternative

include::partial$example/scalalib/web/7-cross-platform-version-publishing.adoc[]
include::partial$example/scalalib/web/8-cross-platform-version-publishing.adoc[]

== Scala.js WebAssembly Example

include::partial$example/scalalib/web/8-wasm.adoc[]
include::partial$example/scalalib/web/9-wasm.adoc[]

== TodoMVC http4s Web App

include::partial$example/scalalib/web/9-todo-http4s.adoc[]
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ object `package` extends RootModule with ScalaModule {
}
}

// This example demonstrates how to set up a simple Scala webserver
// This example demonstrates how to set up a Scala webserver using the popular
// https://http4s.org/[Http4S] web framework and associated libraries.
// implementing the popular Todo-MVC demo application. It includes a test suite
// that spins up the web server locally and makes HTTP requests against it.

Expand Down
File renamed without changes.

0 comments on commit 3ad0947

Please sign in to comment.