Skip to content

Commit

Permalink
Merge pull request #1404 from flexn-io/fix/jsonschema_docs_escape
Browse files Browse the repository at this point in the history
Properly wrap command snippet
  • Loading branch information
pavjacko authored Feb 18, 2024
2 parents db0d472 + 8740c36 commit e97fb70
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions packages/core/jsonSchema/rnv.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"description": "ID of the app in `./appConfigs/[APP_ID]/renative.json`. MUST match APP_ID name of the folder"
},
"custom": {
"description": "Object ysed to extend your renative with custom props. This allows renative json schema to be validated"
"description": "Object used to extend your renative with custom props. This allows renative json schema to be validated"
},
"hidden": {
"type": "boolean",
Expand Down Expand Up @@ -2313,11 +2313,11 @@
},
"outputDir": {
"type": "string",
"description": "Custom output directory used by nextjs equivalent to \"npx next build\" with custom outputDir. Use relative paths"
"description": "Custom output directory used by nextjs equivalent to `npx next build` with custom outputDir. Use relative paths"
},
"exportDir": {
"type": "string",
"description": "Custom export directory used by nextjs equivalent to \"npx next export --outdir <exportDir>\". Use relative paths"
"description": "Custom export directory used by nextjs equivalent to `npx next export --outdir <exportDir>`. Use relative paths"
},
"nextTranspileModules": {
"type": "array",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/jsonSchema/rnv.engine.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "object",
"properties": {
"custom": {
"description": "Object ysed to extend your renative with custom props. This allows renative json schema to be validated"
"description": "Object used to extend your renative with custom props. This allows renative json schema to be validated"
},
"id": {
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/jsonSchema/rnv.plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@
"$ref": "#/definitions/rnv.plugin/properties/tizen"
},
"custom": {
"description": "Object ysed to extend your renative with custom props. This allows renative json schema to be validated"
"description": "Object used to extend your renative with custom props. This allows renative json schema to be validated"
},
"$schema": {
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/jsonSchema/rnv.plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "object",
"properties": {
"custom": {
"description": "Object ysed to extend your renative with custom props. This allows renative json schema to be validated"
"description": "Object used to extend your renative with custom props. This allows renative json schema to be validated"
},
"pluginTemplates": {
"type": "object",
Expand Down
6 changes: 3 additions & 3 deletions packages/core/jsonSchema/rnv.project.json
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@
"description": "List of engines available in this project"
},
"custom": {
"description": "Object ysed to extend your renative with custom props. This allows renative json schema to be validated"
"description": "Object used to extend your renative with custom props. This allows renative json schema to be validated"
},
"enableHookRebuild": {
"type": "boolean",
Expand Down Expand Up @@ -2672,11 +2672,11 @@
},
"outputDir": {
"type": "string",
"description": "Custom output directory used by nextjs equivalent to \"npx next build\" with custom outputDir. Use relative paths"
"description": "Custom output directory used by nextjs equivalent to `npx next build` with custom outputDir. Use relative paths"
},
"exportDir": {
"type": "string",
"description": "Custom export directory used by nextjs equivalent to \"npx next export --outdir <exportDir>\". Use relative paths"
"description": "Custom export directory used by nextjs equivalent to `npx next export --outdir <exportDir>`. Use relative paths"
},
"nextTranspileModules": {
"type": "array",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/schema/platforms/fragments/nextjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ export const PlatformNextJsFragment = {
outputDir: z
.string()
.describe(
'Custom output directory used by nextjs equivalent to "npx next build" with custom outputDir. Use relative paths'
'Custom output directory used by nextjs equivalent to `npx next build` with custom outputDir. Use relative paths'
)
.optional(),
exportDir: z
.string()
.describe(
'Custom export directory used by nextjs equivalent to "npx next export --outdir <exportDir>". Use relative paths'
'Custom export directory used by nextjs equivalent to `npx next export --outdir <exportDir>`. Use relative paths'
)
.optional(),
nextTranspileModules: z.optional(z.array(z.string())),
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/schema/shared/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const HexColor = z.string().min(4).max(9).regex(/^#/);
export const Ext = z
.any()
.describe(
'Object ysed to extend your renative with custom props. This allows renative json schema to be validated'
'Object used to extend your renative with custom props. This allows renative json schema to be validated'
);

export const ExtendTemplate = z
Expand Down
2 changes: 1 addition & 1 deletion packages/engine-core/src/tasks/task.rnv.crypto.decrypt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ and we will try to help!
};

const Task: RnvTask = {
description: 'Decrypt encrypted project files into local ~/<wokspace>/<project>/..',
description: 'Decrypt encrypted project files into local `~/<wokspace>/<project>/..`',
fn: taskRnvCryptoDecrypt,
task: TASK_CRYPTO_DECRYPT,
params: PARAMS.withBase(),
Expand Down
2 changes: 1 addition & 1 deletion packages/engine-core/src/tasks/task.rnv.crypto.encrypt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export const taskRnvCryptoEncrypt: RnvTaskFn = async (c, _parentTask, originTask
};

const Task: RnvTask = {
description: 'Encrypts secure files from ~/<wokspace>/<project>/.. to project',
description: 'Encrypts secure files from `~/<wokspace>/<project>/..` to project',
fn: taskRnvCryptoEncrypt,
task: TASK_CRYPTO_ENCRYPT,
params: PARAMS.withBase(),
Expand Down

0 comments on commit e97fb70

Please sign in to comment.