import { ANATOMY_PAGE, ARCHITECTURE_PAGE, GRAMMAR_PAGE, METHODOLOGY_PAGE } from "#core/ids/page.ids"; import type { PageContent, VocabularyEntry } from "#types/vocabulary.types"; import { ANATOMY_CONTENT } from "#configuration/strings/anatomy.strings"; import { ARCHITECTURE_CONTENT } from "#configuration/strings/architecture.strings"; import { GRAMMAR_CONTENT } from "#configuration/strings/grammar.strings"; import { METHODOLOGY_CONTENT } from "#configuration/strings/methodology.strings"; import type { Tab } from "#types/document.types"; import { VOCABULARY } from "#assets/vocabulary.generated"; import { chapterVocabulary } from "#domain/converters/chapter.converter"; import { linkTabs } from "#domain/converters/link.converter"; const PAGES: readonly PageContent[] = [ { page: METHODOLOGY_PAGE, tabs: METHODOLOGY_CONTENT }, { page: ARCHITECTURE_PAGE, tabs: ARCHITECTURE_CONTENT }, { page: GRAMMAR_PAGE, tabs: GRAMMAR_CONTENT }, { page: ANATOMY_PAGE, tabs: ANATOMY_CONTENT }, ]; export const SITE_VOCABULARY: readonly VocabularyEntry[] = [...VOCABULARY, ...chapterVocabulary(PAGES)]; export const METHODOLOGY_TABS: readonly Tab[] = linkTabs(METHODOLOGY_CONTENT, SITE_VOCABULARY, METHODOLOGY_PAGE); export const ARCHITECTURE_TABS: readonly Tab[] = linkTabs(ARCHITECTURE_CONTENT, SITE_VOCABULARY, ARCHITECTURE_PAGE); export const GRAMMAR_TABS: readonly Tab[] = linkTabs(GRAMMAR_CONTENT, SITE_VOCABULARY, GRAMMAR_PAGE);