refactoring build process to emit standalone snippet partials and entire demo pages