Skip to content

Commit

Permalink
Add custom config table class for crawler (#104)
Browse files Browse the repository at this point in the history
Creates "hook" class for Algolia crawler.

Updates crawler as such:

```
recordProps: {
  lvl1: "article h1",
  content: "article p, article li, article table.config-table td, article table.config-table th",
  lvl0: {
    selectors: ".menu > .menu__list > li > .menu__link--active",
    defaultValue: "Documentation",
  },
  lvl2: "article h2",
  lvl3: "article h3",
  lvl4: "article h4",
  lvl5: "article h5",
},
```
  • Loading branch information
goodroot authored Dec 10, 2024
1 parent 11aa1c2 commit 89162a8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/theme/ConfigTable/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react"
import ReactMarkdown from "react-markdown"

type Props = {
Expand All @@ -8,7 +7,7 @@ type Props = {

export const ConfigTable = ({ rows, pick }: Props) => {
return (
<table>
<table className="config-table">
<thead>
<tr>
<th>Property</th>
Expand All @@ -32,4 +31,4 @@ export const ConfigTable = ({ rows, pick }: Props) => {
</tbody>
</table>
)
}
}

0 comments on commit 89162a8

Please sign in to comment.