1
0
mirror of https://github.com/writeas/writefreely synced 2024-12-11 16:18:07 +01:00
writefreely/static/js
Josh Soref 8dd7b40c02 spelling: javascript
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-03-05 02:24:29 -05:00
..
highlightjs
mathjax Revert "add all mathjax components" 2019-09-12 10:19:08 -07:00
.gitignore Remove prose.bundle.js from repo 2021-04-30 09:41:18 -04:00
ace.js
h.js Merge branch 'develop' into wysiwyg 2020-09-09 09:53:38 -04:00
highlight.min.js
localdate.js Fix date-based post header links 2020-01-29 06:42:32 -05:00
menu.js Add menu hover delay on user pages + editor 2020-07-30 11:26:29 -04:00
modals.js Change copyright notices to Musing Studio LLC 2022-11-10 23:49:16 -05:00
mode-css.js
postactions.js
posts.js Show correct extracted title on loaded posts page 2021-04-28 17:19:22 -04:00
README.md spelling: javascript 2023-03-05 02:24:29 -05:00
theme-chrome.js
webfont.js
webmonetization.js Change copyright notices to Musing Studio LLC 2022-11-10 23:49:16 -05:00
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/writefreely/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!