-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #189 from openzim/issue_145
Migrate to new PG server + remove inline JS + remove JS deps from repo
- Loading branch information
Showing
13 changed files
with
89 additions
and
17,463 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
### | ||
# download JS dependencies and place them in our templates/assets folder | ||
# then launch our ogv.js script to fix dynamic loading links | ||
### | ||
|
||
if ! command -v curl > /dev/null; then | ||
echo "you need curl." | ||
exit 1 | ||
fi | ||
|
||
# Absolute path this script is in. | ||
SCRIPT_PATH="$( cd "$(dirname "$0")" ; pwd -P )" | ||
ASSETS_PATH="${SCRIPT_PATH}/gutenbergtozim/templates" | ||
|
||
echo "About to download JS assets to ${ASSETS_PATH}" | ||
|
||
echo "getting datatables.min.js" | ||
curl -L -O https://cdn.datatables.net/v/dt/dt-1.13.6/r-2.5.0/datatables.min.js | ||
rm -rf $ASSETS_PATH/datatables/datatables.min.js | ||
mv datatables.min.js $ASSETS_PATH/datatables/datatables.min.js | ||
|
||
echo "getting datatables.min.css" | ||
curl -L -O https://cdn.datatables.net/v/dt/dt-1.13.6/r-2.5.0/datatables.min.css | ||
rm -rf $ASSETS_PATH/datatables/datatables.min.css | ||
mv datatables.min.css $ASSETS_PATH/datatables/datatables.min.css |
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
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 @@ | ||
* |
Oops, something went wrong.