statically compile documents
This commit is contained in:
parent
207d23b94c
commit
3f64142e4d
3 changed files with 5 additions and 9 deletions
|
@ -13,9 +13,8 @@ export default function News() {
|
|||
<br className='my-4' />
|
||||
<ul className='text-slate-50 px-6 list-disc'>
|
||||
<li key={1}>
|
||||
eeXiv 2.0 has been released! The site should feel significantly more
|
||||
responsive. Data caching has also been implemented so search results
|
||||
and documents will load instantly the second time.
|
||||
eeXiv 2.1 has been released! Documents are now statically generated
|
||||
for instant loading speeds.{' '}
|
||||
</li>
|
||||
<li key={2}>Mobile support is currently in beta.</li>
|
||||
<li key={3}>
|
||||
|
|
|
@ -10,11 +10,13 @@ import {
|
|||
} from '@/app/components/DataDisplay'
|
||||
import { ItemBadge, Status } from '@/app/components/Badges'
|
||||
import Link from 'next/link'
|
||||
import { notFound } from 'next/navigation'
|
||||
|
||||
const zillaSlab = Zilla_Slab({ subsets: ['latin'], weight: ['500'] })
|
||||
|
||||
export default function DocumentViewer({ slug }: Readonly<{ slug: string }>) {
|
||||
const { manifest, abstract, file, citation } = documents[slug]
|
||||
if (!manifest) return notFound()
|
||||
const {
|
||||
title,
|
||||
authors,
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import DocumentViewer from './DocumentViewer'
|
||||
import ErrorBoundary from '@/app/utils/ErrorBoundary'
|
||||
import { documents } from '@/app/db/data'
|
||||
|
||||
export function generateStaticParams() {
|
||||
|
@ -10,9 +9,5 @@ export function generateStaticParams() {
|
|||
export default function Page({
|
||||
params,
|
||||
}: Readonly<{ params: { slug: string } }>) {
|
||||
return (
|
||||
<ErrorBoundary>
|
||||
<DocumentViewer slug={params.slug} />
|
||||
</ErrorBoundary>
|
||||
)
|
||||
return <DocumentViewer slug={params.slug} />
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue