-
Notifications
You must be signed in to change notification settings - Fork 14
Description
I would like to automate building documentation by exporting livescripts to markdown for use with a static site generator. The export function requires a display (related to #51?) and therefore fails in CI.
I set up a build task makeDocs
which only runs export on a GettingStarted.mlx
.
The error is:
** Starting makeDocs
## -----------------------------------------------------------------------------
## Error occurred in 'makeDocs' and it did not run to completion.
## Identifier: 'cefclient:webwindow:MissingDisplay'
## Message: DISPLAY environment variable must be set to a valid X11 display.
## Stack:
I'm working on an example toolbox to test out using github actions with toolboxes (https://github.com/DavidRConnell/githubaction-toolbox-mwe). The mlx is very simple and just prints a few numbers (no plotting). I can run the makeDocs
build task locally with matlab -batch 'buildtool makeDocs'
. When adding the -nodisplay
flag it doesn't error but it does hang and never completes the task.
As a test, I tried setting the environment variable DISPLAY=:0.0
and got the error:
** Starting makeDocs
## -----------------------------------------------------------------------------
## Error occurred in 'makeDocs' and it did not run to completion.
## Identifier: 'cefclient:webwindow:launchProcessFailed'
## Message: MATLABWindow application failed to launch. Unable to launch the MATLABWindow application. The exit code was: 267
Anyway to export examples? Not sure why this would require a display.