Тёмный

How to add search functionality to Docusaurus with Algolia Docusearch and a custom crawler 

Mostly Code
Подписаться 1 тыс.
Просмотров 7 тыс.
50% 1

GitHub: github.com/mimo84/
Twitter: / mostly_code

Опубликовано:

 

21 апр 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 20   
@w3ichen
@w3ichen 2 года назад
Thank you! This was super helpful
@yusufmustari
@yusufmustari Год назад
Thanks., Very helpfull
@AdemirDiniz
@AdemirDiniz 2 года назад
How to limit the search based on VERSION and LANGUAGE?
@shezinkhaleel
@shezinkhaleel 2 года назад
search bar component is not apperaing eventhough I have gone same step? can you help me out
@9k181
@9k181 2 года назад
Hello, thank you very much for your video, I would like to ask why you can’t search if you add contextualSearch: true
@mostlycode
@mostlycode 2 года назад
You can search with contextualSearch: true. The difference is that it's made to search within a certain version of your documentation. Here a link to the official documentation: docusaurus.io/docs/next/search#contextual-search
@antoniomorais360
@antoniomorais360 9 месяцев назад
Hello. I followed all the steps but, at the end, the result is "Neither start url nor regex: default, we scrap all. Crawling issue: nbHits 0 for XXX", in other words, nothing crawled. Maybe is about some outdated configuration.
@ousmanesow612
@ousmanesow612 3 года назад
Hello, thank you for this very short and well done video. I have a problem with the docker run command which tells me that my config.json file is not good and I guess it's because I'm on windows so I would like to know if you can advise me an alternative. Thanks a lot.
@mostlycode
@mostlycode 3 года назад
Did you check this repo for the configuration options? github.com/algolia/docsearch-configs/blob/master/configs/docusaurus-2.json
@ousmanesow612
@ousmanesow612 3 года назад
@@mostlycode Thank for your answer. Yes I did and created in the same place as you did in the vdeo the config.json file but doesn't work again
@ousmanesow612
@ousmanesow612 3 года назад
$ winpty docker run -it --env-file=.env -e "CONFIG=$(cat ./config.json | jq -r tostring)" algolia/docsearch-scraper Neither start url nor regex: default, we scrap all 2021-06-02 09:12:14 [scrapy.downloadermiddlewares.retry] ERROR: Gave up retrying (failed 3 times): Connection was refused by other side: 111: Connection refused. 2021-06-02 09:12:14 [spacesense] ERROR: Failure without response Connection was refused by other side: 111: Connection refused.
@mostlycode
@mostlycode 3 года назад
Can you access the URL 192.168.1.38:3000? Your Docusausus needs to be running the build, so run docusausus build and then docusausus serve because to access those files the production build is what you need to be running on your local
@ousmanesow612
@ousmanesow612 3 года назад
@@mostlycode yes I can 192.168.1.38:3000/blog is working and giving me the right page
@mohammadrefaldorachman8146
@mohammadrefaldorachman8146 2 года назад
how to make your own search bar without algolia?
@mohammadrefaldorachman8146
@mohammadrefaldorachman8146 2 года назад
I mean create search bar only component from docusaurus
Далее
Docusaurus 2 Plugin Development for beginners
10:38
Просмотров 1,8 тыс.
Tim Tries: Algolia Crawler Plugin for Netlify
13:37
Просмотров 1,5 тыс.
Телеграмм-Колян Карелия #юмор
00:10
Translate your Docusaurus website
32:14
Просмотров 7 тыс.
Typesense vs Algolia & Elasticsearch
2:23
Просмотров 5 тыс.
Docusaurus: Documentation Made Easy
31:16
Просмотров 22 тыс.