[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:
Kian 2025-04-09 14:11:39 +01:00 committed by GitHub
parent 9b52e26fce
commit 6785926d50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 5 deletions

View file

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

View file

@ -46,7 +46,7 @@ export default class extends WorkerEntrypoint<Env> {
rehypeParse,
rehypeBaseUrl,
rehypeFilterElements,
remarkGfm,
[remarkGfm, { tablePipeAlign: false }],
rehypeRemark,
remarkStringify,
]);