From 23327914807f70cd31574c88b68bb74944ab5777 Mon Sep 17 00:00:00 2001 From: Anar Kafkas Date: Tue, 5 May 2026 18:12:42 +0300 Subject: [PATCH 1/2] Fix bad markdown --- docs/cli/generate-rules.mdx | 38 ------------------------------------- 1 file changed, 38 deletions(-) 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. - - */} - From 57d7cec2ce3611bca013ee9ae75152c698e70292 Mon Sep 17 00:00:00 2001 From: Anar Kafkas Date: Tue, 5 May 2026 18:18:39 +0300 Subject: [PATCH 2/2] Fix docs.json --- docs/docs.json | 60 ++++++++++++++++++++++++-------------------------- 1 file changed, 29 insertions(+), 31 deletions(-) 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" + } } }