mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 10:25:42 +01:00
Move website files to /website/
This commit is contained in:
parent
430d8e6e17
commit
d9013a86c4
191 changed files with 9 additions and 9 deletions
|
|
@ -368,7 +368,7 @@ function releaseDTS() {
|
|||
|
||||
writeFiles([monacodts, editorapidts], `release`);
|
||||
|
||||
fs.writeFileSync('monaco-editor/website/playground/monaco.d.ts.txt', contents);
|
||||
fs.writeFileSync('website/playground/monaco.d.ts.txt', contents);
|
||||
fs.writeFileSync('monaco-editor/typedoc/monaco.d.ts', contents);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ const http = require('http');
|
|||
const yaserver = require('yaserver');
|
||||
const { REPO_ROOT } = require('./utils');
|
||||
|
||||
const WEBSITE_GENERATED_PATH = path.join(REPO_ROOT, 'monaco-editor/website/playground/new-samples');
|
||||
const WEBSITE_GENERATED_PATH = path.join(REPO_ROOT, 'website/playground/new-samples');
|
||||
|
||||
generateTestSamplesTask();
|
||||
|
||||
|
|
|
|||
|
|
@ -38,14 +38,14 @@ generateWebsite();
|
|||
*/
|
||||
function replaceWithRelativeResource(dataPath, contents, regex, callback) {
|
||||
return contents.replace(regex, function (_, m0) {
|
||||
const filePath = path.join(REPO_ROOT, 'monaco-editor/website', path.dirname(dataPath), m0);
|
||||
const filePath = path.join(REPO_ROOT, 'website', path.dirname(dataPath), m0);
|
||||
return callback(m0, fs.readFileSync(filePath));
|
||||
});
|
||||
}
|
||||
|
||||
function generateWebsite() {
|
||||
const files = readFiles('monaco-editor/website/**/*', {
|
||||
base: 'monaco-editor/website',
|
||||
const files = readFiles('website/**/*', {
|
||||
base: 'website',
|
||||
dot: true
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue