mirror of
https://github.com/prometheus/docs.git
synced 2026-02-05 15:45:27 +01:00
Clean up some comments
Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
@@ -37,7 +37,6 @@ export default async function DocsPage({
|
||||
const slug = (await params).slug;
|
||||
|
||||
const docMeta = docsCollection[slug.join("/")];
|
||||
// TODO: Use the content from the meta json.
|
||||
const markdown = await fs.readFile(docMeta.filePath, "utf-8");
|
||||
|
||||
return (
|
||||
@@ -69,7 +68,7 @@ export default async function DocsPage({
|
||||
|
||||
switch (docMeta.type) {
|
||||
case "local-doc":
|
||||
// TODO: Fix this in the old Markdown files instead.
|
||||
// TODO: Fix this in the old Markdown files instead?
|
||||
return src.replace(/^\/assets\//, "/assets/docs/");
|
||||
case "repo-doc":
|
||||
return `${docMeta.assetsRoot}/${src}`;
|
||||
|
||||
Reference in New Issue
Block a user