Skip to content

Commit 0c45ebb

Browse files
committed
Disable inlining of expansions
We keep the inlining code for now, as it is partially used for other purposes (variants, records) and in case we'd want to add it back.
1 parent 0d5e556 commit 0c45ebb

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Diff for: src/markdown/link.ml

+2-10
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,7 @@ let as_filename (url : Url.Path.t) =
1919
let str_path = String.concat Fpath.dir_sep (dir @ [ path ]) in
2020
Fpath.(v str_path + ".md")
2121

22-
let rec is_class_or_module_path (url : Url.Path.t) =
23-
match url.kind with
24-
| `Module | `LeafPage | `Page | `Class -> (
25-
match url.parent with
26-
| None -> true
27-
| Some url -> is_class_or_module_path url)
28-
| _ -> false
29-
30-
let should_inline x = not @@ is_class_or_module_path x
22+
let should_inline _ = false
3123

3224
let files_of_url url =
33-
if is_class_or_module_path url then [ as_filename url ] else []
25+
if should_inline url then [] else [ as_filename url ]

0 commit comments

Comments
 (0)