I am developing documentation for a package with Workbench. So far I have used
Quit[]
Needs["mypackage`"]
at the beginning of each Tutorial. This is because I want a clean global environment and package loading at the same time.
I ran some builds and everything worked as expected, but I wonder: is there a better way to have a clean global context and the package context load "automatically" each time a launch a tutorial for my package with MMA?
In other words: going from one tutorial to the next, or from a tutorial back to a regular MMA notebook, is it possible that all symbols defined in the tutorial examples be "forgotten"? In the standard MMA tutorial pages, this is what seems to happen.
I suppose this could be done this a local/notebook context.
But how would this work in practice?
Thank you for your help