Repository navigation
Conversation
Member
|
Nope. We demand the removal of the doc page linked from your site. |
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
ai_chatbot, a ConfigPlugin that puts the Asyntai AI chatbot on every page of a Nikola site.The site owner sets
ASYNTAI_WIDGET_IDinconf.py. The plugin appends one async script tag toBODY_ENDin every language, so posts, pages, indexes, archives, taxonomies and galleries all get it, and a changed widget ID rebuilds every page. A missing or malformed ID logs an error and leaves the site unchanged, so other commands keep working. If the snippet is already inBODY_END, the plugin does not add a second one.Tests are in
tests/test_ai_chatbot.py. We also checked it with realnikola buildruns on Nikola 8.3.3 and 8.2.4 (bootblog4, bootstrap4-jinja and base themes, and a two-language site), and built the plugin index site locally to check the listing page and the zip.Docs: https://asyntai.com/documentation/integrations/nikola/