diff --git a/CHANGELOG.md b/CHANGELOG.md index 35e1a981c..8f796bf88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,14 +1,10 @@ ---- -name: Changelog ---- - # Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/) and this project adheres to [Semantic Versioning](https://semver.org/). -## [Unreleased] +## [2.1.1] - 2020-09-01 Just minor documentation fixes. @@ -18,6 +14,7 @@ Just minor documentation fixes. ### Fixed - Mobile navigation in documentation ("Components" tab dropdown now works as expected). +- Styles now load properly when navigating directly to a page in the docs (without passing through the main page first) ## [2.1.0] - 2020-08-21 @@ -27,4 +24,5 @@ Previous, undocumented, releases can be found in [the releases section](https:// [Unreleased]: https://github.com/illright/attractions/compare/v2.1.0...HEAD +[2.1.1]: https://github.com/illright/attractions/releases/tag/2.1.1 [2.1.0]: https://github.com/illright/attractions/releases/tag/2.1.0 diff --git a/attractions/package.json b/attractions/package.json index f912051f4..f3b8dc713 100644 --- a/attractions/package.json +++ b/attractions/package.json @@ -1,6 +1,6 @@ { "name": "attractions", - "version": "2.1.0", + "version": "2.1.1", "description": "A UI kit for Svelte", "license": "MIT", "svelte": "index.js", diff --git a/docs/.gitignore b/docs/.gitignore index 6b6be0f08..86f2fad43 100644 --- a/docs/.gitignore +++ b/docs/.gitignore @@ -5,3 +5,4 @@ yarn-error.log /cypress/screenshots/ /__sapper__/ .env +.svx diff --git a/docs/package.json b/docs/package.json index 070cd46de..829a99a58 100644 --- a/docs/package.json +++ b/docs/package.json @@ -28,7 +28,7 @@ "@rollup/plugin-node-resolve": "^9.0.0", "@rollup/plugin-replace": "^2.2.0", "attractions": "^2.0.3-alpha", - "mdsvex": "^0.8.6", + "mdsvex": "^0.8.7", "node-sass": "^4.14.1", "postcss": "^7.0.32", "prism-svelte": "^0.4.6", diff --git a/docs/rollup.config.js b/docs/rollup.config.js index d03396739..09ec77720 100644 --- a/docs/rollup.config.js +++ b/docs/rollup.config.js @@ -36,7 +36,10 @@ const preprocess = [ scss: { includePaths: ['./static/css'] }, }), mdsvex({ - layout: './src/mdsvex/layout.svelte', + layout: { + docs: './src/mdsvex/layout.svelte', + _: './src/mdsvex/layout-no-head.svelte', + }, smartypants: { quotes: false, ellipses: true, diff --git a/docs/src/mdsvex/layout-no-head.svelte b/docs/src/mdsvex/layout-no-head.svelte new file mode 100644 index 000000000..551e6a6b2 --- /dev/null +++ b/docs/src/mdsvex/layout-no-head.svelte @@ -0,0 +1,29 @@ + + + diff --git a/docs/src/routes/docs/components/button.svx b/docs/src/routes/docs/components/button.svx index 43ffbfa89..a6630a34e 100644 --- a/docs/src/routes/docs/components/button.svx +++ b/docs/src/routes/docs/components/button.svx @@ -89,7 +89,7 @@ Comes in three flavours: filled, outline and flat. | **`disabled`** | `false` | `boolean` | Disables the button, styling it appropriately and disabling click events. | | **`href`** | `null` | `string` | Turns the button into a link (prefetch-enabled for Sapper). | | **`noPrefetch`** | `false` | `boolean` | Disables Sapper prefetching for link buttons (those with an ==`href`== prop). | -| **`events`** | `[]` | `Array` | List of handlers for the [Events action](): `[{ name, handler }]`. | +| **`events`** | `[]` | `Array` | List of handlers for the [Events action](./docs/utilities): `[{ name, handler }]`. | | **`...`** | | `any` | Everything else will be passed to the underlying `