Skip to content

Commit

Permalink
(doc) Remove references to the platform installer (#1988)
Browse files Browse the repository at this point in the history
- Text in /docs/platform
- Url and routes

Co-authored-by: Cuihtlauac ALVARADO <[email protected]>
  • Loading branch information
cuihtlauac and cuihtlauac authored Feb 5, 2024
1 parent 6467041 commit 41c6dad
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 17 deletions.
4 changes: 0 additions & 4 deletions src/global/url.ml
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,9 @@ let tutorial_search = "/docs/search"
let getting_started = "/docs/get-started"
let installing_ocaml = "/docs/installing-ocaml"
let exercises = "/exercises"
let installer = "/install-platform.sh"
let outreachy = "/outreachy"
let logos = "/logo"

let github_installer =
"https://github.com/tarides/ocaml-platform-installer/releases/latest/download/installer.sh"

let github_opam_file package_name package_version =
Printf.sprintf
"https://github.com/ocaml/opam-repository/blob/master/packages/%s/%s.%s/opam"
Expand Down
11 changes: 0 additions & 11 deletions src/ocamlorg_frontend/pages/platform.eml
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,6 @@ Learn_layout.three_column_layout
Detailed instructions to install OCaml and the
Platform tools are available in <a class="text-primary"
href="<%s Url.installing_ocaml %>">"Installing OCaml"</a>.

If you want to use the simpler, but experimental way to install the
Platform, you can use the <a class="text-primary"
href="https://github.com/tarides/ocaml-platform-installer"> OCaml
Platform Installer</a>. To download it, run:
</p>
<pre><code><%s "bash < <(curl -sL https://ocaml.org" ^ Url.installer ^ ")" %></code></pre>
<p>
And run it to install the Platform tools in your opam switch:
</p>
<pre><code>ocaml-platform</code></pre>
</div>
<div
class="mt-12 cursor-pointer z-0 relative rounded-2xl h-[413px] w-full overflow-hidden border-4 border-[#FEF0E9] dark:border-dark-primary_20 video-shadow md:w-[640px]"
Expand Down
1 change: 0 additions & 1 deletion src/ocamlorg_web/lib/handler.ml
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,6 @@ let exercises req =
in
Dream.html (Ocamlorg_frontend.exercises ?difficulty_level filtered_exercises)

let installer req = Dream.redirect req Url.github_installer
let outreachy _req = Dream.html (Ocamlorg_frontend.outreachy Data.Outreachy.all)

type package_kind = Package | Universe
Expand Down
1 change: 0 additions & 1 deletion src/ocamlorg_web/lib/router.ml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ let page_routes t =
Dream.get Url.tutorial_search Handler.learn_documents_search;
Dream.get (Url.tutorial ":id") Handler.tutorial;
Dream.get Url.playground Handler.playground;
Dream.get Url.installer Handler.installer;
Dream.get Url.logos Handler.logos;
]

Expand Down

0 comments on commit 41c6dad

Please sign in to comment.