summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorHuynh Tan <[email protected]>2022-06-30 15:52:03 +0700
committerHuynh Tan <[email protected]>2022-06-30 15:52:03 +0700
commit11111bb49889feb1b00e6814d9d81e3e23409d7c (patch)
tree34abd3ac10a1112baaea318cf5e38eabe33acb0a /pages
parent94b543c1d28743f85bee2342609ff2019f7ec7d8 (diff)
Read useInheritance from emacs config
Diffstat (limited to 'pages')
-rw-r--r--pages/index.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/pages/index.tsx b/pages/index.tsx
index 9b21f7b..fdbabc3 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -79,6 +79,7 @@ export interface EmacsVariables {
dailyDir?: string
katexMacros?: { [key: string]: string }
attachDir?: string
+ useInheritance?: boolean,
subDirs: string[]
}
export type Tags = string[]
@@ -684,6 +685,7 @@ export function GraphPage() {
}}
macros={emacsVariables.katexMacros}
attachDir={emacsVariables.attachDir || ''}
+ useInheritance={emacsVariables.useInheritance || false}
nodeById={nodeByIdRef.current!}
linksByNodeId={linksByNodeIdRef.current!}
nodeByCite={nodeByCiteRef.current!}