Skip to content

Commit

Permalink
releases expands to a list of version docs
Browse files Browse the repository at this point in the history
  • Loading branch information
snorrekim committed Sep 16, 2024
1 parent de0b5d4 commit da95416
Show file tree
Hide file tree
Showing 18 changed files with 156 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ title: 'Releases and versions'
developers: 'Overview of all major releases and changes, including migration guides.'
redirect_from:
- /uilib/releases
expanded: false
---

import ListUiLibVersions from './releases/dnb-ui-lib/ListUiLibVersions'
import ListEufemiaVersions from './releases/eufemia/ListEufemiaVersions'

import WelcomeAdvice from 'Docs/welcome-advice.mdx'
import GithubLogo from 'Docs/contribute/assets/github-logo.js'
import { Icon } from '@dnb/eufemia/src'
Expand All @@ -15,16 +19,12 @@ You may also have a look at the [<Icon icon={GithubLogo} size="default" />**GitH

Here you can find an overview of all major releases (versions) and changes, including migration guides:

- [**@dnb/eufemia@v10**](/uilib/about-the-lib/releases/eufemia/v10-info) _May, 31. 2023_
- [**@dnb/eufemia@v9**](/uilib/about-the-lib/releases/eufemia/v9-info) _March, 3. 2021_
- [**dnb-ui-lib@v8**](/uilib/about-the-lib/releases/dnb-ui-lib/v8-info) _December, 15. 2020_
- [**[email protected]**](/uilib/about-the-lib/releases/dnb-ui-lib/v7.2-info) _November, 8. 2020_
- [**[email protected]**](/uilib/about-the-lib/releases/dnb-ui-lib/v7-info) _June, 4. 2020_
- [**[email protected]**](/uilib/about-the-lib/releases/dnb-ui-lib/v6-info) _January, 30. 2020_
- [**[email protected]**](/uilib/about-the-lib/releases/dnb-ui-lib/v5.8-info) _November, 30. 2019_
- [**[email protected]**](/uilib/about-the-lib/releases/dnb-ui-lib/v5-info) _October, 30. 2019_
- [**[email protected]**](/uilib/about-the-lib/releases/dnb-ui-lib/v4.18-info) _September, 28. 2019_
- [**[email protected]**](/uilib/about-the-lib/releases/dnb-ui-lib/v4.10-info) _August, 24. 2019_
- [**[email protected]**](/uilib/about-the-lib/releases/dnb-ui-lib/v4-info) _July, 21. 2019_
## @dnb/eufemia

<ListEufemiaVersions returnListItems />

## dnb-ui-lib

<ListUiLibVersions returnListItems />

<WelcomeAdvice />
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: 'dnb-ui-lib'
developers: 'Overview of all major dnb-ui-lib releases and changes, including migration guides.'
order: 2
---

import ListUiLibVersions from './dnb-ui-lib/ListUiLibVersions'

# dnb-ui-lib releases

<ListUiLibVersions size="small" returnListItems />
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { useStaticQuery, graphql } from 'gatsby'
import ListSummaryFromEdges from '../../../../../shared/parts/ListSummaryFromEdges'

export default function ListUiLibVersions(props) {
const {
allMdx: { edges },
} = useStaticQuery(graphql`
{
allMdx(
filter: {
frontmatter: { title: { ne: null }, draft: { ne: true } }
internal: {
contentFilePath: {
glob: "**/uilib/about-the-lib/releases/dnb-ui-lib/**/*"
}
}
}
sort: [
{ frontmatter: { order: ASC } }
{ frontmatter: { title: DESC } }
]
) {
edges {
node {
fields {
slug
}
frontmatter {
title
description
}
}
}
}
}
`)

return <ListSummaryFromEdges edges={edges} {...props} />
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
title: 'v4.0'
description: 'July, 21. 2019'
order: -4
redirect_from:
- /uilib/about-the-lib/releases/v4-info
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
title: 'v4.10'
description: 'August, 24. 2019'
order: -4.10
redirect_from:
- /uilib/about-the-lib/releases/v4.10-info
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
title: 'v4.18'
description: 'September, 28. 2019'
order: -4.18
redirect_from:
- /uilib/about-the-lib/releases/v4.18-info
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
title: 'v5.0'
description: 'October, 30. 2019'
order: -5
redirect_from:
- /uilib/about-the-lib/releases/v5-info
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
title: 'v5.8'
description: 'November, 30. 2019'
order: -5.8
redirect_from:
- /uilib/about-the-lib/releases/v5.8-info
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
title: 'v6.0'
description: 'January, 30. 2020'
order: -6
redirect_from:
- /uilib/about-the-lib/releases/v6-info
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
title: 'v7.0'
description: 'June, 4. 2020'
order: -7
redirect_from:
- /uilib/about-the-lib/releases/v7-info
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
title: 'v7.2'
description: 'November, 8. 2020'
order: -7.2
redirect_from:
- /uilib/about-the-lib/releases/v7.2-info
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
title: 'v8'
description: 'December, 15. 2020'
order: -8
redirect_from:
- /uilib/about-the-lib/releases/v8-info
---
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: '@dnb/eufemia'
developers: 'Overview of all major Eufemia releases and changes, including migration guides.'
order: 1
---

import ListEufemiaVersions from './eufemia/ListEufemiaVersions'

# @dnb/eufemia releases

<ListEufemiaVersions size="small" returnListItems />
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { useStaticQuery, graphql } from 'gatsby'
import ListSummaryFromEdges from '../../../../../shared/parts/ListSummaryFromEdges'

export default function ListEufemiaVersions(props) {
const {
allMdx: { edges },
} = useStaticQuery(graphql`
{
allMdx(
filter: {
frontmatter: { title: { ne: null }, draft: { ne: true } }
internal: {
contentFilePath: {
glob: "**/uilib/about-the-lib/releases/eufemia/**/*"
}
}
}
sort: [
{ frontmatter: { order: ASC } }
{ frontmatter: { title: DESC } }
]
) {
edges {
node {
fields {
slug
}
frontmatter {
title
description
}
}
}
}
}
`)

return <ListSummaryFromEdges edges={edges} {...props} />
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
---
title: 'v10'
order: -10
description: 'May, 31. 2023'
---

import { Accordion } from '@dnb/eufemia/src'

# v10
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
title: 'v11'
description: 'TBA'
order: -11
draft: true
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
title: 'v12'
description: 'TBA'
order: -12
draft: true
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
---
title: 'v9'
order: -9
description: 'March, 3. 2021'
---

# v9

- [Migration](#migration)
Expand Down

0 comments on commit da95416

Please sign in to comment.