A focused writing and publishing space. https://write.with.parts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
writefreely/static/js
vtyeh 82de4558de Link title directly to post page 4 weeks ago
..
highlightjs Locally host highlightjs 6 years ago
mathjax Revert "add all mathjax components" 5 years ago
.gitignore Remove prose.bundle.js from repo 4 years ago
README.md spelling: javascript 2 years ago
ace.js Add user management pages 6 years ago
h.js Merge branch 'develop' into wysiwyg 4 years ago
highlight.min.js Locally host highlightjs 6 years ago
localdate.js Fix date-based post header links 5 years ago
menu.js Add menu hover delay on user pages + editor 4 years ago
modals.js Change copyright notices to Musing Studio LLC 2 years ago
mode-css.js Add user management pages 6 years ago
postactions.js Fully support single-user mode 6 years ago
posts.js Link title directly to post page 4 weeks ago
theme-chrome.js Add user management pages 6 years ago
webfont.js Add missing webfont.js 6 years ago
webmonetization.js Change copyright notices to Musing Studio LLC 2 years ago
worker-css.js Add user management pages 6 years ago

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!