My aggregated monorepo of OCaml code, automaintained
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

jon-shell css: reduce body font to 16px and set x-ocaml editor font size

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

+5 -40
+2 -1
odoc-jon-shell/src/odoc_jon_shell_css.ml
··· 17 17 --highlight-bg: rgba(9, 105, 218, 0.08); 18 18 19 19 /* x-ocaml interactive cells */ 20 + --xo-font-size: 0.875rem; 20 21 --xo-bg: var(--code-bg); 21 22 --xo-text: var(--text-color); 22 23 --xo-gutter-bg: var(--code-bg); ··· 68 69 69 70 body { 70 71 font-family: var(--font-body); 71 - font-size: 18px; 72 + font-size: 16px; 72 73 line-height: 1.7; 73 74 color: var(--text-color); 74 75 background: var(--bg-color);
+1
odoc/src/html/config.ml
··· 69 69 let home_breadcrumb config = config.home_breadcrumb 70 70 71 71 let mode_links config = config.mode_links 72 + 72 73 let config_values config = config.config_values
+1
odoc/src/html/config.mli
··· 50 50 val home_breadcrumb : t -> string option 51 51 52 52 val mode_links : t -> string option 53 + 53 54 val config_values : t -> (string * string) list
+1
odoc/src/odoc/bin/main.ml
··· 1318 1318 $(i,https://example.com/modes#local)." 1319 1319 in 1320 1320 Arg.(value & opt (some string) None & info [ "mode-links" ] ~docv:"URI" ~doc) 1321 + 1321 1322 let config_values_raw = 1322 1323 let doc = 1323 1324 "A configuration key=value pair passed to the shell plugin. \
-1
test/integration/no_alias_deps.t/a.ml
··· 1 - module B = B
-1
test/integration/no_alias_deps.t/b.mli
··· 1 - type t = int
-37
test/integration/no_alias_deps.t/run.t
··· 1 - When compiling with -no-alias-deps, module aliases produce imports without 2 - digests. odoc should not try to resolve these imports, as looking them up in 3 - the include path could find stale artifacts from a previous build, associating 4 - a wrong digest and breaking incremental rebuilds. 5 - 6 - Compile b.mli normally, and a.ml with -no-alias-deps. Module A contains 7 - `module B = B`, so B appears as an import of A without a digest. 8 - 9 - $ ocamlc -c -bin-annot b.mli 10 - $ ocamlc -c -bin-annot -no-alias-deps -w -49 a.ml 11 - 12 - Verify that B has no digest in the compiled .cmt: 13 - 14 - $ ocamlobjinfo a.cmt | grep " -------------------------------- B" | head -1 15 - -------------------------------- B 16 - 17 - compile-deps correctly omits imports without digests: 18 - 19 - $ odoc compile-deps a.cmt | cut -d ' ' -f 1 | sort 20 - A 21 - CamlinternalFormatBasics 22 - Stdlib 23 - 24 - Compile both with odoc. B's .odoc is present in the include path. 25 - 26 - $ odoc compile --pkg test -I . b.cmti 27 - $ odoc compile --pkg test -I . a.cmt 28 - 29 - B should remain unresolved in A's imports, since it had no digest: 30 - 31 - $ odoc_print a.odoc | grep 'Unresolved.*"B"' 32 - { "Unresolved": [ "B", "None" ] }, 33 - 34 - link-deps should not report B as a dependency: 35 - 36 - $ odoc link-deps . | grep B 37 - [1]