We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 027cee8 commit 31f55abCopy full SHA for 31f55ab
test/parent_id/dune
@@ -1,2 +1,7 @@
1
+(env
2
+ (_
3
+ (binaries
4
+ (../odoc_print/odoc_print.exe as odoc_print))))
5
+
6
(cram
- (deps %{bin:odoc}))
7
+ (deps %{bin:odoc} %{bin:odoc_print}))
test/parent_id/empty_parent_id.t/run.t
@@ -0,0 +1,15 @@
+ $ echo "{0 Test}" > file.mld
+It is possible to have pages with no parent, even with the odoc 3 "parent-id"
+argument. In this case, an empty string is passed as argument.
+ $ odoc compile --parent-id "" --output-dir _odoc file.mld
+ $ ls _odoc
8
+ page-file.odoc
9
+ $ odoc_print _odoc/page-file.odoc | jq ".name"
10
+ {
11
+ "`LeafPage": [
12
+ "None",
13
+ "file"
14
+ ]
15
+ }
0 commit comments