Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit435c2dd

Browse files
Added typesense index
1 parent4d931f0 commit435c2dd

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

‎typesense/README.md‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#Search with Typesense
2+
3+
This folder holds configuration for the search engine used in the documentation.
4+
5+
Search is powered by the[Typesense cloud](https://typesense.org/)
6+
7+
8+
##Requirements
9+
10+
There are 3 components needed for the search
11+
12+
* A typesense cluster. This is hosted in the Typesense cloud (codefresh-io account)
13+
* A[scrapper](https://typesense.org/docs/guide/docsearch.html#step-1-set-up-docsearch-scraper). This runs by Codefresh everytime we update the docs. It parses all documentation pages and creates an index in the Typesense cluster.
14+
* The[search Filed](https://typesense.org/docs/guide/docsearch.html#step-2-add-a-search-bar-to-your-documentation-site). This is using the docsearch API to query the cluster
15+
for search results.
16+
17+
##Configuration
18+
19+
The scrapper needs the file[config.json] and also an "Admin API key" to access
20+
the Typesense cluster. Currently the same Codefresh pipeline that deploys the documentation, also runs the scrapper and uploads the results at the Typesense cluster.
21+
22+
The search field needs just a "Search API" key to query the cluster.
23+
24+
To get/rotate the API keys you need to login with your Github account in the typesense cloud.

‎typesense/codefresh.json‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"index_name":"project-one-doc-index",
3+
"start_urls": [
4+
"https://codefresh.io/docs/"
5+
],
6+
"sitemap_urls": [
7+
"https://codefresh.io/docs/sitemap.xml"
8+
],
9+
"stop_urls": [],
10+
"selectors": {
11+
"lvl0": {
12+
"selector":"li.bd-toc-item.active .bd-nav-links-item-group",
13+
"global":true,
14+
"default_value":"Documentation"
15+
},
16+
"lvl1":".bd-content h1",
17+
"lvl2":".bd-content h2",
18+
"lvl3":".bd-content h3",
19+
"lvl4":".bd-content h4",
20+
"lvl5":".bd-content h5",
21+
"text":".bd-content p, .bd-content li, .bd-content table"
22+
},
23+
"selectors_exclude": [
24+
".nextSteps"
25+
],
26+
"min_indexed_level":1,
27+
"conversation_id": [
28+
"510102157"
29+
],
30+
"nb_hits":8300
31+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp