Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimize the vertical space in docs taken up by top bar and tool bar #4437

Merged
merged 6 commits into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions docs/modules/ROOT/pages/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@



https://index.scala-lang.org/com-lihaoyi/mill/mill-main[image:https://index.scala-lang.org/com-lihaoyi/mill/mill-main/latest.svg[Mill]]
https://github.com/com-lihaoyi/mill/blob/main/changelog.adoc[image:https://index.scala-lang.org/com-lihaoyi/mill/mill-main/latest.svg[Mill]]
https://central.sonatype.com/artifact/com.lihaoyi/mill-dist[image:https://img.shields.io/maven-central/v/com.lihaoyi/mill-dist?label=latest-unstable-version[Maven Central Version]]
https://www.patreon.com/lihaoyi[image:https://img.shields.io/badge/patreon-sponsor-ff69b4.svg[Patreon]]

Mill is a fast, scalable, multi-language build tool that supports Java, Scala,
Kotlin, and Python:
Expand Down
20 changes: 20 additions & 0 deletions docs/supplemental-ui/partials/header-content.hbs
Original file line number Diff line number Diff line change
@@ -1,14 +1,34 @@
<header class="header">
<style>
/* auto-hyphenation is super ugly */
*{
hyphens: manual !important;
}

/* Reduce font size from 17px to something reasonable */
.doc {
font-size: 16px !important;
}
.doc pre {
font-size: 14px !important;
}
/* Shrink unreasonably large top bar */
nav.navbar{
height: 2.5rem;
}
body.article{
padding-top: 2.5rem;
}
div.nav-container{
top: 2.5rem;
}
div.toolbar{
top: 2.5rem;
}
aside.nav{
top: 2.5rem;
height: calc(100vh - 2.5rem);
}
</style>
<script>
gtag('config', 'AW-16649289906');
Expand Down
5 changes: 0 additions & 5 deletions docs/supplemental-ui/partials/page-versions.hbs

This file was deleted.

13 changes: 13 additions & 0 deletions docs/supplemental-ui/partials/toolbar.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

{{!
Reduce space taken up by toolbar:

* Make it position:fixed so it floats over the main article
* Split it into two, left and right, to avoid blocking the middle of the page
}}
<div class="toolbar" role="navigation" style="position: fixed; top: 2.5rem; height: 2rem; left: 0px;">
{{> nav-toggle}}
</div>
<div class="toolbar" style="position: fixed; top: 2.5rem; height: 1.5rem; right: 0px; ">
{{> edit-this-page}}
</div>
3 changes: 1 addition & 2 deletions readme.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ ifdef::env-github[]
:warning-caption: :warning:
endif::[]

https://index.scala-lang.org/com-lihaoyi/mill/mill-main[image:https://index.scala-lang.org/com-lihaoyi/mill/mill-main/latest.svg[Mill]]
https://github.com/com-lihaoyi/mill/blob/main/changelog.adoc[image:https://index.scala-lang.org/com-lihaoyi/mill/mill-main/latest.svg[Mill]]
https://central.sonatype.com/artifact/com.lihaoyi/mill-dist[image:https://img.shields.io/maven-central/v/com.lihaoyi/mill-dist?label=latest-unstable-version[Maven Central Version]]
https://www.patreon.com/lihaoyi[image:https://img.shields.io/badge/patreon-sponsor-ff69b4.svg[Patreon]]


Mill is a fast, scalable, multi-language build tool that supports Java, Scala,
Expand Down