Skip to content

Remove main warn banner #807

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

Merged
merged 1 commit into from
Jan 30, 2024
Merged
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
33 changes: 0 additions & 33 deletions src/layouts/ManualDocsLayout.res
Original file line number Diff line number Diff line change
Expand Up @@ -49,38 +49,6 @@ module Latest = {
let title = "Language Manual"
let version = "latest"

// TODO: Remove this once the work on the v11 milestone is completed.
// https://github.com/rescript-association/rescript-lang.org/milestone/6
let warnBanner = {
open Markdown

let v10Url =
"/" ++
(Js.Array2.joinWith(url.base, "/") ++
("/v10.0.0/" ++ Js.Array2.joinWith(url.pagepath, "/")))

let label = switch Js.Array2.find(Constants.allManualVersions, ((v, _)) => {
v === version
}) {
| Some((_, label)) => label
| None => version
}

<div className="mb-10">
<Warn>
<P>
{React.string(
"You are currently looking at the " ++
(label ++
" docs, which are still a work in progress. If you miss anything, you may find it in the older v10.0 docs "),
)}
<A href=v10Url> {React.string("here")} </A>
{React.string(".")}
</P>
</Warn>
</div>
}

<LatestLayout
theme=#Reason
components
Expand All @@ -90,7 +58,6 @@ module Latest = {
availableVersions=Constants.allManualVersions
?frontmatter
breadcrumbs>
warnBanner
children
</LatestLayout>
}
Expand Down