The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Begin setup search
Felix Malfaitae5a73b347ad
diff --git a/docs/README.md b/docs/README.mdindex aaba2fa1e16..a0d0321c397 100644--- a/docs/README.md+++ b/docs/README.md@@ -1,41 +1,4 @@-# Website+# Documentation-This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.--### Installation--```-$ yarn-```--### Local Development--```-$ yarn start-```--This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.--### Build--```-$ yarn build-```--This command generates static content into the `build` directory and can be served using any static contents hosting service.--### Deployment--Using SSH:--```-$ USE_SSH=true yarn deploy-```--Not using SSH:--```-$ GIT_USER=<Your GitHub username> yarn deploy-```--If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.+The docs here are managed through [Docusaurus 2](https://docusaurus.io/).+We recommend you go directly to the [staticly generated website](https://docs.twenty.com) rather than read them here.\ No newline at end of filediff --git a/docs/docs/docs/getting-started/_category_.json b/docs/docs/dev-docs/getting-started/_category_.jsonsimilarity index 100%rename from docs/docs/docs/getting-started/_category_.jsonrename to docs/docs/dev-docs/getting-started/_category_.jsondiff --git a/docs/docs/docs/getting-started/congratulations.md b/docs/docs/dev-docs/getting-started/congratulations.mdsimilarity index 100%rename from docs/docs/docs/getting-started/congratulations.mdrename to docs/docs/dev-docs/getting-started/congratulations.mddiff --git a/docs/docs/docs/getting-started/create-a-blog-post.md b/docs/docs/dev-docs/getting-started/create-a-blog-post.mdsimilarity index 100%rename from docs/docs/docs/getting-started/create-a-blog-post.mdrename to docs/docs/dev-docs/getting-started/create-a-blog-post.mddiff --git a/docs/docs/docs/getting-started/create-a-document.md b/docs/docs/dev-docs/getting-started/create-a-document.mdsimilarity index 100%rename from docs/docs/docs/getting-started/create-a-document.mdrename to docs/docs/dev-docs/getting-started/create-a-document.mddiff --git a/docs/docs/docs/getting-started/create-a-page.md b/docs/docs/dev-docs/getting-started/create-a-page.mdsimilarity index 100%rename from docs/docs/docs/getting-started/create-a-page.mdrename to docs/docs/dev-docs/getting-started/create-a-page.mddiff --git a/docs/docs/docs/getting-started/deploy-your-site.md b/docs/docs/dev-docs/getting-started/deploy-your-site.mdsimilarity index 100%rename from docs/docs/docs/getting-started/deploy-your-site.mdrename to docs/docs/dev-docs/getting-started/deploy-your-site.mddiff --git a/docs/docs/docs/getting-started/markdown-features.mdx b/docs/docs/dev-docs/getting-started/markdown-features.mdxsimilarity index 100%rename from docs/docs/docs/getting-started/markdown-features.mdxrename to docs/docs/dev-docs/getting-started/markdown-features.mdxdiff --git a/docs/docs/docs/intro.md b/docs/docs/dev-docs/intro.mdsimilarity index 100%rename from docs/docs/docs/intro.mdrename to docs/docs/dev-docs/intro.mddiff --git a/docs/docs/docs/tutorial-extras/_category_.json b/docs/docs/dev-docs/tutorial-extras/_category_.jsonsimilarity index 100%rename from docs/docs/docs/tutorial-extras/_category_.jsonrename to docs/docs/dev-docs/tutorial-extras/_category_.jsondiff --git a/docs/docs/docs/tutorial-extras/img/docsVersionDropdown.png b/docs/docs/dev-docs/tutorial-extras/img/docsVersionDropdown.pngsimilarity index 100%rename from docs/docs/docs/tutorial-extras/img/docsVersionDropdown.pngrename to docs/docs/dev-docs/tutorial-extras/img/docsVersionDropdown.pngdiff --git a/docs/docs/docs/tutorial-extras/img/localeDropdown.png b/docs/docs/dev-docs/tutorial-extras/img/localeDropdown.pngsimilarity index 100%rename from docs/docs/docs/tutorial-extras/img/localeDropdown.pngrename to docs/docs/dev-docs/tutorial-extras/img/localeDropdown.pngdiff --git a/docs/docs/docs/tutorial-extras/manage-docs-versions.md b/docs/docs/dev-docs/tutorial-extras/manage-docs-versions.mdsimilarity index 100%rename from docs/docs/docs/tutorial-extras/manage-docs-versions.mdrename to docs/docs/dev-docs/tutorial-extras/manage-docs-versions.mddiff --git a/docs/docs/docs/tutorial-extras/translate-your-site.md b/docs/docs/dev-docs/tutorial-extras/translate-your-site.mdsimilarity index 100%rename from docs/docs/docs/tutorial-extras/translate-your-site.mdrename to docs/docs/dev-docs/tutorial-extras/translate-your-site.mddiff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.jsindex fbe4a3f8cde..c0b6c833b9d 100644--- a/docs/docusaurus.config.js+++ b/docs/docusaurus.config.js@@ -26,7 +26,6 @@ const config = {defaultLocale: 'en',locales: ['en'],},-presets: [['classic',@@ -37,7 +36,7 @@ const config = {// Please change this to your repo.// Remove this to remove the "edit this page" links.editUrl:- 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',+ 'https://github.com/twentyhq/twenty/edit/main/docs/docs/',},theme: {customCss: require.resolve('./src/css/custom.css'),@@ -58,11 +57,15 @@ const config = {src: 'img/logo.svg',},items: [+ {+ type: 'search',+ position: 'left',+ },{type: 'docSidebar',sidebarId: 'docsSidebar',position: 'right',- label: 'Docs',+ label: 'Developer Docs',},{type: 'docSidebar',@@ -79,14 +82,34 @@ const config = {{to: 'https://github.com/twentyhq/twenty/releases',label: 'Releases',- position: 'right'},- {+ position: 'right'+ }+ /*{href: 'https://github.com/twentyhq/twenty',label: 'GitHub',position: 'right',- },+ }*/,],},+ algolia: {+ appId: 'YOUR_APP_ID',+ apiKey: 'YOUR_SEARCH_API_KEY',+ indexName: 'YOUR_INDEX_NAME',++ // Optional: see doc section below+ contextualSearch: true,+ // Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them.+ externalUrlRegex: 'external\\.com|domain\\.com',+ // Optional: Replace parts of the item URLs from Algolia. Useful when using the same search index for multiple deployments using a different baseUrl. You can use regexp or string in the `from` param. For example: localhost:3000 vs myCompany.com/docs+ replaceSearchResultPathname: {+ from: '/docs/', // or as RegExp: /\/docs\//+ to: '/',+ },+ // Optional: Algolia search parameters+ searchParameters: {},+ // Optional: path for search page that enabled by default (`false` to disable it)+ searchPagePath: 'search',+ },/* footer: {copyright: `© ${new Date().getFullYear()} Twenty. Docs generated with Docusaurus.`,},*/diff --git a/docs/sidebars.js b/docs/sidebars.jsindex 19c36c0d0b5..477b941d530 100644--- a/docs/sidebars.js+++ b/docs/sidebars.js@@ -13,7 +13,7 @@/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */const sidebars = {- docsSidebar: [{type: 'autogenerated', dirName: 'docs'}],+ docsSidebar: [{type: 'autogenerated', dirName: 'dev-docs'}],userGuideSidebar: [{type: 'autogenerated', dirName: 'user-guide'}],APISidebar: [{type: 'autogenerated', dirName: 'api'}],};