mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-09-11 10:46:25 +03:00
Docs: Update banner
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10817 GitOrigin-RevId: 5c537488071ed19a2dc85e4a676ebe09c3a5058e
This commit is contained in:
parent
c1dae66970
commit
7e616c5c29
@ -61,11 +61,8 @@ const config = {
|
|||||||
docs: {
|
docs: {
|
||||||
routeBasePath: '/',
|
routeBasePath: '/',
|
||||||
sidebarPath: require.resolve('./sidebars.js'),
|
sidebarPath: require.resolve('./sidebars.js'),
|
||||||
editUrl: ({ docPath }) =>
|
editUrl: ({ docPath }) => `https://github.com/hasura/graphql-engine/edit/master/docs/docs/${docPath}`,
|
||||||
`https://github.com/hasura/graphql-engine/edit/master/docs/docs/${docPath}`,
|
docItemComponent: require.resolve('./src/components/CustomDocItem/index.tsx'),
|
||||||
docItemComponent: require.resolve(
|
|
||||||
'./src/components/CustomDocItem/index.tsx'
|
|
||||||
),
|
|
||||||
exclude: ['**/*.wip'],
|
exclude: ['**/*.wip'],
|
||||||
breadcrumbs: true,
|
breadcrumbs: true,
|
||||||
// showLastUpdateAuthor: true,
|
// showLastUpdateAuthor: true,
|
||||||
@ -94,12 +91,9 @@ const config = {
|
|||||||
id: 'wiki',
|
id: 'wiki',
|
||||||
path: 'wiki',
|
path: 'wiki',
|
||||||
routeBasePath: 'wiki',
|
routeBasePath: 'wiki',
|
||||||
editUrl: ({ docPath }) =>
|
editUrl: ({ docPath }) => `https://github.com/hasura/graphql-engine/edit/master/docs/docs/${docPath}`,
|
||||||
`https://github.com/hasura/graphql-engine/edit/master/docs/docs/${docPath}`,
|
|
||||||
editCurrentVersion: true,
|
editCurrentVersion: true,
|
||||||
docItemComponent: require.resolve(
|
docItemComponent: require.resolve('./src/components/CustomDocItem/CustomDocItemWiki.tsx'),
|
||||||
'./src/components/CustomDocItem/CustomDocItemWiki.tsx'
|
|
||||||
),
|
|
||||||
// disableVersioning: true,
|
// disableVersioning: true,
|
||||||
breadcrumbs: false,
|
breadcrumbs: false,
|
||||||
sidebarPath: require.resolve('./sidebarsWiki.js'),
|
sidebarPath: require.resolve('./sidebarsWiki.js'),
|
||||||
@ -108,10 +102,7 @@ const config = {
|
|||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
path.resolve(
|
path.resolve(__dirname, './src/plugins/docusaurus-plugin-segment-analytics'),
|
||||||
__dirname,
|
|
||||||
'./src/plugins/docusaurus-plugin-segment-analytics'
|
|
||||||
),
|
|
||||||
{
|
{
|
||||||
prodKey: 'RQXoHRpNcmBKllUDihjDjupGv4AHn5TB',
|
prodKey: 'RQXoHRpNcmBKllUDihjDjupGv4AHn5TB',
|
||||||
devKey: 'FRKElp5cyMax6GAdM8OVyNMIFVppgEgp',
|
devKey: 'FRKElp5cyMax6GAdM8OVyNMIFVppgEgp',
|
||||||
@ -145,20 +136,11 @@ const config = {
|
|||||||
disableSwitch: false,
|
disableSwitch: false,
|
||||||
respectPrefersColorScheme: true,
|
respectPrefersColorScheme: true,
|
||||||
},
|
},
|
||||||
image:
|
image: 'https://graphql-engine-cdn.hasura.io/assets/hge-docs/og-image.png',
|
||||||
'https://graphql-engine-cdn.hasura.io/assets/hge-docs/og-image.png',
|
|
||||||
prism: {
|
prism: {
|
||||||
theme: lightCodeTheme,
|
theme: lightCodeTheme,
|
||||||
darkTheme: darkCodeTheme,
|
darkTheme: darkCodeTheme,
|
||||||
additionalLanguages: [
|
additionalLanguages: ['rest', 'http', 'haskell', 'plsql', 'docker', 'nginx', 'markdown'],
|
||||||
'rest',
|
|
||||||
'http',
|
|
||||||
'haskell',
|
|
||||||
'plsql',
|
|
||||||
'docker',
|
|
||||||
'nginx',
|
|
||||||
'markdown',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
algolia: {
|
algolia: {
|
||||||
// If Algolia did not provide you any appId, use 'BH4D9OD16A'
|
// If Algolia did not provide you any appId, use 'BH4D9OD16A'
|
||||||
@ -175,7 +157,7 @@ const config = {
|
|||||||
},
|
},
|
||||||
announcementBar: {
|
announcementBar: {
|
||||||
id: 'announcementBar-1', // Increment on change
|
id: 'announcementBar-1', // Increment on change
|
||||||
content: `Learn all about Hasura DDN and celebrate the launch with us at Dev Day on April 16. <a target="_blank" rel="noopener noreferrer" href="https://hasura.io/dev-day">Sign up here</a>.`,
|
content: `This is the documentation for Hasura v2. <a target="_blank" rel="noopener noreferrer" href="https://hasura.io/docs/3.0/index/">Click here for the Hasura DDN docs</a>, the future of data delivery.`,
|
||||||
// isCloseable: true,
|
// isCloseable: true,
|
||||||
// backgroundColor: '#fafbfc',
|
// backgroundColor: '#fafbfc',
|
||||||
// textColor: '#091E42',
|
// textColor: '#091E42',
|
||||||
|
Loading…
Reference in New Issue
Block a user