diff --git a/docs/cli/generate-rules.mdx b/docs/cli/generate-rules.mdx index ab6c3db..66d884b 100644 --- a/docs/cli/generate-rules.mdx +++ b/docs/cli/generate-rules.mdx @@ -65,44 +65,6 @@ typesync generate-rules --definition --outFile -- The name of the parameter taken by each type validator. -{/\* The pattern that specifies how the generated readonly field validators are named. The pattern must be a string that contains the `"{modelName}"` substring (this is a literal value). - -Example values: - - - `"isReadonlyFieldAffectedFor{modelName}"` -> produces validators like `isReadonlyFieldAffectedForUser`, `isReadonlyFieldAffectedForProject`, `isReadonlyFieldAffectedForAccount` etc. - - `"affectsReadonlyFieldFor{modelName}"` -> produces validators like `affectsReadonlyFieldForUser`, `affectsReadonlyFieldForProject`, `affectsReadonlyFieldForAccount` etc. - - */} - -{/\* The name of the first parameter taken by each readonly field validator -> representing previous data. This parameter used when computing the diff -> between next data and previous data to determine whether a readonly field has -> been affected by a write. - - */} - -{/\* The name of the second parameter taken by each readonly field validator -> representing next data. This parameter used when computing the diff between -> next data and previous data to determine whether a readonly field has been -> affected by a write. - - */} - diff --git a/docs/docs.json b/docs/docs.json index 3d97077..c429a65 100644 --- a/docs/docs.json +++ b/docs/docs.json @@ -1,5 +1,5 @@ { - "$schema": "https://mintlify.com/schema.json", + "$schema": "https://mintlify.com/docs.json", "theme": "mint", "name": "typesync", "favicon": "/favicon.svg", @@ -14,36 +14,32 @@ } }, "logo": { "light": "images/logo-light.png", "dark": "images/logo-dark.png" }, - "topbarLinks": [ - { - "type": "link", - "name": "Discord", - "url": "https://discord.gg/Hb2HW98DvF" + "navbar": { + "primary": { + "type": "github", + "href": "https://github.com/kafkas/typesync" } - ], - "topbarCtaButton": { - "type": "link", - "name": "GitHub", - "url": "https://github.com/kafkas/typesync" }, - "anchors": [ - { - "name": "GitHub", - "icon": "github", - "url": "https://github.com/kafkas/typesync" - }, - { - "name": "Changelog", - "icon": "list-tree", - "url": "https://github.com/kafkas/typesync/blob/main/CHANGELOG.md" - }, - { - "name": "Support", - "icon": "discord", - "url": "https://discord.gg/Hb2HW98DvF" - } - ], "navigation": { + "global": { + "anchors": [ + { + "anchor": "GitHub", + "icon": "github", + "href": "https://github.com/kafkas/typesync" + }, + { + "anchor": "Changelog", + "icon": "list-tree", + "href": "https://github.com/kafkas/typesync/blob/main/CHANGELOG.md" + }, + { + "anchor": "Support", + "icon": "discord", + "href": "https://discord.gg/Hb2HW98DvF" + } + ] + }, "groups": [ { "group": "Overview", @@ -67,8 +63,10 @@ } ] }, - "footerSocials": { - "discord": "https://discord.gg/Hb2HW98DvF", - "github": "https://github.com/kafkas/typesync" + "footer": { + "socials": { + "discord": "https://discord.gg/Hb2HW98DvF", + "github": "https://github.com/kafkas/typesync" + } } }