-
Notifications
You must be signed in to change notification settings - Fork 352
Highlight.js improvements #212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I want to avoid generating many assets. Can we add the .hljs to the existing |
|
I cannot look at this commit now, but i would discourage the use of the autodetec ion feature.of highlight.js, as we have done in the past and it does a poor job a detcting (probably too hard of a job to solve), so that would recommend this rule, resolve to elixir unless otherwise specified in the code block |
The problem with that is that you can only specify the language if you enable fenced code blocks, which @josevalim doesn't want |
|
I want to confirm that we cannot use autodetect, it brings a lot more issues than the benefits. |
|
@ericmj Have you confirmed that we cannot use the auto-detection feature from After #211, which offer support for fenced code blocks, can we assume that the auto-detection feature from It's easy to disable this feature: // Setup Highlight.js
hljs.configure({
tabReplace: ' ', // 4 spaces
languages: [] // disable auto-detect
});What do you think? /cc @josevalim @dignifiedquire |
|
Yes, we are definitely not using autodetect from highlight.js even more now with upcoming support for fenced blocks. |
|
@josevalim Wow, that was fast! working on it! 👍 |
Disable auto-detect feature from highlight.js
|
sounds good to me :) |
|
@ericmj @josevalim Do I need to do something else to complete this Pull Request? are you too busy right now to review this? I'm not in a hurry, I'm just curious, that's all! 👍 |
|
LGTM. @josevalim we can merge and check the nightly docs build. |
This is a Work in Process, there are a lot of things to fix at this point: - [ ] Fix tests after delete `list_item` and `list_item_template` - [ ] Move `js/main.js` into `app.js` - [ ] Review the changes made to the CSS styles. - [ ] Fix the index.html to avoid the frameset. - [ ] Improve the section below the `aside` element in `module_template` - [ ] Generate valid JSON for `sidebar_items.js` - [ ] Fix the possible conflict after elixir-lang#212 gets merged This effort will try to fix the issue elixir-lang#175
|
@josevalim Ping. |
This is a Work in Process, there are a lot of things to fix at this point: - [ ] Fix tests after delete `list_item` and `list_item_template` - [x] Move `js/main.js` into `app.js` - [ ] Review the changes made to the CSS styles. - [ ] Fix the index.html to avoid the frameset. - [x] Improve the section below the `#sidebar` section in `module_template` - [ ] Generate valid JSON for `sidebar_items.js` - [ ] Fix the possible conflict after elixir-lang#212 gets merged - [x] Improve CSS integration - [x] Remove frames - [x] Add an initial media query for `print` media - [x] Improve the JS style code and documentation - [x] Add meta tags `x-ua-compatible`, `viewport` and `generator` - [x] Delete `target` parameter from a element - [x] Add normalize.css - [x] Merge old full_list.css with style.css - [x] Add sidebar template - [x] Merge full_list.js into app.js - [x] Update jQuery v2.1.4 This effort will try to fix the issue elixir-lang#175
This is a Work in Process, there are a lot of things to fix at this point: - [ ] Fix tests after delete `list_item` and `list_item_template` - [x] Move `js/main.js` into `app.js` - [ ] Review the changes made to the CSS styles. - [ ] Fix the index.html to avoid the frameset. - [x] Improve the section below the `#sidebar` section in `module_template` - [ ] Generate valid JSON for `sidebar_items.js` - [ ] Fix the possible conflict after elixir-lang#212 gets merged - [x] Improve CSS integration - [x] Remove frames - [x] Add an initial media query for `print` media - [x] Improve the JS style code and documentation - [x] Add meta tags `x-ua-compatible`, `viewport` and `generator` - [x] Delete `target` parameter from a element - [x] Add normalize.css - [x] Merge old full_list.css with style.css - [x] Add sidebar template - [x] Merge full_list.js into app.js - [x] Update jQuery v2.1.4 This effort will try to fix the issue elixir-lang#175
This is a Work in Process, there are a lot of things to fix at this point: - [ ] Fix tests - [ ] Review the changes made to the CSS styles - [ ] Review the breadcrumbs - [ ] Fix the possible conflict after elixir-lang#212 gets merged - [x] Fix the index.html to avoid the frameset. - [x] Improve the section below the `#sidebar` section in `module_template` - [x] Generate valid JSON for `sidebar_items.js` - [x] Improve CSS integration - [x] Remove frames - [x] Add an initial media query for `print` media - [x] Improve the JS style code and documentation - [x] Add meta tags `x-ua-compatible`, `viewport` and `generator` - [x] Delete `target` parameter from a element - [x] Add normalize.css - [x] Merge old full_list.css with style.css - [x] Add sidebar template - [x] Merge full_list.js into app.js - [x] Update jQuery v2.1.4 This effort will try to fix the issue elixir-lang#175
This is a Work in Process, there are a lot of things to fix at this point: - [ ] Fix tests - [ ] Review the changes made to the CSS styles - [ ] Review the breadcrumbs - [x] Fix the possible conflict after elixir-lang#212 gets merged - [x] Fix the index.html to avoid the frameset. - [x] Improve the section below the `#sidebar` section in `module_template` - [x] Generate valid JSON for `sidebar_items.js` - [x] Improve CSS integration - [x] Remove frames - [x] Add an initial media query for `print` media - [x] Improve the JS style code and documentation - [x] Add meta tags `x-ua-compatible`, `viewport` and `generator` - [x] Delete `target` parameter from a element - [x] Add normalize.css - [x] Merge old full_list.css with style.css - [x] Add sidebar template - [x] Merge full_list.js into app.js - [x] Update jQuery v2.1.4 This effort will try to fix the issue elixir-lang#175
This is a Work in Process, there are a lot of things to fix at this point: - [ ] Fix tests - [x] Review the changes made to the CSS styles - [x] Review the breadcrumbs - [x] Fix the possible conflict after elixir-lang#212 gets merged - [x] Fix the index.html to avoid the frameset. - [x] Improve the section below the `#sidebar` section in `module_template` - [x] Generate valid JSON for `sidebar_items.js` - [x] Improve CSS integration - [x] Remove frames - [x] Add an initial media query for `print` media - [x] Improve the JS style code and documentation - [x] Add meta tags `x-ua-compatible`, `viewport` and `generator` - [x] Delete `target` parameter from a element - [x] Add normalize.css - [x] Merge old full_list.css with style.css - [x] Add sidebar template - [x] Merge full_list.js into app.js - [x] Update jQuery v2.1.4 This effort will try to fix the issue elixir-lang#175
This is a Work in Process, there are a lot of things to fix at this point: - [x] Fix tests - [x] Review the changes made to the CSS styles - [x] Review the breadcrumbs - [x] Fix the possible conflict after elixir-lang#212 gets merged - [x] Fix the index.html to avoid the frameset. - [x] Improve the section below the `#sidebar` section in `module_template` - [x] Generate valid JSON for `sidebar_items.js` - [x] Improve CSS integration - [x] Remove frames - [x] Add an initial media query for `print` media - [x] Improve the JS style code and documentation - [x] Add meta tags `x-ua-compatible`, `viewport` and `generator` - [x] Delete `target` parameter from a element - [x] Add normalize.css - [x] Merge old full_list.css with style.css - [x] Add sidebar template - [x] Merge full_list.js into app.js - [x] Update jQuery v2.1.4 This effort will try to fix the issue elixir-lang#175
This is a Work in Process, there are a lot of things to fix at this point: - [x] Fix tests - [x] Review the changes made to the CSS styles - [x] Review the breadcrumbs - [x] Fix the possible conflict after elixir-lang#212 gets merged - [x] Fix the index.html to avoid the frameset. - [x] Improve the section below the `#sidebar` section in `module_template` - [x] Generate valid JSON for `sidebar_items.js` - [x] Improve CSS integration - [x] Remove frames - [x] Add an initial media query for `print` media - [x] Improve the JS style code and documentation - [x] Add meta tags `x-ua-compatible`, `viewport` and `generator` - [x] Delete `target` parameter from a element - [x] Add normalize.css - [x] Merge old full_list.css with style.css - [x] Add sidebar template - [x] Merge full_list.js into app.js - [x] Update jQuery v2.1.4 This effort will try to fix the issue elixir-lang#175
This is a Work in Process, there are a lot of things to fix at this point: - [x] Fix tests - [x] Review the changes made to the CSS styles - [x] Review the breadcrumbs - [x] Fix the possible conflict after elixir-lang#212 gets merged - [x] Fix the index.html to avoid the frameset. - [x] Improve the section below the `#sidebar` section in `module_template` - [x] Generate valid JSON for `sidebar_items.js` - [x] Improve CSS integration - [x] Remove frames - [x] Add an initial media query for `print` media - [x] Improve the JS style code and documentation - [x] Add meta tags `x-ua-compatible`, `viewport` and `generator` - [x] Delete `target` parameter from a element - [x] Add normalize.css - [x] Merge old full_list.css with style.css - [x] Add sidebar template - [x] Merge full_list.js into app.js - [x] Update jQuery v2.1.4 - [x] Avoid code duplication in some templates This effort will try to fix the issue elixir-lang#175
This is a Work in Process, there are a lot of things to fix at this point: - [x] Fix tests - [x] Review the changes made to the CSS styles - [x] Review the breadcrumbs - [x] Fix the possible conflict after elixir-lang#212 gets merged - [x] Fix the index.html to avoid the frameset. - [x] Improve the section below the `#sidebar` section in `module_template` - [x] Generate valid JSON for `sidebar_items.js` - [x] Improve CSS integration - [x] Remove frames - [x] Add an initial media query for `print` media - [x] Improve the JS style code and documentation - [x] Add meta tags `x-ua-compatible`, `viewport` and `generator` - [x] Delete `target` parameter from a element - [x] Add normalize.css - [x] Merge old full_list.css with style.css - [x] Add sidebar template - [x] Merge full_list.js into app.js - [x] Update jQuery v2.1.4 This effort will try to fix the issue elixir-lang#175
This PR include the latest release of highlight.js (v8.6) and some improvements in the JavaScript code that allow the auto-detection to Elixir and Bash blocks.
Please note that the original file
elixir.csswas renamed togithub.cssto keep the same name as the source (taken from highlight.js) and the few changes (background and border of the<pre>tags) were implemented onhighlight-custom.css. This change will facilite to keep track of thegithub.csschanges.Last but not least, this PR is based on the ideas discussed on #150 by @dignifiedquire