Skip to content

Commit

Permalink
feat: integrated to algolia. WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Sudakatux committed Mar 22, 2022
1 parent 33b89fe commit 76526a7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,21 +167,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,

// 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 76526a7

Please sign in to comment.