docs: use pre-compiled CSS from linked package

This commit is contained in:
Eric Liu 2020-10-09 18:00:42 -07:00
commit 905330bc14
4 changed files with 8 additions and 5 deletions

View file

@ -35,6 +35,12 @@ Install the project dependencies:
yarn install yarn install
``` ```
Build the CSS used in the documentation site:
```sh
yarn build:css
```
## Documentation set-up ## Documentation set-up
Component documentation is located in the `docs` folder. The website is built using svite, routify, and MDsveX. You will need to create a symbolic project link in order to see live changes reflected when developing locally. Component documentation is located in the `docs` folder. The website is built using svite, routify, and MDsveX. You will need to create a symbolic project link in order to see live changes reflected when developing locally.

View file

@ -5,10 +5,6 @@
<link rel="icon" href="/favicon.ico" /> <link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Carbon Components Svelte</title> <title>Carbon Components Svelte</title>
<link
rel="stylesheet"
href="https://unpkg.com/carbon-components-svelte/css/all.css"
/>
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>

View file

@ -1,3 +1,4 @@
import "/node_modules/carbon-components-svelte/css/all.css";
import App from "./App.svelte"; import App from "./App.svelte";
const app = new App({ const app = new App({

View file

@ -114,7 +114,7 @@
margin-bottom: var(--cds-layout-02); margin-bottom: var(--cds-layout-02);
} }
.bx--content { main.bx--content {
background: none; background: none;
} }