Skip to content
This repository has been archived by the owner on Jan 23, 2022. It is now read-only.

Commit

Permalink
fix(docs): allow requirejs in options.scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitgrelard committed Jan 10, 2014
1 parent b023423 commit faaebd9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/templates/index.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,20 @@
addTag('link', {rel: 'stylesheet', href: 'css/prettify.css', type: 'text/css'});
addTag('link', {rel: 'stylesheet', href: 'css/docs.css', type: 'text/css'});
addTag('link', {rel: 'stylesheet', href: 'css/animations.css', type: 'text/css'});

<% _.forEach(styles, function(url) { %>
addTag('link', {rel: 'stylesheet', href: '<%= url %>', type: 'text/css'}, sync);
<% }); %>

addTag('script', {src: 'js/google-code-prettify.js'}, sync);
addTag('script', {src: 'js/marked.js'}, sync);

<% _.forEach(scripts, function(url) { %>
addTag('script', {src: '<%= url %>'}, sync);
<% }); %>

addTag('script', {src: 'js/angular-bootstrap.js'}, sync);
addTag('script', {src: 'js/angular-bootstrap-prettify.js'}, sync);
addTag('script', {src: 'js/google-code-prettify.js'}, sync);
addTag('script', {src: 'js/marked.js'}, sync);
addTag('script', {src: 'js/docs-setup.js'}, sync);
addTag('script', {src: 'js/docs.js'}, sync);

Expand Down

0 comments on commit faaebd9

Please sign in to comment.