Skip to content

Conversation

jonludlam
Copy link
Member

This is a set of changes primarily aimed at making tests easier to run. The main changes are:

  1. 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.

  2. 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.

  3. 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 to index.html

@jonludlam jonludlam mentioned this pull request Jun 30, 2021
1 task
Instead use `Page(None,name). This change allows pages without parents
to be leaf pages, which again helps with tests.
@jonludlam jonludlam merged commit 40aa758 into ocaml:master Jul 3, 2021
Copy link
Contributor

@Drup Drup left a 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", ... *)
Copy link
Contributor

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.

Copy link
Member Author

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 :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants