Skip to content

Commit

Permalink
feat: remove mendable search and bring back algolia (#9899)
Browse files Browse the repository at this point in the history
* feat: remove mendable search and bring back algolia

* f1x

---------

Co-authored-by: Dimitri POSTOLOV <[email protected]>
  • Loading branch information
saihaj and dimaMachina authored Mar 15, 2024
1 parent b365099 commit c73de3e
Show file tree
Hide file tree
Showing 6 changed files with 174 additions and 168 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"ts-jest": "28.0.8",
"ts-node": "10.9.1",
"tslib": "2.6.2",
"tsx": "3.14.0",
"tsx": "4.7.1",
"typescript": "5.2.2"
},
"lint-staged": {
Expand Down
1 change: 0 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
"@graphql-codegen/typescript-vue-apollo-smart-ops": "2.3.6",
"@graphql-codegen/typescript-vue-urql": "2.3.6",
"@graphql-codegen/urql-introspection": "2.2.1",
"@mendable/search": "0.0.155",
"@mizdra/graphql-codegen-typescript-fabbrica": "^0.3.0",
"@monaco-editor/react": "4.5.2",
"@theguild/components": "^6.0.1",
Expand Down
38 changes: 5 additions & 33 deletions website/public/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -654,14 +654,6 @@
"emitLegacyCommonJSImports": {
"description": "Emit legacy common js imports.\nDefault it will be `true` this way it ensure that generated code works with [non-compliant bundlers](https://github.com/dotansimha/graphql-code-generator/issues/8065).\nDefault value: \"true\"",
"type": "boolean"
},
"extractAllFieldsToTypes": {
"description": "Extract all field types to their own types, instead of inlining them.\nThis helps to reduce type duplication, and makes type errors more readable.\nIt can also significantly reduce the size of the generated code, the generation time,\nand the typechecking time.\nDefault value: \"false\"",
"type": "boolean"
},
"printFieldsOnNewLines": {
"description": "If you prefer to have each field in generated types printed on a new line, set this to true.\nThis can be useful for improving readability of the resulting types,\nwithout resorting to running tools like Prettier on the output.\nDefault value: \"false\"",
"type": "boolean"
}
}
},
Expand Down Expand Up @@ -702,6 +694,10 @@
"description": "Allow to override the type value of `Maybe`.\nDefault value: \"T | null\"",
"type": "string"
},
"allowUndefinedQueryVariables": {
"description": "Adds undefined as a possible type for query variables\nDefault value: \"false\"",
"type": "boolean"
},
"preResolveTypes": {
"description": "Uses primitive types where possible.\nSet to `false` in order to use `Pick` and take use the types generated by `typescript` plugin.\nDefault value: \"true\"",
"type": "boolean"
Expand Down Expand Up @@ -834,14 +830,6 @@
"emitLegacyCommonJSImports": {
"description": "Emit legacy common js imports.\nDefault it will be `true` this way it ensure that generated code works with [non-compliant bundlers](https://github.com/dotansimha/graphql-code-generator/issues/8065).\nDefault value: \"true\"",
"type": "boolean"
},
"extractAllFieldsToTypes": {
"description": "Extract all field types to their own types, instead of inlining them.\nThis helps to reduce type duplication, and makes type errors more readable.\nIt can also significantly reduce the size of the generated code, the generation time,\nand the typechecking time.\nDefault value: \"false\"",
"type": "boolean"
},
"printFieldsOnNewLines": {
"description": "If you prefer to have each field in generated types printed on a new line, set this to true.\nThis can be useful for improving readability of the resulting types,\nwithout resorting to running tools like Prettier on the output.\nDefault value: \"false\"",
"type": "boolean"
}
}
},
Expand Down Expand Up @@ -1644,14 +1632,6 @@
"emitLegacyCommonJSImports": {
"description": "Emit legacy common js imports.\nDefault it will be `true` this way it ensure that generated code works with [non-compliant bundlers](https://github.com/dotansimha/graphql-code-generator/issues/8065).\nDefault value: \"true\"",
"type": "boolean"
},
"extractAllFieldsToTypes": {
"description": "Extract all field types to their own types, instead of inlining them.\nThis helps to reduce type duplication, and makes type errors more readable.\nIt can also significantly reduce the size of the generated code, the generation time,\nand the typechecking time.\nDefault value: \"false\"",
"type": "boolean"
},
"printFieldsOnNewLines": {
"description": "If you prefer to have each field in generated types printed on a new line, set this to true.\nThis can be useful for improving readability of the resulting types,\nwithout resorting to running tools like Prettier on the output.\nDefault value: \"false\"",
"type": "boolean"
}
}
},
Expand Down Expand Up @@ -2717,7 +2697,7 @@
"description": "Declares how DocumentNode are created:\n\n- `graphQLTag`: `graphql-tag` or other modules (check `gqlImport`) will be used to generate document nodes. If this is used, document nodes are generated on client side i.e. the module used to generate this will be shipped to the client\n- `documentNode`: document nodes will be generated as objects when we generate the templates.\n- `documentNodeImportFragments`: Similar to documentNode except it imports external fragments instead of embedding them.\n- `external`: document nodes are imported from an external file. To be used with `importDocumentNodeExternallyFrom`\n\nNote that some plugins (like `typescript-graphql-request`) also supports `string` for this parameter.\nDefault value: \"graphQLTag\""
},
"optimizeDocumentNode": {
"description": "If you are using `documentMode: documentNode | documentNodeImportFragments`, you can set this to `true` to apply document optimizations for your GraphQL document.\nThis will remove all \"loc\" and \"description\" fields from the compiled document, and will remove all empty arrays (such as `directives`, `arguments` and `variableDefinitions`).\nDefault value: \"true\"",
"description": "If you are using `documentNode: documentMode | documentNodeImportFragments`, you can set this to `true` to apply document optimizations for your GraphQL document.\nThis will remove all \"loc\" and \"description\" fields from the compiled document, and will remove all empty arrays (such as `directives`, `arguments` and `variableDefinitions`).\nDefault value: \"true\"",
"type": "boolean"
},
"importOperationTypesFrom": {
Expand Down Expand Up @@ -2773,14 +2753,6 @@
"emitLegacyCommonJSImports": {
"description": "Emit legacy common js imports.\nDefault it will be `true` this way it ensure that generated code works with [non-compliant bundlers](https://github.com/dotansimha/graphql-code-generator/issues/8065).\nDefault value: \"true\"",
"type": "boolean"
},
"extractAllFieldsToTypes": {
"description": "Extract all field types to their own types, instead of inlining them.\nThis helps to reduce type duplication, and makes type errors more readable.\nIt can also significantly reduce the size of the generated code, the generation time,\nand the typechecking time.\nDefault value: \"false\"",
"type": "boolean"
},
"printFieldsOnNewLines": {
"description": "If you prefer to have each field in generated types printed on a new line, set this to true.\nThis can be useful for improving readability of the resulting types,\nwithout resorting to running tools like Prettier on the output.\nDefault value: \"false\"",
"type": "boolean"
}
}
},
Expand Down
30 changes: 0 additions & 30 deletions website/src/components/Search.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions website/theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@
/* eslint sort-keys: error */
import { useRouter } from 'next/router';
import { defineConfig, Giscus, useTheme } from '@theguild/components';
import { Search } from './src/components/Search';

export default defineConfig({
docsRepositoryBase: 'https://github.com/dotansimha/graphql-code-generator/tree/master/website',
search: {
component: Search,
},
main({ children }) {
const { resolvedTheme } = useTheme();
const { route } = useRouter();
Expand Down
Loading

0 comments on commit c73de3e

Please sign in to comment.