Move website files to `/website/`

pull/2778/head
Alex Dima 2021-11-16 22:32:27 +01:00
parent 430d8e6e17
commit d9013a86c4
No known key found for this signature in database
GPG Key ID: 39563C1504FDD0C9
191 changed files with 9 additions and 9 deletions

View File

@ -3,7 +3,6 @@
**/release/
/monaco-editor/typedoc/theme/
/monaco-editor/typedoc/monaco.d.ts
/monaco-editor/website/lib/
/samples/browser-esm-parcel/.parcel-cache/
/samples/browser-esm-parcel/dist/
/samples/browser-esm-vite-react/dist/**/*.js
@ -15,3 +14,4 @@
/src/typescript/lib/
/test/manual/samples-all.generated.js
/test/manual/playground.generated/
/website/lib/

6
.vscode/launch.json vendored
View File

@ -24,10 +24,10 @@
{
"type": "pwa-node",
"request": "launch",
"name": "gulp website",
"name": "website",
"skipFiles": ["<node_internals>/**"],
"program": "${workspaceFolder}/node_modules/gulp/bin/gulp.js",
"args": ["website"],
"program": "${workspaceFolder}/build/website.js",
"args": [],
"cwd": "${workspaceFolder}"
},
{

View File

@ -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);
}

View File

@ -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();

View File

@ -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
});

View File

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Some files were not shown because too many files have changed in this diff Show More