MDL-61460 tool_componentlibrary: Documentation for Moodle UI components

- This tool is only available for admins
- Before using this tool the hosting admin will need to have NPM installed and be able to run grunt
- To create the docs pages for the library run "grunt componentlibrary"
- After the pages are created the Library is available in Site adminstration > Development > UI Component Library
This commit is contained in:
Bas Brands 2021-05-27 15:37:25 +02:00 committed by Adrian Greeve
parent fa073102d3
commit 3de68ad434
140 changed files with 9501 additions and 2 deletions

View file

@ -129,6 +129,9 @@ module.exports = grunt => {
},
});
// Add the 'componentlibrary' task as a startup task.
grunt.moodleEnv.startupTasks.push('componentlibrary');
return {
docsBuild,
cssBuild,

View file

@ -50,6 +50,7 @@ module.exports = grunt => {
'theme/boost/style/moodle.css',
'theme/classic/style/moodle.css',
'jsdoc/styles/*.css',
'admin/tool/componentlibrary/hugo/dist/css/docs.css',
].concat(thirdPartyPaths);
grunt.file.write('.stylelintignore', stylelintIgnores.join('\n') + '\n');
};