-
Notifications
You must be signed in to change notification settings - Fork 101
Improvements to help tests #698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Instead use `Page(None,name). This change allows pages without parents to be leaf pages, which again helps with tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks excellent. I reviewed, it's good to go 👍
kind : string; | ||
kind : kind; | ||
(** What kind of element the path points to. | ||
e.g. "module", "module-type", "exception", ... *) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation should change I guess.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, will follow up :-)
This is a set of changes primarily aimed at making tests easier to run. The main changes are:
Flat output for HTML - in this mode HTML files for nested modules/module types/classes/class types that would ordinarily have been output into a directory tree will now be output into a single directory. The motivation for this is that dune does not currently cope well with targets in different directories, so this sidesteps the issue. The change is minimally invasive, so even though this is not the default mode we expect to use, tests run using this mode should be a reliable indicator of how it should behave in the usual case. All of the links should still work.
Compilation units may now be compiled without a parent page. This is a convenience for tests, and allows the different output renderers to place the files in an analogous structure.
A new argument
--extra-suffix
for all generators allows the tests to specify that output filenames should have an additional suffix appended onto them. This allows tests to render e.g.index.html.gen
and then arrange for this to be diffed with and promoted toindex.html