user feedback logic was updated to report if zero posts were found in a zip and form submissions disable the submit button until the form input for files changes again, preventing possible duplicate submissions on large zip uploads. updated to v0.2.1 wfimport to prevent early error returns when an invalid file is present in a zip. |
||
---|---|---|
.. | ||
highlightjs | ||
mathjax@419b0a6eee | ||
ace.js | ||
h.js | ||
highlight.min.js | ||
import.js | ||
mode-css.js | ||
postactions.js | ||
posts.js | ||
README.md | ||
theme-chrome.js | ||
webfont.js | ||
worker-css.js |
static/js
This directory is for Javascript.
Updating libraries
Update instructions, for libraries that involve more than just downloading the latest version.
highlightjs
To update the highlightjs library, first download a plain package (no languages included) from highlightjs.org. The highlight.pack.js
file in the archive should be moved into this static/js/
directory and renamed to highlight.min.js
.
Then download an archive of the latest version. Extract it to some directory, and replace ~/Downloads/highlight.js below with the resulting directory.
#!/bin/bash
version=9.13.1
cd $GOPATH/src/github.com/writeas/writefreely/static/js/highlightjs
for f in $(ls ~/Downloads/highlight.js/src/languages); do
# Use minified versions
f=$(echo $f | sed 's/\.js/.min.js/')
# Download the version
wget "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/$version/languages/$f"
done
Commit the changes and you're done!