File tree Expand file tree Collapse file tree 3 files changed +12
-40
lines changed Expand file tree Collapse file tree 3 files changed +12
-40
lines changed Original file line number Diff line number Diff line change @@ -24,31 +24,11 @@ let html_of_doc ~config ~resolve docs =
2424 let children = List. concat @@ List. map (doc_to_html ~is_in_a ) docs in
2525 match info with
2626 | Syntax tok -> [ span ~a: [ a_class [ tok ] ] children ]
27- | Link { documentation; implementation } -> (
28- let href_implementation =
29- Option. map (Link. href ~config ~resolve ) implementation
30- in
31- let href_documentation =
32- Option. map (Link. href ~config ~resolve ) documentation
33- in
34- let body =
35- match href_implementation with
36- | Some href -> [ a ~a: [ a_href href ] children ]
37- | None -> children
38- in
39- match href_documentation with
40- | None -> body
41- | Some href ->
42- [
43- span
44- ~a: [ a_class [ " jump-to-doc-container" ] ]
45- [
46- span ~a: [] body;
47- a
48- ~a: [ a_href href; a_class [ " jump-to-doc" ] ]
49- [ txt " 📖" ];
50- ];
51- ])
27+ (* Currently, we do not render links to documentation *)
28+ | Link { documentation = _ ; implementation = None } -> children
29+ | Link { documentation = _ ; implementation = Some anchor } ->
30+ let href = Link. href ~config ~resolve anchor in
31+ [ a ~a: [ a_href href ] children ]
5232 | Anchor lbl -> [ span ~a: [ a_id lbl ] children ])
5333 in
5434 span ~a: [] @@ List. concat @@ List. map (doc_to_html ~is_in_a: false ) docs
Original file line number Diff line number Diff line change @@ -1203,14 +1203,6 @@ td.def-doc *:first-child {
12031203 color : # 657b83 ;
12041204}
12051205
1206- .jump-to-doc-container : hover .jump-to-doc {
1207- display : inline;
1208- }
1209-
1210- .jump-to-doc {
1211- display : none;
1212- }
1213-
12141206/* Source directories */
12151207
12161208.odoc-directory ::before {
You can’t perform that action at this time.
0 commit comments