Skip to content

Commit c674b5d

Browse files
committed
Revert "Ensure example image resources are available"
This reverts commit c32ccbc.
1 parent c32ccbc commit c674b5d

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,5 @@ htmlcov/
3131

3232
docs/source/_static/jupyter-threejs.js
3333
docs/source/_static/three.js
34-
docs/source/examples/img
3534

3635
js/lab-dist

js/scripts/copy-files.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ const staticDir = path.resolve(baseDir, '..', 'pythreejs', 'static');
1212
const buildDir = path.resolve(baseDir, 'dist');
1313
const docStaticDir = path.resolve(baseDir, '..', 'docs', 'source', '_static');
1414

15-
const exampleImagesSrcDir = path.resolve(baseDir, '..', 'examples', 'img');
16-
const exampleImagesDstDir = path.resolve(baseDir, '..', 'docs', 'source', 'examples', 'img');
17-
1815

1916
function copyThree() {
2017
return fse.copy(
@@ -34,25 +31,10 @@ function copyBundleToDocs() {
3431
});
3532
}
3633

37-
function copyExampleImagesToDocs() {
38-
return fse.readdir(exampleImagesSrcDir).then((dirFiles) => {
39-
return Promise.all(dirFiles.map(filePath => {
40-
return fse.copy(
41-
path.resolve(exampleImagesSrcDir, filePath),
42-
path.resolve(exampleImagesDstDir, filePath)
43-
).then(function() {
44-
console.log(`Copied ${filePath} to docs examples' image folder`);
45-
});
46-
}));
47-
});
48-
}
49-
50-
5134
if (require.main === module) {
5235
// This script copies files after a build
5336
Promise.all([
5437
copyThree(),
5538
copyBundleToDocs(),
56-
copyExampleImagesToDocs(),
5739
]);
5840
}

0 commit comments

Comments
 (0)