From 4a82b8be84df380115490883bc3ae298ba4bafed Mon Sep 17 00:00:00 2001 From: Joren Broekema Date: Thu, 4 Jun 2020 13:17:50 +0200 Subject: [PATCH] chore: add fixes for broken links and missing demos for forms --- .storybook/main.js | 1 + packages/form-core/docs/validate/README.md | 4 ++-- packages/form-core/docs/validate/system.md | 2 +- packages/input-amount/README.md | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.storybook/main.js b/.storybook/main.js index df9944347..37270ae79 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -5,6 +5,7 @@ module.exports = { stories: [ '../packages/*/README.md', '../packages/*/docs/*.md', + '../packages/*/docs/!(assets)**/*.md', '../docs/README.md', '../docs/**/*.md', '../README.md', diff --git a/packages/form-core/docs/validate/README.md b/packages/form-core/docs/validate/README.md index 245828072..7bbf1eaf5 100644 --- a/packages/form-core/docs/validate/README.md +++ b/packages/form-core/docs/validate/README.md @@ -29,10 +29,10 @@ Our validation system is designed to: - allow for advanced UX scenarios by updating validation state on every value change - provide a powerful way of writing validations via classes -Validation is applied by default to all [form controls](../form-core/docs/FormFundaments.md) via the +Validation is applied by default to all [form controls](?path=/docs/forms-field-overview--page) via the ValidateMixin. -For a detailed description of the validation system and the `ValidateMixin`, please see [ValidationSystem](./docs/ValidationSystem.md). +For a detailed description of the validation system and the `ValidateMixin`, please see [ValidationSystem](?path=/docs/forms-validation-system--page). ## How to use diff --git a/packages/form-core/docs/validate/system.md b/packages/form-core/docs/validate/system.md index a4bb3449b..40213c252 100644 --- a/packages/form-core/docs/validate/system.md +++ b/packages/form-core/docs/validate/system.md @@ -119,7 +119,7 @@ On top of default validators, application developers can write their own by exte ### Localization -The `ValidateMixin` supports localization out of the box via the [localize system](../../localize/). +The `ValidateMixin` supports localization out of the box via the [localize system](?path=/docs/localize-intro--page). All default validation messages are translated in the following languages (depicted by iso code): bg, cs, de, en, es, fr, hu, it, nl, pl, ro ,ru, sk, uk and zh. diff --git a/packages/input-amount/README.md b/packages/input-amount/README.md index 569648cb6..df1ae8ae6 100644 --- a/packages/input-amount/README.md +++ b/packages/input-amount/README.md @@ -30,8 +30,8 @@ export const main = () => { ## Features -- Based on [lion-input](?path=/docs/forms-system-overview--page) -- Makes use of [formatNumber](?path=/docs/localize-numbers) for formatting and parsing. +- Based on [lion-input](?path=/docs/forms-input--main#input) +- Makes use of [formatNumber](?path=/docs/localize-numbers--formatting#formatting) for formatting and parsing. - Option to show currency as a suffix - Option to override locale to change the formatting and parsing - Option to provide additional format options overrides