esdoc / esdoc-plugins

MIT License
139 stars 74 forks source link

Error in inject script (and style) #26

Open oravecz opened 7 years ago

oravecz commented 7 years ago
let i = 0;
for (const style of this._option.styles) {
  const src = `./inject/css/${i}-${path.basename(style)}`;
  $('head').append(`<link rel="stylesheet" href="${src}"/>`);
}

I never increments. Maybe a leftover when loop was written differently?

mmiller42 commented 7 years ago

I wasn't seeing a lot of activity in this repo and I needed to add assets to my docs, so I made my own plugin for injecting CSS and JS files, if you want to take a look: https://github.com/mmiller42/esdoc-inject-assets-plugin