wip: Work on editor docs
This commit is contained in:
parent
74d4f05d94
commit
3d01c0136c
61 changed files with 2429 additions and 2396 deletions
|
@ -4,17 +4,6 @@ import { designOptionType, set, orderBy } from '@freesewing/utils'
|
|||
import { i18n } from '@freesewing/collection'
|
||||
import { linkClasses } from '@freesewing/utils'
|
||||
|
||||
const DesignDocsLink = ({ design, item }) => (
|
||||
<a
|
||||
href={`/docs/designs/${design}/options/#${item.toLowerCase()}`}
|
||||
className={`${linkClasses} tw:px-2`}
|
||||
target="_BLANK"
|
||||
rel="noreferrer"
|
||||
>
|
||||
Learn more
|
||||
</a>
|
||||
)
|
||||
|
||||
export function menuDesignOptionsStructure(design, options, settings, asFullList = false) {
|
||||
if (!options) return options
|
||||
const sorted = {}
|
||||
|
@ -24,12 +13,7 @@ export function menuDesignOptionsStructure(design, options, settings, asFullList
|
|||
...option,
|
||||
name,
|
||||
title: i18n[design]?.en?.o?.[name]?.t || name,
|
||||
about: (
|
||||
<span>
|
||||
{i18n[design]?.en?.o?.[name]?.d || name}
|
||||
<DesignDocsLink item={name} design={design} />
|
||||
</span>
|
||||
),
|
||||
about: <span>{i18n[design]?.en?.o?.[name]?.d || name}</span>,
|
||||
dense: true,
|
||||
sideBySide: true,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue