Update docs (#965)

* chore(docs): run "npx browserslist@latest --update-db"

* chore(docs): upgrade carbon-icons-svelte to latest

* refactor(docs): re-use styles from css/all.scss

* chore(docs): add pnpm install command

* chore(docs): upgrade prettier, prettier-plugin-svelte

* docs(date-picker): improve "DatePicker in a modal" example

* fix(docs): restore "scripts-markup-styles" svelte sort order

* chore(docs): upgrade mdsvex

* chore(deps-dev): bump prettier, prettier-plugin-svelte, svelte

* refactor(docs): use svelte:fragment where applicable

* fix(docs): include missing "options" in svelteSortOrder prettier config
This commit is contained in:
Eric Liu 2022-01-01 10:58:42 -08:00 committed by GitHub
commit dce2dda72a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 119 additions and 190 deletions

View file

@ -23,6 +23,7 @@
const installYarn = "yarn add -D carbon-components-svelte";
const installNpm = "npm i -D carbon-components-svelte";
const installPnpm = "pnpm i -D carbon-components-svelte";
const themes = {
white: "White",
g10: "Gray 10",
@ -98,6 +99,10 @@
<Row noGutter>
<CodeSnippet code="{installNpm}" />
</Row>
<h4>Using pnpm:</h4>
<Row noGutter>
<CodeSnippet code="{installPnpm}" />
</Row>
</Column>
</Row>
<Row style="margin-bottom: var(--cds-layout-04)">
@ -126,7 +131,7 @@
<Tab label="CSS StyleSheet" />
<Tab label="CDN" />
<Tab label="SCSS" />
<div slot="content">
<svelte:fragment slot="content">
<TabContent>
<p>
This library ships with six pre-compiled CSS StyleSheets built
@ -194,7 +199,7 @@
for documentation.
</p>
</TabContent>
</div>
</svelte:fragment>
</Tabs>
</Column>
</Row>