• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

panglesd / odoc / 982

07 Nov 2024 05:06PM UTC coverage: 72.986%. Remained the same
982

push

github

panglesd
Sidebar: better handling of missing page index

We use the id name (corresponding to the directory name) for the page title.

There is one case where we don't have access to an id:
```
$ odoc compile --output_dir _odoc --parent-id "" file.mld
$ odoc link _odoc/page-file.mld
$ odoc sidebar-generate -P _odoc/
```

The parent id of page `file` is `None` and we do not have an `index.mld` with
the same parent...

See also the test

19 of 20 new or added lines in 1 file covered. (95.0%)

10 existing lines in 1 file now uncovered.

10164 of 13926 relevant lines covered (72.99%)

2989.41 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

83.1
/src/document/sidebar.ml


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc