Skip to content

Commit 715e0c8

Browse files
committed
Add link to Corelib doc and Stdlib refman
1 parent f2c5b75 commit 715e0c8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/global/url.ml

+4
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,12 @@ let patch v =
6363
let v2 = "https://v2.ocaml.org"
6464
let manual_with_version v = "/doc/V" ^ patch v ^ "/refman/index.html"
6565
let manual = "/refman"
66+
let corelib_with_version v = "/doc/V" ^ patch v ^ "/corelib/index.html"
67+
let corelib = "/corelib"
6668
let stdlib_with_version v = "/doc/V" ^ patch v ^ "/stdlib/index.html"
6769
let stdlib = "/stdlib"
70+
let stdlib_manual_with_version v = "/doc/V" ^ patch v ^ "/refman-stdlib/index.html"
71+
let stdlib_manual = "/refman-stdlib"
6872
let api_with_version v = "/doc/V" ^ patch v ^ "/api/index.html"
6973
let api = "/api"
7074
let books = "/books"

src/rocqproverorg_frontend/pages/learn.eml

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ Learn_layout.single_column_layout
2727
<div class="flex flex-col gap-4 md:gap-6 md:w-80">
2828
<%s! Hero_section.hero_button ~left_icon:(Icons.rocq "w-5 h-5") ~right_icon:(Icons.download "w-5 h-5") ~text:("Install Rocq Platform " ^ latest_platform_version)
2929
~href:(Url.install) "" %>
30-
<%s! Hero_section.hero_button ~left_icon:(Icons.book "w-5 h-5") ~right_icon:(Icons.link "w-5 h-5") ~text:("Standard Library") ~href:(Url.stdlib) "" %>
3130
<%s! Hero_section.hero_button ~left_icon:(Icons.book "w-5 h-5") ~right_icon:(Icons.link "w-5 h-5") ~text:("Rocq Reference Manual") ~href:(Url.manual) "" %>
31+
<%s! Hero_section.hero_button ~left_icon:(Icons.book "w-5 h-5") ~right_icon:(Icons.link "w-5 h-5") ~text:("Core Library") ~href:(Url.corelib) "" %>
32+
<%s! Hero_section.hero_button ~left_icon:(Icons.book "w-5 h-5") ~right_icon:(Icons.link "w-5 h-5") ~text:("Standard Library Manual") ~href:(Url.stdlib_manual) "" %>
33+
<%s! Hero_section.hero_button ~left_icon:(Icons.book "w-5 h-5") ~right_icon:(Icons.link "w-5 h-5") ~text:("Standard Library") ~href:(Url.stdlib) "" %>
3234
</div>
3335
</div>
3436
</div>

0 commit comments

Comments
 (0)