fix(docs): make use of app factory for docs