Skip to content

Commit

Permalink
feat: fix landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Ellison committed Jul 16, 2024
1 parent b7003e2 commit 354365c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 30 deletions.
Binary file removed core
Binary file not shown.
1 change: 0 additions & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
24 changes: 1 addition & 23 deletions src/_components/Editor/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,17 +259,6 @@ const Editor = React.memo(function EditorC({
doc
);

// provider.on('status', (event: { status: string }) => {
// if (event.status === 'connected') {
// const meta = doc.getMap('meta');
// if (isNewDocument || !meta.has('initialized')) {
// logger.info('NOT initialized');
// } else {
// logger.info('initialized');
// }
// }
// });

provider.on('synced', () => {
// The 'synced' event ensures all data has been loaded
// initializeDocument(doc, initialMarkdown, editorRef);
Expand All @@ -287,23 +276,12 @@ const Editor = React.memo(function EditorC({
logger.info('setting initial content');
}
} else {
logger.info('initialised');
logger.info('already initialised');
}
});

return provider;
}}
// initialEditorState={(editor: LexicalEditor) => {
// editor.update(() => {
// const root = $getRoot();
// root.clear(); // Clear existing nodes
// if (initialMarkdown) {
// // Here we assume you have a function `insertMarkdown` available
// // If Lexical supports markdown parsing, you could use that directly
// // editorRef?.current?.insertMarkdown(initialMarkdown);
// }
// });
// }}
shouldBootstrap={false}
excludedProperties={excludedProperties}
username={`ABC-${Math.floor(Math.random() * 100)}`}
Expand Down
12 changes: 6 additions & 6 deletions src/_components/Layouts/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,42 +56,42 @@ const LandingPage = () => {
<LinkCard
title='Frameworks & Standards'
description='View the compliance frameworks that guide our IT policy as well as standards to help adoption.'
link='/docs/frameworks'
link='/docs/view/default/frameworks'
/>
)}
{siteConfig.content.services && (
<LinkCard
title='Providers & Services'
description='View the catalogue of Services available, complete with patterns, implementation guides and quality controls.'
link='/docs/services'
link='/docs/view/default/services'
/>
)}
{siteConfig.content.applications && (
<LinkCard
title='Applications'
description='Browse the Applications deployed within our Organisation including documentation, knowledge and real-time compliance.'
link='/docs/applications'
link='/docs/view/default/applications'
/>
)}
{siteConfig.content.customers && (
<LinkCard
title='Customers & Projects'
description="Customers and the projects we've done for them."
link='/docs/customers'
link='/docs/view/default/customers'
/>
)}
{siteConfig.content.solutions && (
<LinkCard
title='Solutions'
description='Solutions and Propositions.'
link='/docs/solutions'
link='/docs/view/default/solutions'
/>
)}
{siteConfig.content.products && (
<LinkCard
title='Products'
description='Products.'
link='/docs/products'
link='/docs/view/default/products'
/>
)}
</Grid>
Expand Down

0 comments on commit 354365c

Please sign in to comment.