diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eabc4e5c5b6103206ce549f3a814d248e740adbe..6982ac324eeb97fc9b3b957727a005482d67c830 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -34,7 +34,7 @@ pages: - yarn build - mv dist public #- cp -a dist/. public/ #original - #- echo '/* /index.html 200' > public/_redirects #original + echo '/* /index.html 200' > public/_redirects #original #- mv dist public #Ensure the output directory is renamed to public artifacts: paths: diff --git a/src/App/App.tsx b/src/App/App.tsx index 6f7881426694d0a52279edde007f3defb9123963..f106c7319aa53a43947a42ac6319388109addb40 100644 --- a/src/App/App.tsx +++ b/src/App/App.tsx @@ -37,7 +37,7 @@ const App = () => { {/* Header and PageContent */} <Routes> {Object.entries(pathMapping).map( - ([path, {component: Component, header: Head}]) => ( + ([path, {component: Component, header: Head, name}]) => ( <Route key={path} path={path} @@ -50,7 +50,6 @@ const App = () => { <div className="row "> <div className="col-1 d-none d-lg-block" > {/* <!-- empty so far --> */} - </div> {/* <div className="col-2 d-none d-lg-block"> <div className="sticky-top sidebar"> diff --git a/src/pages.ts b/src/pages.ts index e4bda55064e0806effb85641a71cf204f6844f27..3add5b421574c93a7959f85b3f4029b7eedfd70e 100644 --- a/src/pages.ts +++ b/src/pages.ts @@ -33,7 +33,7 @@ class Page implements Base { path: string | undefined; component: React.FC | undefined; header!: React.FC; - navlist: Array<string> | undefined; + navlist?: Array<string> | undefined; } const Pages: (Page | Folder)[] = [