writefreely/static/js
Matt Baer e4164cbf67 Move admin user deletion confirmation to modal
Ref T319
2021-04-22 10:08:05 -04:00
..
highlightjs Locally host highlightjs 2018-12-07 16:37:14 -05:00
mathjax Revert "add all mathjax components" 2019-09-12 10:19:08 -07:00
README.md Update repo URL to writefreely org 2021-04-06 17:24:07 -04:00
ace.js Add user management pages 2018-11-08 01:23:08 -05:00
h.js Merge branch 'develop' into wysiwyg 2020-09-09 09:53:38 -04:00
highlight.min.js Locally host highlightjs 2018-12-07 16:37:14 -05:00
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 Move admin user deletion confirmation to modal 2021-04-22 10:08:05 -04:00
mode-css.js Add user management pages 2018-11-08 01:23:08 -05:00
postactions.js Fully support single-user mode 2018-11-09 22:10:46 -05:00
posts.js Add user management pages 2018-11-08 01:23:08 -05:00
prose.bundle.js Update prose.bundle.js 2021-03-03 17:05:05 -05:00
theme-chrome.js Add user management pages 2018-11-08 01:23:08 -05:00
webfont.js Add missing webfont.js 2018-11-08 00:12:19 -05:00
worker-css.js Add user management pages 2018-11-08 01:23:08 -05:00

README.md

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!