From 7e96fd96eba67222f9df221671369f6a81cd28f9 Mon Sep 17 00:00:00 2001 From: George Adams Date: Thu, 9 Feb 2023 13:30:43 +0000 Subject: [PATCH] fix tests --- .../asciidoc-pages/docs/first-timer-support/index.de.adoc | 2 +- netlify.toml | 1 + src/__fixtures__/page.tsx | 6 +----- src/types/index.tsx | 5 +---- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/content/asciidoc-pages/docs/first-timer-support/index.de.adoc b/content/asciidoc-pages/docs/first-timer-support/index.de.adoc index 4bdbcc8ed..42b6922d4 100644 --- a/content/asciidoc-pages/docs/first-timer-support/index.de.adoc +++ b/content/asciidoc-pages/docs/first-timer-support/index.de.adoc @@ -1,4 +1,4 @@ -= First Timers Support (DRAFT) += Eclipse Adoptium(R) First Timers Support :page-authors: gdams, HanSolo, hendrikebbers, tellison :description: Support with first time contributions :keywords: adoptium documentation contribute first-time diff --git a/netlify.toml b/netlify.toml index ba21a1979..58105f76e 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,6 +3,7 @@ publish = "public" command = "npm run build" [build.environment] +NODE_OPTIONS = "--max_old_space_size=4096" NODE_VERSION = "18" GATSBY_CONCURRENT_DOWNLOAD = "15" GATSBY_CPU_COUNT = "1" diff --git a/src/__fixtures__/page.tsx b/src/__fixtures__/page.tsx index 83832e97b..cc53f441f 100644 --- a/src/__fixtures__/page.tsx +++ b/src/__fixtures__/page.tsx @@ -1,6 +1,5 @@ import { AsciidocPage, - File, MDXPage, SingleMDXPage, SiteMetaData @@ -8,7 +7,6 @@ import { export const createAsciidocData = (): { asciidoc: AsciidocPage; - file: File; } => ({ asciidoc: { id: 'asciidoc-1', @@ -33,11 +31,9 @@ export const createAsciidocData = (): { }, fields: { slug: '/asciidoc/asciidoc-page-title', + relativePath: 'test.adoc', } }, - file: { - relativePath: 'test.adoc', - } }); export const createMDXData = (): { diff --git a/src/types/index.tsx b/src/types/index.tsx index 8bb79859b..0dad136cb 100644 --- a/src/types/index.tsx +++ b/src/types/index.tsx @@ -7,16 +7,13 @@ export interface AsciidocPage { }, fields: { slug: string; + relativePath: string; }, pageAttributes: { authors: string; } } -export interface File { - relativePath: string; -} - export interface MDXPage { edges: MDXPageItem[]; }