๋ณธ๋ฌธ์œผ๋กœ ๊ฑด๋„ˆ๋›ฐ๊ธฐ
๋ฒ„์ „: 2.3.1

๐Ÿ“ฆ theme-search-algolia

์•Œ๊ณจ๋ฆฌ์•„ ๋ฌธ์„œ ๊ฒ€์ƒ‰ ํ†ตํ•ฉ์„ ์œ„ํ•œ @theme/SearchBar ์ปดํฌ๋„ŒํŠธ๋ฅผ ์ง€์›ํ•˜๋Š” ํ…Œ๋งˆ์ž…๋‹ˆ๋‹ค. @docusaurus/theme-classic์—์„œ ์ข€ ๋” ์‰ฝ๊ฒŒ ๊ฒ€์ƒ‰ ๊ธฐ๋Šฅ์„ ํ†ตํ•ฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ž์„ธํ•œ ๋‚ด์šฉ์€ ๊ฒ€์ƒ‰ ๊ด€๋ จ ๋ฌธ์„œ๋ฅผ ์ฐธ๊ณ ํ•˜์„ธ์š”.

npm install --save @docusaurus/theme-search-algolia

OpenSearch ๊ธฐ๋Šฅ ์ง€์›๊ณผ ํ•จ๊ป˜ /search(์Šค์œ„์ฆํ•  ์ˆ˜ ์žˆ๋Š” SearchPage ์ปดํฌ๋„ŒํŠธ)์—์„œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ๊ฒ€์ƒ‰ ํŽ˜์ด์ง€๋ฅผ ์ถ”๊ฐ€ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. themeConfig.algolia.searchPagePath๋ฅผ ํ†ตํ•ด ๊ธฐ๋ณธ ๊ฒฝ๋กœ๋ฅผ ๋ณ€๊ฒฝํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๊ฒ€์ƒ‰ ํŽ˜์ด์ง€๋ฅผ ๋น„ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด false ๊ฐ’์„ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.

ํŒ

@docusaurus/preset-classic์„ ์„ค์น˜ํ•œ ๊ฒฝ์šฐ์—๋Š” ํ…Œ๋งˆ๋ฅผ ๋”ฐ๋กœ ์„ค์น˜ํ•  ํ•„์š”๋Š” ์—†์Šต๋‹ˆ๋‹ค.