Skip to content

Commit

Permalink
fix: custom components assets (#511)
Browse files Browse the repository at this point in the history
# Docs updates should not be submitted in this repository

Our doc site content is being automatically updated from [Wing](https://github.com/winglang/wing) repository docs folder.

Please submit any changes to the docs as a PR [here](https://github.com/winglang/wing/pulls)
  • Loading branch information
ainvoner authored Jul 6, 2023
1 parent b7c3fc6 commit c5251e8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

import FileCodeBlock from './FileCodeBlock';
import helloWPath from '!file-loader!../examples/function-upload-to-bucket/wing/hello.w';

import getExamplePlatforms from '../examples/getExamplePlatforms';
import getExampleWingFile from '../examples/getExampleWingFile';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,23 @@

// Also js files are js.txt files until we find a way to make Docusaurus not minify them

import pulumiIndexPath from '!file-loader!./pulumi/index.js.txt';
import pulumiMainPath from '!file-loader!./pulumi/main.ts';
import pulumiPulumiPath from '!file-loader!./pulumi/pulumi.yaml';

import terraformIndexPath from '!file-loader!./terraform/index.js.txt';
import terraformMainPath from '!file-loader!./terraform/main.tf';
import pulumiIndexPath from '!file-loader?outputPath=docs!./pulumi/index.js.txt';
import pulumiMainPath from '!file-loader?outputPath=docs!./pulumi/main.ts';
import pulumiPulumiPath from '!file-loader?outputPath=docs!./pulumi/pulumi.yaml';

import cdkHelloPath from '!file-loader!./aws-cdk/hello.js.txt';
import cdkIndexPath from '!file-loader!./aws-cdk/index.js.txt';
import terraformIndexPath from '!file-loader?outputPath=docs!./terraform/index.js.txt';

import cdktfIndexPath from '!file-loader!./cdktf/index.js.txt';
import cdktfMainPath from '!file-loader!./cdktf/main.ts';
import terraformMainPath from '!file-loader?outputPath=docs!./terraform/main.tf';

import cloudformationIndexPath from '!file-loader!./cloudformation/index.js.txt';
import cloudformationTemplatePath from '!file-loader!./cloudformation/template.yaml';
import cdkHelloPath from '!file-loader?outputPath=docs!./aws-cdk/hello.js.txt';
import cdkIndexPath from '!file-loader?outputPath=docs!./aws-cdk/index.js.txt';

import cdktfIndexPath from '!file-loader?outputPath=docs!./cdktf/index.js.txt';
import cdktfMainPath from '!file-loader?outputPath=docs!./cdktf/main.ts';

import cloudformationIndexPath from '!file-loader?outputPath=docs!./cloudformation/index.js.txt';
import cloudformationTemplatePath from '!file-loader?outputPath=docs!./cloudformation/template.yaml';

const allPlatforms = [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// We cannot parse the folder structure at runtime because of Docusaurus and webpack limitations

import wingHelloPath from '!file-loader!./wing/hello.w';
import wingHelloPath from '!file-loader?outputPath=docs!./wing/hello.w';

export default { name: "hello.js", path: wingHelloPath };

1 comment on commit c5251e8

@vercel
Copy link

@vercel vercel bot commented on c5251e8 Jul 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.