Skip to content

Commit

Permalink
Make document internationalization optional and configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
djohalo2 committed Dec 10, 2023
1 parent e77bb8b commit 81c82f3
Show file tree
Hide file tree
Showing 16 changed files with 1,637 additions and 4,082 deletions.
8 changes: 7 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
],
"rules": {
"no-use-before-define": "off",
"no-shadow": "off"
"no-shadow": "off",
"consistent-return": "off",
"react/require-default-props": "off",
"no-negated-condition": "off",
"react/jsx-no-bind": "off",
"no-unused-expressions": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/examples
.editorconfig
.eslintrc
.gitignore
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ Create a shared page tree config file and constant to use in your page types and
import { PageTreeConfig } from 'sanity-plugin-page-tree';

export const pageTreeConfig: PageTreeConfig = {
/* Root page schema type name */
rootSchemaType: 'homePage',
/* Array of all page schema type names */
pageSchemaTypes: ['homePage', 'page'],
/* Api version to be used in all underlying Sanity client use */
apiVersion: '2023-12-08',
};

Expand Down
Loading

0 comments on commit 81c82f3

Please sign in to comment.