-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add page-chatbot attribute to enable chatbot (#252)
The `page-chatbot` attribute sets the base URL of the folder containing the HTML and CSS built by the docs-chatbot repo. ``` :page-chatbot: https://neo4j.com/static/chatbot/ ``` A PR to sync the js/css assets has been opened at: neo4j/docs-chatbot#8 --------- Co-authored-by: Neil Dewhurst <[email protected]>
- Loading branch information
1 parent
37970c7
commit f732281
Showing
5 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
= Neo4j & Python | ||
:page-theme: docs | ||
:page-role: code-walkthrough | ||
:page-chatbot: http://localhost:3000 | ||
:!toc: | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
{{/if}} | ||
{{#if (and (eq @root.page.attributes.theme "cheat-sheet") @root.page.attributes.publish)}} | ||
<script src="{{{@root.site.path}}}{{{@root.site.ui.url}}}/js/vendor/auth0.js"></script> | ||
|
||
<script src="{{{@root.site.path}}}{{{@root.site.ui.url}}}/js/site.js"></script> | ||
{{!-- <script async src="{{{@root.site.path}}}{{{@root.site.ui.url}}}/js/vendor/gram.js"></script> --}} | ||
<script async src="{{{@root.site.path}}}{{{@root.site.ui.url}}}/js/vendor/highlight.js"></script> | ||
|
@@ -28,7 +28,12 @@ | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/browser/neo4j-web.min.js"></script> | ||
{{/if}} | ||
|
||
{{#if page.attributes.chatbot}} | ||
<div id="docs_chatbot"></div> | ||
<script type="module" crossorigin src="{{{ page.attributes.chatbot }}}/index.js"></script> | ||
{{/if}} | ||
|
||
<div id="neo4j-algolia-search-v2"></div> | ||
<script src="https://neo4j.com/wp-content/themes/neo4jweb/assets/neo4j-react-modules-assets/search-preact/chunkless/bundle.js"></script> | ||
<script src="https://neo4j.com/wp-content/themes/neo4jweb/assets/neo4j-react-modules-assets/search-preact/chunkless/polyfill.js"></script> | ||
<script>window.algoliaSearchOptions = {indexName: "docs",placeholder: "Search Documentation",template: "docs"}</script> | ||
<script>window.algoliaSearchOptions = {indexName: "docs",placeholder: "Search Documentation",template: "docs"}</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters