Skip to content

Commit 81a70d4

Browse files
Merge pull request #6656 from DReigada/github-pages-redirect-http-to-https
Generate CNAME file on docs generation
2 parents 0c8e027 + 5897a0c commit 81a70d4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

project/Build.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,9 @@ object Build {
369369
val majorVersion = baseVersion.take(baseVersion.lastIndexOf('.'))
370370
IO.write(file("./docs/_site/versions/latest-nightly-base"), majorVersion)
371371

372+
// This file is used by GitHub Pages when the page is available in a custom domain
373+
IO.write(file("./docs/_site/CNAME"), "dotty.epfl.ch")
374+
372375
val sources = unmanagedSources.in(mode match {
373376
case NonBootstrapped => `dotty-library`
374377
case Bootstrapped => `dotty-library-bootstrapped`

0 commit comments

Comments
 (0)