You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 6310 Reporter:@avsm Assigned to:@zoggy Status: closed (set by @xavierleroy on 2015-12-11T18:25:40Z) Resolution: fixed Priority: low Severity: tweak Version: 4.01.0 Fixed in version: 4.02.0+dev Category: ocamldoc Tags: patch
Bug description
The superscript and subscript classes for ocamldoc are set to 4 pixels, which essentially makes them invisible on a modern browser. For example, the "Random.int" documentation appears to state that the bound should be from 0 to 2 here: http://caml.inria.fr/pub/docs/manual-ocaml/libref/Random.html
The below diff tweaks it to a more reasonable size:
diff --git a/ocamldoc/generators/odoc_literate.ml b/ocamldoc/generators/odoc_literate.ml
index 6a1e078..38545f9 100644
--- a/ocamldoc/generators/odoc_literate.ml
+++ b/ocamldoc/generators/odoc_literate.ml
@@ -127,8 +127,8 @@ class html =
"a:active {color : Red; text-decoration : underline; }" ;
".keyword { font-weight : bold ; color : Red }" ;
".keywordsign { color : #C04600 }" ;
".superscript { font-size : 4 }" ;
".subscript { font-size : 4 }" ;
".superscript { font-size : 0.6em }" ;
".subscript { font-size : 0.6em }" ;
".comment { color : Green }" ;
".constructor { color : Blue }" ;
".type { color : #5C6585 }" ;
The text was updated successfully, but these errors were encountered:
Original bug ID: 6310
Reporter: @avsm
Assigned to: @zoggy
Status: closed (set by @xavierleroy on 2015-12-11T18:25:40Z)
Resolution: fixed
Priority: low
Severity: tweak
Version: 4.01.0
Fixed in version: 4.02.0+dev
Category: ocamldoc
Tags: patch
Bug description
The superscript and subscript classes for ocamldoc are set to 4 pixels, which essentially makes them invisible on a modern browser. For example, the "Random.int" documentation appears to state that the bound should be from 0 to 2 here: http://caml.inria.fr/pub/docs/manual-ocaml/libref/Random.html
The below diff tweaks it to a more reasonable size:
diff --git a/ocamldoc/generators/odoc_literate.ml b/ocamldoc/generators/odoc_literate.ml
index 6a1e078..38545f9 100644
--- a/ocamldoc/generators/odoc_literate.ml
+++ b/ocamldoc/generators/odoc_literate.ml
@@ -127,8 +127,8 @@ class html =
"a:active {color : Red; text-decoration : underline; }" ;
".keyword { font-weight : bold ; color : Red }" ;
".keywordsign { color : #C04600 }" ;
The text was updated successfully, but these errors were encountered: