diff --git a/content/app/development/ux/components/_common-props-content/_INSTRUCTIONS.md b/content/app/development/ux/components/_common-props-content/_INSTRUCTIONS.md index 9f56fea7465..d3d2d37e54b 100644 --- a/content/app/development/ux/components/_common-props-content/_INSTRUCTIONS.md +++ b/content/app/development/ux/components/_common-props-content/_INSTRUCTIONS.md @@ -1,3 +1,7 @@ +--- +hidden: true +--- + # Instruksjoner Innholdet i malen brukes av en partial (`get-content.html`) via shortcoden `property-docs.html`. diff --git a/content/app/development/ux/components/_common-props-content/_TEMPLATE.md b/content/app/development/ux/components/_common-props-content/_TEMPLATE.md index 182944437c4..81c02955438 100644 --- a/content/app/development/ux/components/_common-props-content/_TEMPLATE.md +++ b/content/app/development/ux/components/_common-props-content/_TEMPLATE.md @@ -1,3 +1,7 @@ +--- +hidden: true +--- + # Instruksjoner 1. **Filnavn**: Kopier malen og gi den navn på formatet `{propName}.{languageCode}.md`. Opprett en fil for hvert språk. Alle filer skal ligge direkte under `_common-props-content`. diff --git a/content/app/development/ux/components/_common-props-content/autocomplete.en.md b/content/app/development/ux/components/_common-props-content/autocomplete.en.md index bfc449ac267..a8720a96fbf 100644 --- a/content/app/development/ux/components/_common-props-content/autocomplete.en.md +++ b/content/app/development/ux/components/_common-props-content/autocomplete.en.md @@ -1,5 +1,6 @@ - -# Innhold +--- +hidden: true +--- ### Autocomplete (`autocomplete`) diff --git a/content/app/development/ux/components/_common-props-content/autocomplete.nb.md b/content/app/development/ux/components/_common-props-content/autocomplete.nb.md index a46f05c16de..4736e48c7ee 100644 --- a/content/app/development/ux/components/_common-props-content/autocomplete.nb.md +++ b/content/app/development/ux/components/_common-props-content/autocomplete.nb.md @@ -1,5 +1,6 @@ - -# Innhold +--- +hidden: true +--- ### Automatisk fullføring (`autocomplete`) diff --git a/content/app/development/ux/components/_common-props-content/dataModelBindings.en.md b/content/app/development/ux/components/_common-props-content/dataModelBindings.en.md index 0ead82f6233..64b4a453052 100644 --- a/content/app/development/ux/components/_common-props-content/dataModelBindings.en.md +++ b/content/app/development/ux/components/_common-props-content/dataModelBindings.en.md @@ -1,4 +1,6 @@ -# Innhold +--- +hidden: true +--- ### Data Model diff --git a/content/app/development/ux/components/_common-props-content/dataModelBindings.nb.md b/content/app/development/ux/components/_common-props-content/dataModelBindings.nb.md index 4d83ad5bda8..f3dfed28dfe 100644 --- a/content/app/development/ux/components/_common-props-content/dataModelBindings.nb.md +++ b/content/app/development/ux/components/_common-props-content/dataModelBindings.nb.md @@ -1,4 +1,6 @@ -# Innhold +--- +hidden: true +--- ### Datamodell diff --git a/content/app/development/ux/components/_common-props-content/grid-short.en.md b/content/app/development/ux/components/_common-props-content/grid-short.en.md index 9a2b4b019e3..9365dd0d9cc 100644 --- a/content/app/development/ux/components/_common-props-content/grid-short.en.md +++ b/content/app/development/ux/components/_common-props-content/grid-short.en.md @@ -1,14 +1,6 @@ -# Instruksjoner - -1. **Filnavn**: Kopier malen og gi den navn på formatet `{propName}.{languageCode}.md`. Opprett en fil for hvert språk. Alle filer skal ligge direkte under `_common-props-content`. -2. **Legg til innhold**: Legg til innhold mellom `begin`- og `end`-kommentarer. For å utelate seksjoner, la de være tomme. **NB! `begin`- og `end`-kommentarer må ikke endres eller slettes!** -3. **Bilder**: Bilder må ligge i mappen `/assets/images/component-settings/`. For å legge til bilder, bruk shortcode `image.html` med argument - `file="component-settings/{image.png}"`. -4. **Legg til dokumentasjonen**: Bruk shortcode `property-docs` med hakeparenteser (`< >`) og argument `prop="{propName}"`. `propName` må samsvare med filnavn. - -For mer veiledning, se [_INSTRUCTIONS.md](/app/development/ux/components/_common-props-content/_instructions). - -# Innhold +--- +hidden: true +--- ### Horizontal alignment with `grid` diff --git a/content/app/development/ux/components/_common-props-content/grid-short.nb.md b/content/app/development/ux/components/_common-props-content/grid-short.nb.md index ff2b938c49a..32da17837e8 100644 --- a/content/app/development/ux/components/_common-props-content/grid-short.nb.md +++ b/content/app/development/ux/components/_common-props-content/grid-short.nb.md @@ -1,14 +1,6 @@ -# Instruksjoner - -1. **Filnavn**: Kopier malen og gi den navn på formatet `{propName}.{languageCode}.md`. Opprett en fil for hvert språk. Alle filer skal ligge direkte under `_common-props-content`. -2. **Legg til innhold**: Legg til innhold mellom `begin`- og `end`-kommentarer. For å utelate seksjoner, la de være tomme. **NB! `begin`- og `end`-kommentarer må ikke endres eller slettes!** -3. **Bilder**: Bilder må ligge i mappen `/assets/images/component-settings/`. For å legge til bilder, bruk shortcode `image.html` med argument - `file="component-settings/{image.png}"`. -4. **Legg til dokumentasjonen**: Bruk shortcode `property-docs` med hakeparenteser (`< >`) og argument `prop="{propName}"`. `propName` må samsvare med filnavn. - -For mer veiledning, se [_INSTRUCTIONS.md](/app/development/ux/components/_common-props-content/_instructions). - -# Innhold +--- +hidden: true +--- ### Horisontal justering med `grid` diff --git a/content/app/development/ux/components/_common-props-content/hidden.en.md b/content/app/development/ux/components/_common-props-content/hidden.en.md index 00fde94164c..9ba159c5a4a 100644 --- a/content/app/development/ux/components/_common-props-content/hidden.en.md +++ b/content/app/development/ux/components/_common-props-content/hidden.en.md @@ -1,4 +1,6 @@ -# Innhold +--- +hidden: true +--- ### Hidden (`hidden`) diff --git a/content/app/development/ux/components/_common-props-content/hidden.nb.md b/content/app/development/ux/components/_common-props-content/hidden.nb.md index e2076d49675..30a595d37c2 100644 --- a/content/app/development/ux/components/_common-props-content/hidden.nb.md +++ b/content/app/development/ux/components/_common-props-content/hidden.nb.md @@ -1,4 +1,6 @@ -# Innhold +--- +hidden: true +--- ### Feltet skal skjules (`hidden`) diff --git a/content/app/development/ux/components/_common-props-content/layout.en.md b/content/app/development/ux/components/_common-props-content/layout.en.md index a253ed987d2..4a872b85005 100644 --- a/content/app/development/ux/components/_common-props-content/layout.en.md +++ b/content/app/development/ux/components/_common-props-content/layout.en.md @@ -1,4 +1,6 @@ -# Innhold +--- +hidden: true +--- ### Layout (`layout`) diff --git a/content/app/development/ux/components/_common-props-content/layout.nb.md b/content/app/development/ux/components/_common-props-content/layout.nb.md index 8df111c62ff..abf5d13bdf1 100644 --- a/content/app/development/ux/components/_common-props-content/layout.nb.md +++ b/content/app/development/ux/components/_common-props-content/layout.nb.md @@ -1,4 +1,6 @@ -# Innhold +--- +hidden: true +--- ### Visning (`layout`) diff --git a/content/app/development/ux/components/_common-props-content/options-page.en.md b/content/app/development/ux/components/_common-props-content/options-page.en.md index 6f0dbb72ed2..e69de29bb2d 100644 --- a/content/app/development/ux/components/_common-props-content/options-page.en.md +++ b/content/app/development/ux/components/_common-props-content/options-page.en.md @@ -1,15 +0,0 @@ -### Adding Options - -Options can be added manually or by using [code lists](/app/development/data/options). - -{{< property-docs prop="options" >}} - -{{< property-docs prop="optionsId" >}} - -{{< property-docs prop="source" >}} - -**Documentation for code lists** -- [Link a Component to a Code List](/app/development/data/options/#connect-the-component-to-options-code-list) -- [Static Code Lists](/app/development/data/options/static-codelists/) -- [Dynamic Code Lists](/app/development/data/options/dynamic-codelists/) -- [Code lists based on repeating groups from the data model](/app/development/data/options/repeating-group-codelists/) \ No newline at end of file diff --git a/content/app/development/ux/components/_common-props-content/options-page.nb.md b/content/app/development/ux/components/_common-props-content/options-page.nb.md index e6420e0a329..e69de29bb2d 100644 --- a/content/app/development/ux/components/_common-props-content/options-page.nb.md +++ b/content/app/development/ux/components/_common-props-content/options-page.nb.md @@ -1,15 +0,0 @@ -### Legge til alternativer - -Alternativer (options) kan legges til manuelt eller ved hjelp av [kodelister](/nb/app/development/data/options). - -{{< property-docs prop="options" >}} - -{{< property-docs prop="optionsId" >}} - -{{< property-docs prop="source" >}} - -**Dokumentasjon for kodelister** -- [Koble en komponent til kodeliste](/nb/app/development/data/options/#koble-en-komponent-til-kodeliste) -- [Statiske kodelister](/nb/app/development/data/options/static-codelists/) -- [Dynamiske kodelister](/nb/app/development/data/options/dynamic-codelists/) -- [Dynamiske kodelister fra repeterede grupper i datamodellen](/nb/app/development/data/options/repeating-group-codelists/) \ No newline at end of file diff --git a/content/app/development/ux/components/_common-props-content/options.en.md b/content/app/development/ux/components/_common-props-content/options.en.md index c9c6b96dda7..e52c5020dab 100644 --- a/content/app/development/ux/components/_common-props-content/options.en.md +++ b/content/app/development/ux/components/_common-props-content/options.en.md @@ -1,4 +1,6 @@ -# Innhold +--- +hidden: true +--- #### Manually (`options`) diff --git a/content/app/development/ux/components/_common-props-content/options.nb.md b/content/app/development/ux/components/_common-props-content/options.nb.md index 43e3be78663..5a82f4fc788 100644 --- a/content/app/development/ux/components/_common-props-content/options.nb.md +++ b/content/app/development/ux/components/_common-props-content/options.nb.md @@ -1,5 +1,6 @@ - -# Innhold +--- +hidden: true +--- #### Manuelt (`options`) diff --git a/content/app/development/ux/components/_common-props-content/optionsId.en.md b/content/app/development/ux/components/_common-props-content/optionsId.en.md index 00fb8f7e123..2cfe3aa4552 100644 --- a/content/app/development/ux/components/_common-props-content/optionsId.en.md +++ b/content/app/development/ux/components/_common-props-content/optionsId.en.md @@ -1,14 +1,6 @@ -# Instruksjoner - -1. **Filnavn**: Kopier malen og gi den navn på formatet `{propName}.{languageCode}.md`. Opprett en fil for hvert språk. Alle filer skal ligge direkte under `_common-props-content`. -2. **Legg til innhold**: Legg til innhold mellom `begin`- og `end`-kommentarer. For å utelate seksjoner, la de være tomme. **NB! `begin`- og `end`-kommentarer må ikke endres eller slettes!** -3. **Bilder**: Bilder må ligge i mappen `/assets/images/component-settings/`. For å legge til bilder, bruk shortcode `image.html` med argument - `file="component-settings/{image.png}"`. -4. **Legg til dokumentasjonen**: Bruk shortcode `property-docs` med hakeparenteser (`< >`) og argument `prop="{propName}"`. `propName` må samsvare med filnavn. - -For mer veiledning, se [_INSTRUCTIONS.md](/app/development/ux/components/_common-props-content/_instructions). - -# Innhold +--- +hidden: true +--- #### Code List (`optionsId`) diff --git a/content/app/development/ux/components/_common-props-content/optionsId.nb.md b/content/app/development/ux/components/_common-props-content/optionsId.nb.md index 509e512acce..4327d96ec03 100644 --- a/content/app/development/ux/components/_common-props-content/optionsId.nb.md +++ b/content/app/development/ux/components/_common-props-content/optionsId.nb.md @@ -1,14 +1,6 @@ -# Instruksjoner - -1. **Filnavn**: Kopier malen og gi den navn på formatet `{propName}.{languageCode}.md`. Opprett en fil for hvert språk. Alle filer skal ligge direkte under `_common-props-content`. -2. **Legg til innhold**: Legg til innhold mellom `begin`- og `end`-kommentarer. For å utelate seksjoner, la de være tomme. **NB! `begin`- og `end`-kommentarer må ikke endres eller slettes!** -3. **Bilder**: Bilder må ligge i mappen `/assets/images/component-settings/`. For å legge til bilder, bruk shortcode `image.html` med argument - `file="component-settings/{image.png}"`. -4. **Legg til dokumentasjonen**: Bruk shortcode `property-docs` med hakeparenteser (`< >`) og argument `prop="{propName}"`. `propName` må samsvare med filnavn. - -For mer veiledning, se [_INSTRUCTIONS.md](/app/development/ux/components/_common-props-content/_instructions). - -# Innhold +--- +hidden: true +--- #### Kodeliste (`optionsId`) diff --git a/content/app/development/ux/components/_common-props-content/page-break.en.md b/content/app/development/ux/components/_common-props-content/page-break.en.md index 6d5b227bb13..d63088a838a 100644 --- a/content/app/development/ux/components/_common-props-content/page-break.en.md +++ b/content/app/development/ux/components/_common-props-content/page-break.en.md @@ -1,4 +1,6 @@ -# Innhold +--- +hidden: true +--- ### Page Break (`pageBreak`) diff --git a/content/app/development/ux/components/_common-props-content/page-break.nb.md b/content/app/development/ux/components/_common-props-content/page-break.nb.md index 19dd5f99aeb..fdec43c9b15 100644 --- a/content/app/development/ux/components/_common-props-content/page-break.nb.md +++ b/content/app/development/ux/components/_common-props-content/page-break.nb.md @@ -1,14 +1,6 @@ -# Instruksjoner - -1. **Filnavn**: Kopier malen og gi den navn på formatet `{propName}.{languageCode}.md`. Opprett en fil for hvert språk. Alle filer skal ligge direkte under `_common-props-content`. -2. **Legg til innhold**: Legg til innhold mellom `begin`- og `end`-kommentarer. For å utelate seksjoner, la de være tomme. **NB! `begin`- og `end`-kommentarer må ikke endres eller slettes!** -3. **Bilder**: Bilder må ligge i mappen `/assets/images/component-settings/`. For å legge til bilder, bruk shortcode `image.html` med argument - `file="component-settings/{image.png}"`. -4. **Legg til dokumentasjonen**: Bruk shortcode `property-docs` med hakeparenteser (`< >`) og argument `prop="{propName}"`. `propName` må samsvare med filnavn. - -For mer veiledning, se [_INSTRUCTIONS.md](/app/development/ux/components/_common-props-content/_instructions). - -# Innhold +--- +hidden: true +--- ### Sideskift (`pageBreak`) diff --git a/content/app/development/ux/components/_common-props-content/preselectedOptionsIndex.en.md b/content/app/development/ux/components/_common-props-content/preselectedOptionsIndex.en.md index 505d2395600..463a7fafed9 100644 --- a/content/app/development/ux/components/_common-props-content/preselectedOptionsIndex.en.md +++ b/content/app/development/ux/components/_common-props-content/preselectedOptionsIndex.en.md @@ -1,4 +1,6 @@ -# Innhold +--- +hidden: true +--- ### Preselected option (`preselectedOptionsIndex`) diff --git a/content/app/development/ux/components/_common-props-content/preselectedOptionsIndex.nb.md b/content/app/development/ux/components/_common-props-content/preselectedOptionsIndex.nb.md index 01b23189cc1..bc4ba282250 100644 --- a/content/app/development/ux/components/_common-props-content/preselectedOptionsIndex.nb.md +++ b/content/app/development/ux/components/_common-props-content/preselectedOptionsIndex.nb.md @@ -1,4 +1,6 @@ -# Innhold +--- +hidden: true +--- ### Forhåndsvalgt verdi (`preselectedOptionsIndex`) diff --git a/content/app/development/ux/components/_common-props-content/readonly.en.md b/content/app/development/ux/components/_common-props-content/readonly.en.md index 5d58bc2a1f4..60c5182e1fd 100644 --- a/content/app/development/ux/components/_common-props-content/readonly.en.md +++ b/content/app/development/ux/components/_common-props-content/readonly.en.md @@ -1,4 +1,6 @@ -# Innhold +--- +hidden: true +--- ### Field is read-only (`readOnly`) diff --git a/content/app/development/ux/components/_common-props-content/readonly.nb.md b/content/app/development/ux/components/_common-props-content/readonly.nb.md index 6d88b4dd321..14a59d3ef80 100644 --- a/content/app/development/ux/components/_common-props-content/readonly.nb.md +++ b/content/app/development/ux/components/_common-props-content/readonly.nb.md @@ -1,4 +1,6 @@ -# Innhold +--- +hidden: true +--- ### Feltet skal være skrivebeskyttet (`readOnly`) diff --git a/content/app/development/ux/components/_common-props-content/renderAsSummary.en.md b/content/app/development/ux/components/_common-props-content/renderAsSummary.en.md index 7d69544b345..16cd83ad23c 100644 --- a/content/app/development/ux/components/_common-props-content/renderAsSummary.en.md +++ b/content/app/development/ux/components/_common-props-content/renderAsSummary.en.md @@ -1,4 +1,6 @@ -# Innhold +--- +hidden: true +--- ### Summary (`renderAsSummary`) diff --git a/content/app/development/ux/components/_common-props-content/renderAsSummary.nb.md b/content/app/development/ux/components/_common-props-content/renderAsSummary.nb.md index fca0cc52004..9334a74683a 100644 --- a/content/app/development/ux/components/_common-props-content/renderAsSummary.nb.md +++ b/content/app/development/ux/components/_common-props-content/renderAsSummary.nb.md @@ -1,4 +1,6 @@ -# Innhold +--- +hidden: true +--- ### Oppsummering (`renderAsSummary`) diff --git a/content/app/development/ux/components/_common-props-content/required.en.md b/content/app/development/ux/components/_common-props-content/required.en.md index 26cd1a4dd14..acddfd12e27 100644 --- a/content/app/development/ux/components/_common-props-content/required.en.md +++ b/content/app/development/ux/components/_common-props-content/required.en.md @@ -1,4 +1,6 @@ -# Innhold +--- +hidden: true +--- ### Required (`required`) diff --git a/content/app/development/ux/components/_common-props-content/required.nb.md b/content/app/development/ux/components/_common-props-content/required.nb.md index 93a2807042a..b2d06df14b3 100644 --- a/content/app/development/ux/components/_common-props-content/required.nb.md +++ b/content/app/development/ux/components/_common-props-content/required.nb.md @@ -1,4 +1,6 @@ -# Innhold +--- +hidden: true +--- ### Feltet skal være påkrevd (`required`) diff --git a/content/app/development/ux/components/_common-props-content/source.en.md b/content/app/development/ux/components/_common-props-content/source.en.md index e8a5f86357a..828779d8626 100644 --- a/content/app/development/ux/components/_common-props-content/source.en.md +++ b/content/app/development/ux/components/_common-props-content/source.en.md @@ -1,4 +1,6 @@ -# Innhold +--- +hidden: true +--- #### Source (`source`) diff --git a/content/app/development/ux/components/_common-props-content/source.nb.md b/content/app/development/ux/components/_common-props-content/source.nb.md index 8b2707763cb..b6a45740001 100644 --- a/content/app/development/ux/components/_common-props-content/source.nb.md +++ b/content/app/development/ux/components/_common-props-content/source.nb.md @@ -1,14 +1,6 @@ -# Instruksjoner - -1. **Filnavn**: Kopier malen og gi den navn på formatet `{propName}.{languageCode}.md`. Opprett en fil for hvert språk. Alle filer skal ligge direkte under `_common-props-content`. -2. **Legg til innhold**: Legg til innhold mellom `begin`- og `end`-kommentarer. For å utelate seksjoner, la de være tomme. **NB! `begin`- og `end`-kommentarer må ikke endres eller slettes!** -3. **Bilder**: Bilder må ligge i mappen `/assets/images/component-settings/`. For å legge til bilder, bruk shortcode `image.html` med argument - `file="component-settings/{image.png}"`. -4. **Legg til dokumentasjonen**: Bruk shortcode `property-docs` med hakeparenteser (`< >`) og argument `prop="{propName}"`. `propName` må samsvare med filnavn. - -For mer veiledning, se [_INSTRUCTIONS.md](/app/development/ux/components/_common-props-content/_instructions). - -# Innhold +--- +hidden: true +--- #### Kilde (`source`) diff --git a/content/app/development/ux/components/_common-props-content/text-all.en.md b/content/app/development/ux/components/_common-props-content/text-all.en.md index 60824d0ceb0..567c818c5a1 100644 --- a/content/app/development/ux/components/_common-props-content/text-all.en.md +++ b/content/app/development/ux/components/_common-props-content/text-all.en.md @@ -1,4 +1,6 @@ -# Innhold +--- +hidden: true +--- ### Text (`textResourceBindings`) diff --git a/content/app/development/ux/components/_common-props-content/text-all.nb.md b/content/app/development/ux/components/_common-props-content/text-all.nb.md index 8c8aaa07e1a..3778a9d1e3f 100644 --- a/content/app/development/ux/components/_common-props-content/text-all.nb.md +++ b/content/app/development/ux/components/_common-props-content/text-all.nb.md @@ -1,4 +1,6 @@ -# Innhold +--- +hidden: true +--- ### Tekst (`textResourceBindings`) diff --git a/content/app/development/ux/components/temp/delete-until-first-tag.sh b/content/app/development/ux/components/temp/delete-until-first-tag.sh new file mode 100755 index 00000000000..3a6336e4884 --- /dev/null +++ b/content/app/development/ux/components/temp/delete-until-first-tag.sh @@ -0,0 +1,7 @@ +dir=$1 + +for f in $(ls ${dir} | egrep '(nb|en).md') +do + echo $f +sed -i '' -n '//,$p' ${dir}/$f +done diff --git a/content/app/development/ux/components/temp/insert_frontmatter_hidden.sh b/content/app/development/ux/components/temp/insert_frontmatter_hidden.sh new file mode 100755 index 00000000000..88d516a2544 --- /dev/null +++ b/content/app/development/ux/components/temp/insert_frontmatter_hidden.sh @@ -0,0 +1,11 @@ +dir=$1 + +for f in $(ls ${dir}) +do +sed -i '' '1i\ +---\ +hidden: true\ +---\ +\ +' $dir/$f +done