Clean up document page additions

This commit is contained in:
Team 1280 Programming Laptop 2024-02-14 16:43:47 -08:00
parent 9fe487eb3c
commit 4bbd31bcd3
3 changed files with 1 additions and 19 deletions

View file

@ -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>
)
}

View file

@ -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 {

View file

@ -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}`