-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
35 additions
and
5 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
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 |
---|---|---|
|
@@ -32,4 +32,4 @@ repos: | |
- id: prettier | ||
args: | ||
- --config | ||
- .prettierrc.json | ||
- javascript/.prettierrc.json |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
**/*.py | ||
src/fuzzyRules.js | ||
test/fuzzyRules.js |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{% autoescape false %} {% set urlsplit = url | urlsplit %} | ||
|
||
<!-- WB Insert --> | ||
<script src="{{ static_prefix }}wombat.js"></script> | ||
<script src="{{ static_prefix }}wombatSetup.js"></script> | ||
<script> | ||
// Get the current url we are serving from. | ||
// We cannot know it at zim creation as it depends of our server. | ||
const current_url = (function () { | ||
var href = new URL(window.location.href); | ||
href.hash = ''; | ||
|
||
return href.toString(); | ||
})(); | ||
|
||
const wbinfo = wombatSetup.getWombatInfo( | ||
current_url, | ||
'{{ orig_host }}', | ||
'{{ orig_scheme }}', | ||
'{{ orig_url }}', | ||
current_url.substring(0, current_url.length - '{{ path }}'.length), | ||
); | ||
|
||
if (window && window._WBWombatInit) { | ||
window._WBWombatInit(wbinfo); | ||
} | ||
</script> | ||
{% endautoescape %} | ||
|
||
<!-- End WB Insert --> |