docs: function () {
              var config = scope.getConfig();
              config.$textContainer = $();
  
              // we can just load the text immediately
              $promise = scope.get('page-text', 1).then(function (html) {
                  // the viewport could be window in useWindowAsViewport, so get
                  // the real viewport div
                  var $viewport = config.$doc.parent();
                  config.$doc = $(html);
                  $viewport.html(config.$doc);
              });
          }