Skip to content
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

add screenshots to demos #5

Open
jurgenvinju opened this issue Jan 27, 2023 · 1 comment
Open

add screenshots to demos #5

jurgenvinju opened this issue Jan 27, 2023 · 1 comment

Comments

@jurgenvinju
Copy link
Member

jurgenvinju commented Jan 27, 2023

Adding screenshots is a matter of using rascal-shell blocks with webapps in them:

```rascal-shell
rascal>import salix::demo::basic::Counter;
ok
rascal>counterWebApp()
ok
```

image

@jurgenvinju
Copy link
Member Author

To enable preview of the screenshots you should install chrome and chromedriver and provide the right -D options as in .github/workflows/:

-Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -Dwebdriver.chrome.browser=`which chrome`

But you can also leave it to the github action to do this just in time before the publication of the docs. Without the -D stuff the docs simply skip the generation of screenshots and they are not there in the html either as a result.

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

No branches or pull requests

1 participant