Skip to content

Conversation

mrvdb
Copy link
Collaborator

@mrvdb mrvdb commented Nov 29, 2018

This adds support for all highlightjs supported languages.

It determines upfront what js files should be loaded, does that and triggers a highlight on the last one loaded. While we are on the CDN, the common set will still be loaded, so we can be leaner once we go local js and only load the languages we need.

- dynamically construct a list of languages to load
- fire hightlighting once last file has loaded
* upstream/master:
  Re-add https in log message
  Also use bind address on standalone redirect
  Allow 'bind' in config to specify bind address
  Only log ActivityPub info when debugging
  Bump version to 0.4
  Move softwareVer to var() block
  Add @koehn to AUTHORS
  Add `make release-docker`
  Move docker build to `make build-docker`
  extracted docker command a la `go` and `make`
  added docker support to `make release`
  removed an unnecessary debugging statement
  added .git to make builds cache more effectively and run faster
  switched to much smaller alpine image since golang not required at runtime
  Updated Dockerfile to produce smaller image with minimum content and a few extra features; added .dockerignore
@mrvdb
Copy link
Collaborator Author

mrvdb commented Dec 2, 2018

Anything needed here? From my POV this can be merged. The only ugly thing is the static assignment of the common set, but that will disappear once we go local js and make the default load without any languages.

@thebaer thebaer added the enhancement Proposed enhancements to current behavior label Dec 3, 2018
@thebaer thebaer added this to the 0.5 milestone Dec 3, 2018
@thebaer
Copy link
Member

thebaer commented Dec 3, 2018

Nope, this looks great! Nicely done. And I agree on the optimizations with moving to local JS / reducing what languages are loaded by default. That'd be a great thing to tackle next.

Merging now; will include these changes in v0.5.

@thebaer thebaer merged commit 09a3fe0 into writefreely:master Dec 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Proposed enhancements to current behavior
Development

Successfully merging this pull request may close these issues.

2 participants