That same site is also used to generate screenshots
(using PhantomJS’s render
function):

T:\hgwork\welfare\lino_welfare\demo>makedocs.bat
screenshooter.js has been loaded
Loading http://127.0.0.1:8000
try again after 1 second
try again after 1 second
done
Rendering to ../../docs/gen/screenshots/index.png true
Loading http://127.0.0.1:8000/api/cal/CalendarPanel
try again after 1 second
try again after 1 second
done
Rendering to ../../docs/gen/screenshots/cal.CalendarPanel.png true
Loading http://127.0.0.1:8000/api/cal/CalendarPanel?su=8
try again after 1 second
done
Rendering to ../../docs/gen/screenshots/cal.CalendarPanel-su.png true
(...)

TODO:

automatically generate the application-specific part of lino/media/jasmine/specs.js
to media/cache/js and have html_page_lines include it.

Write documentation pages that use the generated screenshots.

The whole system currently works only for read-only
(non-modifying) tests.