Skip to content

Commit e055b9f

Browse files
amcdnljelbourn
authored andcommitted
docs: convert demos to stackblitz (#8546)
1 parent 1fd833a commit e055b9f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

scripts/deploy/publish-docs-content.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ git clone $repoUrl $repoPath --depth 1
4040
rm -rf $repoPath/*
4141

4242
# Create folders that will contain docs content files.
43-
mkdir $repoPath/{overview,guides,api,examples,plunker,examples-package}
43+
mkdir $repoPath/{overview,guides,api,examples,stackblitz,examples-package}
4444

4545
# Copy api files over to $repoPath/api
4646
cp -r $docsPath/api/* $repoPath/api
@@ -75,8 +75,8 @@ done
7575
# Copy highlighted examples into $repoPath
7676
cp -r $examplesSource/* $repoPath/examples
7777

78-
# Copy example plunker assets
79-
cp -r $docsPath/plunker/* $repoPath/plunker
78+
# Copy example stackblitz assets
79+
cp -r $docsPath/stackblitz/* $repoPath/stackblitz
8080

8181
# Copies assets over to the docs-content repository.
8282
cp LICENSE $repoPath/

src/material-examples/example-data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class ExampleData {
1919

2020
constructor(example: string) {
2121
if (example && EXAMPLE_COMPONENTS[example]) {
22-
this.examplePath = `/assets/plunker/examples/${example}/`;
22+
this.examplePath = `/assets/stackblitz/examples/${example}/`;
2323
// TODO(tinayuangao): Do not hard-code extensions
2424
this.exampleFiles = ['html', 'ts', 'css']
2525
.map((extension) => `${example}-example.${extension}`);

tools/gulp/tasks/docs.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ task('docs', [
8080
'api-docs',
8181
'minified-api-docs',
8282
'build-examples-module',
83-
'plunker-example-assets',
83+
'stackblitz-example-assets',
8484
]);
8585

8686
/** Generates html files from the markdown overviews and guides for material. */
@@ -151,10 +151,10 @@ task('minified-api-docs', ['api-docs'], () => {
151151
.pipe(dest('dist/docs/api/'));
152152
});
153153

154-
/** Copies example sources to be used as plunker assets for the docs site. */
155-
task('plunker-example-assets', () => {
154+
/** Copies example sources to be used as stackblitz assets for the docs site. */
155+
task('stackblitz-example-assets', () => {
156156
src(path.join(packagesDir, 'material-examples', '**/*'))
157-
.pipe(dest(path.join(DIST_DOCS, 'plunker', 'examples')));
157+
.pipe(dest(path.join(DIST_DOCS, 'stackblitz', 'examples')));
158158
});
159159

160160
/** Updates the markdown file's content to work inside of the docs app. */

0 commit comments

Comments
 (0)