mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 11:35:40 +01:00
Customize API doc theme
This commit is contained in:
parent
b817dda06a
commit
25e381f6f9
9 changed files with 165 additions and 0 deletions
|
|
@ -175,6 +175,14 @@ function addPluginDTS() {
|
|||
// Ensure consistent indentation and line endings
|
||||
contents = cleanFile(contents);
|
||||
|
||||
// Mark events in doc!!
|
||||
contents = contents.replace(/( \*\/\n\s+)on(.*IDisposable)/gm, function(_, m0, m1) {
|
||||
var m = m0.match(/( +)$/);
|
||||
var indentation = m[1];
|
||||
return ' * @event\n' + indentation + ' */\n' + indentation + 'on' + m1;
|
||||
});
|
||||
|
||||
|
||||
data.contents = new Buffer(contents);
|
||||
|
||||
fs.writeFileSync('website/playground/monaco.d.ts.txt', contents);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue