mirror of
https://github.com/videojs/video.js.git
synced 2024-12-23 02:04:34 +02:00
c1a1f9cb5d
* docs: Update jsdoc template for better use on mobile * add logo * add logo css * redirects should have trailing slash to avoid another redirect * add and style linnks in header, remove from footer * update theme to get rid of file list * improve doc index text * Add version number in Github link
13 lines
464 B
JavaScript
13 lines
464 B
JavaScript
// Updates the "vX.X.X source" link to github in .jsdoc.json
|
|
// that will be included in the menu of the API docs
|
|
|
|
const fs = require('fs');
|
|
const jsdocConfig = require('../.jsdoc.json');
|
|
const pkgJson = require('../package.json');
|
|
|
|
jsdocConfig.opts.theme_opts.menu.find(menuItem => {
|
|
return menuItem.link === 'https://github.com/videojs/video.js';
|
|
}).title = `v${pkgJson.version} source`;
|
|
|
|
fs.writeFileSync('.jsdoc.json', JSON.stringify(jsdocConfig, null, 2));
|