Clean up document page additions
This commit is contained in:
parent
9fe487eb3c
commit
4bbd31bcd3
3 changed files with 1 additions and 19 deletions
|
@ -1,8 +0,0 @@
|
||||||
export default function Page() {
|
|
||||||
return (
|
|
||||||
<h1>
|
|
||||||
This is a placeholder for a document browser that will be implemented in
|
|
||||||
the future. In the meantime, you can view specific documents by searching.
|
|
||||||
</h1>
|
|
||||||
)
|
|
||||||
}
|
|
|
@ -9,7 +9,6 @@ import {
|
||||||
Reviewers,
|
Reviewers,
|
||||||
} from '@/app/components/DataDisplay'
|
} from '@/app/components/DataDisplay'
|
||||||
import { ItemBadge, Status } from '@/app/components/Badges'
|
import { ItemBadge, Status } from '@/app/components/Badges'
|
||||||
import Link from 'next/link'
|
|
||||||
import { notFound } from 'next/navigation'
|
import { notFound } from 'next/navigation'
|
||||||
import VersionChooser from './VersionChooser'
|
import VersionChooser from './VersionChooser'
|
||||||
|
|
||||||
|
@ -17,7 +16,7 @@ const zillaSlab = Zilla_Slab({ subsets: ['latin'], weight: ['500'] })
|
||||||
|
|
||||||
const DocumentViewer = ({ slug }: Readonly<{ slug: string }>) => {
|
const DocumentViewer = ({ slug }: Readonly<{ slug: string }>) => {
|
||||||
const doc = documents[slug]
|
const doc = documents[slug]
|
||||||
const { manifest, abstract, file, citation } = doc
|
const { manifest, abstract, citation } = doc
|
||||||
|
|
||||||
if (!manifest) return notFound()
|
if (!manifest) return notFound()
|
||||||
const {
|
const {
|
||||||
|
|
|
@ -9,16 +9,7 @@ const VersionChooser = ({
|
||||||
}: Readonly<{ doc: Document; slug: string }>) => {
|
}: Readonly<{ doc: Document; slug: string }>) => {
|
||||||
const { file } = doc
|
const { file } = doc
|
||||||
const {
|
const {
|
||||||
title,
|
|
||||||
authors,
|
|
||||||
topics,
|
|
||||||
dates,
|
|
||||||
references,
|
|
||||||
code,
|
|
||||||
type,
|
|
||||||
latest,
|
latest,
|
||||||
reviewers,
|
|
||||||
status,
|
|
||||||
} = doc.manifest
|
} = doc.manifest
|
||||||
|
|
||||||
const fileEnding = file === 'other' ? '' : `.${file}`
|
const fileEnding = file === 'other' ? '' : `.${file}`
|
||||||
|
|
Loading…
Reference in a new issue