Antoine du Hamel
c1859e528a
tools: remove use of promisify where possible ( #3010 )
...
* tools: remove use of `promisify` where possible
Remove use of `promisify` when a native promise API is available.
* website: fix minify build
It seems that `tinyify` doesn't support some modern ES features,
replacing it with `terser`.
* website: fix highlight script
`Prism` needs to be a global variable now it seems...
2021-07-14 14:22:06 +02:00
Kevin van Zonneveld
764c2ccada
Update Linter ( #2796 )
...
* relocate .vscode
* Switch to transloadit linter
* Update .eslintrc.json
* autofix code
* unlink and install eslint-config-transloadit@1.1.1
* Change 0 to "off"
* Don't change 'use strict'
* Do not vertically align
* disable key-spacing
* add import/no-extraneous-dependencies per package
* add more react/a11y warnings
* Revert "autofix code"
This reverts commit 14c8a8cde8 .
* add import/no-extraneous-dependencies per example and main package
* autofix code (2)
* Allow devDependencies in ./bin
* Change import/no-extraneous-dependencies to warn again
* upgrade linter
* Set import/no-extraneous-dependencies to warn
2021-03-15 16:25:17 +00:00
Renée Kooi
06245cd85a
switch to Dart Sass ( #2661 )
...
* switch to Dart Sass
* make hexo work wherever its installed?
2020-11-27 11:28:47 +00:00
Artur Paikin
ed01291b26
highlight code blocks in excerpt too
2020-04-19 21:54:44 +02:00
Renée Kooi
733de659da
Upgrade standard to v14 ( #1860 )
...
* Update eslint dependencies.
* standard --fix
* build: disable handler name lint rule
* status-bar: manually fix lint errors
* webcam: manually fix lint errors
* url: manually fix lint errors
* react-native: manually fix lint errors
* dashboard: manually fix lint errors
* informer: manually fix linting errors
* progress-bar: manually fix lint errors
* provider-views: manually fix lint errors
* redux-dev-tools: manually fix lint errors
* build: disable buggy no-unused-vars rule
* examples: manually fix lint errors
* ` quotes for code things, ' for text things
2019-10-09 14:53:02 +02:00
Renée Kooi
b44bc21c09
website: remove double-escaping of inline code blocks
2019-08-14 12:24:34 +02:00
Renée Kooi
95a13ff52f
website: fix highlighting again ( #1757 )
...
* website: fix unhighlighted code block detection
* website: fix html inside inline code tags
2019-07-30 15:16:52 +02:00
Renée Kooi
e1ec23e64d
website: Load all prism languages ( #1004 )
...
This is server side so we don't need to worry about bundle size anyway.
It'll be best if every language is available to use, so we can't forget
about adding one.
2018-08-16 11:36:39 +02:00
Renée Kooi
aa75bb8645
doc: Fix highlighting of PHP snippets
...
The Prism language for this was not enabled.
Also added the "PHP" tag thing to the top right of PHP snippets.
2018-07-12 15:26:26 +02:00
Renée Kooi
5c32a26c64
Use prismjs directly.
2018-06-04 13:51:12 +02:00
Renée Kooi
2425d339c6
robustify
2018-06-04 13:41:29 +02:00
Renée Kooi
9eaaf7e4c6
Switch to prismjs for highlighting.
2018-06-04 13:04:59 +02:00