mirror of
https://github.com/cloudflare/cloudflare-docs.git
synced 2026-01-16 23:11:06 +00:00
[Docs Site] Turn off table alignment in index.md, fix glossary button (#21546)
* [Docs Site] Turn off table alignment in index.md, fix glossary button * unused import
This commit is contained in:
parent
9b52e26fce
commit
6785926d50
2 changed files with 9 additions and 5 deletions
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
import { marked } from "marked";
|
||||
import { getGlossaryEntries } from "~/util/glossary";
|
||||
import { LinkButton } from "@astrojs/starlight/components";
|
||||
|
||||
interface Props {
|
||||
product?: string;
|
||||
|
|
@ -44,9 +43,14 @@ const INITIAL_VISIBLE_ROWS = 20;
|
|||
|
||||
{
|
||||
terms.length > INITIAL_VISIBLE_ROWS && (
|
||||
<LinkButton id="glossary-button" href="" class="justify-center">
|
||||
View more terms
|
||||
</LinkButton>
|
||||
<div class="flex items-center justify-center">
|
||||
<button
|
||||
id="glossary-button"
|
||||
class="h-12 cursor-pointer rounded bg-cl1-brand-orange px-6 font-medium text-cl1-black"
|
||||
>
|
||||
View more terms
|
||||
</button>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ export default class extends WorkerEntrypoint<Env> {
|
|||
rehypeParse,
|
||||
rehypeBaseUrl,
|
||||
rehypeFilterElements,
|
||||
remarkGfm,
|
||||
[remarkGfm, { tablePipeAlign: false }],
|
||||
rehypeRemark,
|
||||
remarkStringify,
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue