Skip to content

Commit

Permalink
Merge pull request #71 from orkes-io/algolia-integration
Browse files Browse the repository at this point in the history
Integration to algolia
  • Loading branch information
Sudakatux authored Apr 13, 2022
2 parents 09653a3 + f40d23c commit 667b4d9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,21 +227,21 @@ const config = {
additionalLanguages: ['java'],
},
algolia: {
appId: "YOUR_APP_ID",
appId: "F6Z9JYN7SD",

// Public API key: it is safe to commit it
apiKey: "YOUR_SEARCH_API_KEY",
apiKey: "4b16b443762534d364363a6dee383487",

indexName: "YOUR_INDEX_NAME",
indexName: "prod_docs",

// Optional: see doc section below
contextualSearch: true,
contextualSearch: false,

// Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them.
externalUrlRegex: "external\\.com|domain\\.com",
// externalUrlRegex: "external\\.com|domain\\.com",

// Optional: Algolia search parameters
searchParameters: {},
// searchParameters: {},
},
}),
};
Expand Down
19 changes: 19 additions & 0 deletions search.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"index_name": "prod_docs",
"start_urls": ["https://orkes.io/content/"],
"selectors": {
"lvl0": {
"selector": "(//ul[contains(@class,'menu__list')]//a[contains(@class, 'menu__link menu__link--sublist menu__link--active')]/text() | //nav[contains(@class, 'navbar')]//a[contains(@class, 'navbar__link--active')]/text())[last()]",
"type": "xpath",
"global": true,
"default_value": "Documentation"
},
"lvl1": "header h1",
"lvl2": "article h2",
"lvl3": "article h3",
"lvl4": "article h4",
"lvl5": "article h5, article td:first-child",
"text": "article p, article li, article td:last-child"
},
"strip_chars": " .,;:#"
}

0 comments on commit 667b4d9

Please sign in to comment.