Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/algolia-index #17

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions .github/workflows/docsearch-scraper.yml

This file was deleted.

6 changes: 3 additions & 3 deletions algolia/scraper_md.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"index_name": "devportal-docs",
"start_urls": ["https://developers.vtex.com/docs/guides"],
"index_name": "helpcenter-docs",
"start_urls": ["https://helpcenter.vtex.com/docs"],
"stop_urls": [],
"sitemap_urls": ["https://developers.vtex.com/sitemap-0.xml"],
"sitemap_urls": ["https://helpcenter.vtex.com/sitemap-0.xml"],
"selectors": {
"lvl0": "article .title, article h1",
"lvl1": "article h2",
Expand Down
40 changes: 0 additions & 40 deletions algolia/scraper_openapi.json

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/search-input/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function SearchInput() {
const resultsBox = useRef<HTMLElement>()
useClickOutside(resultsBox, setfocusOut)
return (
<InstantSearch searchClient={searchClient} indexName="devportal-docs">
<InstantSearch searchClient={searchClient} indexName="helpcenter-docs">
<Configure clickAnalytics={true} />
<Box onFocus={() => setfocusOut({ modaltoggle: true })} ref={resultsBox}>
<SearchBox />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/updates/announcements/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const NewsPage: NextPage<Props> = ({ serialized, branch }) => {
<>
<Head>
<title>{serialized.frontmatter?.title as string}</title>
<meta name="docsearch:doctype" content="Announcements" />
<meta name="docsearch:doctype" content="News" />
</Head>
<DocumentContextProvider headings={headings}>
<Flex sx={styles.innerContainer}>
Expand Down
Loading