mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 09:20:10 +01:00
Generate API doc
This commit is contained in:
parent
564d195403
commit
96d79c8180
2 changed files with 50 additions and 31 deletions
19
gulpfile.js
19
gulpfile.js
|
|
@ -7,6 +7,7 @@ var fs = require('fs');
|
|||
var rimraf = require('rimraf');
|
||||
var cp = require('child_process');
|
||||
var httpServer = require('http-server');
|
||||
var typedoc = require("gulp-typedoc");
|
||||
|
||||
var WEBSITE_GENERATED_PATH = path.join(__dirname, 'website/playground/new-samples');
|
||||
var MONACO_EDITOR_VERSION = (function() {
|
||||
|
|
@ -238,6 +239,7 @@ gulp.task('clean-website', function(cb) { rimraf('../monaco-editor-website', { m
|
|||
gulp.task('website', ['clean-website'], function() {
|
||||
|
||||
return (
|
||||
es.merge(
|
||||
gulp.src('website/**/*', { dot: true })
|
||||
.pipe(es.through(function(data) {
|
||||
if (!data.contents || !/\.(html)$/.test(data.path)) {
|
||||
|
|
@ -253,7 +255,22 @@ gulp.task('website', ['clean-website'], function() {
|
|||
|
||||
this.emit('data', data);
|
||||
}))
|
||||
.pipe(gulp.dest('../monaco-editor-website'))
|
||||
.pipe(gulp.dest('../monaco-editor-website')),
|
||||
|
||||
// node_modules\.bin\typedoc --mode file --out out src\monaco.d.ts --includeDeclarations --theme default --entryPoint monaco --name "Monaco Editor v0.7.0 API" --readme none --hideGenerator
|
||||
gulp.src('monaco.d.ts')
|
||||
.pipe(typedoc({
|
||||
mode: 'file',
|
||||
out: '../monaco-editor-website/api',
|
||||
includeDeclarations: true,
|
||||
theme: 'default',
|
||||
entryPoint: 'monaco',
|
||||
name: 'Monaco Editor API v' + MONACO_EDITOR_VERSION,
|
||||
readme: 'none',
|
||||
hideGenerator: true
|
||||
}))
|
||||
)
|
||||
|
||||
.pipe(es.through(function(data) {
|
||||
this.emit('data', data);
|
||||
}, function() {
|
||||
|
|
|
|||
|
|
@ -18,13 +18,15 @@
|
|||
"devDependencies": {
|
||||
"event-stream": "^3.3.2",
|
||||
"gulp": "^3.9.1",
|
||||
"gulp-typedoc": "^2.0.0",
|
||||
"http-server": "^0.9.0",
|
||||
"monaco-css": "1.2.1",
|
||||
"monaco-editor-core": "0.7.3",
|
||||
"monaco-json": "1.1.1",
|
||||
"monaco-html": "1.1.0",
|
||||
"monaco-json": "1.1.1",
|
||||
"monaco-languages": "0.6.0",
|
||||
"monaco-typescript": "2.0.1",
|
||||
"rimraf": "^2.5.2"
|
||||
"rimraf": "^2.5.2",
|
||||
"typedoc": "^0.5.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue