mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00:00 
			
		
		
		
	Docs: Upgrade highlight.js to 9.0.0
with the following added languages in anticipation of document expansion:
    apache dockerfile dos less php powershell python tex yaml
To reproduce docs/static/js/highlight.pack.js on Debian/Ubuntu:
    $ sudo apt-get install nodejs npm
    $ wget https://github.com/isagalaev/highlight.js/archive/9.0.0.tar.gz
    $ tar xzf 9.0.0.tar.gz
    $ cd highlight.js-9.0.0/
    $ npm install
    $ nodejs tools/build.js markdown asciidoc xml css javascript \
      ini yaml json go bash diff dockerfile dos powershell makefile \
      apache nginx tex http php python ruby django haml handlebars \
      scss less coffeescript
Then, copy the resulting build/highlight.pack.js as well as
src/styles/monokai-sublime.css to the appropriate Hugo docs directories.
			
			
This commit is contained in:
		
							
								
								
									
										83
									
								
								docs/static/css/monokai-sublime.css
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										83
									
								
								docs/static/css/monokai-sublime.css
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,83 @@
 | 
			
		||||
/*
 | 
			
		||||
 | 
			
		||||
Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-license.org/
 | 
			
		||||
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
.hljs {
 | 
			
		||||
  display: block;
 | 
			
		||||
  overflow-x: auto;
 | 
			
		||||
  padding: 0.5em;
 | 
			
		||||
  background: #23241f;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.hljs,
 | 
			
		||||
.hljs-tag,
 | 
			
		||||
.hljs-subst {
 | 
			
		||||
  color: #f8f8f2;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.hljs-strong,
 | 
			
		||||
.hljs-emphasis {
 | 
			
		||||
  color: #a8a8a2;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.hljs-bullet,
 | 
			
		||||
.hljs-quote,
 | 
			
		||||
.hljs-number,
 | 
			
		||||
.hljs-regexp,
 | 
			
		||||
.hljs-literal,
 | 
			
		||||
.hljs-link {
 | 
			
		||||
  color: #ae81ff;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.hljs-code,
 | 
			
		||||
.hljs-title,
 | 
			
		||||
.hljs-section,
 | 
			
		||||
.hljs-selector-class {
 | 
			
		||||
  color: #a6e22e;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.hljs-strong {
 | 
			
		||||
  font-weight: bold;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.hljs-emphasis {
 | 
			
		||||
  font-style: italic;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.hljs-keyword,
 | 
			
		||||
.hljs-selector-tag,
 | 
			
		||||
.hljs-name,
 | 
			
		||||
.hljs-attr {
 | 
			
		||||
  color: #f92672;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.hljs-symbol,
 | 
			
		||||
.hljs-attribute {
 | 
			
		||||
  color: #66d9ef;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.hljs-params,
 | 
			
		||||
.hljs-class .hljs-title {
 | 
			
		||||
  color: #f8f8f2;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.hljs-string,
 | 
			
		||||
.hljs-type,
 | 
			
		||||
.hljs-built_in,
 | 
			
		||||
.hljs-builtin-name,
 | 
			
		||||
.hljs-selector-id,
 | 
			
		||||
.hljs-selector-attr,
 | 
			
		||||
.hljs-selector-pseudo,
 | 
			
		||||
.hljs-addition,
 | 
			
		||||
.hljs-variable,
 | 
			
		||||
.hljs-template-variable {
 | 
			
		||||
  color: #e6db74;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.hljs-comment,
 | 
			
		||||
.hljs-deletion,
 | 
			
		||||
.hljs-meta {
 | 
			
		||||
  color: #75715e;
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										149
									
								
								docs/static/css/monokai_sublime.css
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										149
									
								
								docs/static/css/monokai_sublime.css
									
									
									
									
										vendored
									
									
								
							@@ -1,149 +0,0 @@
 | 
			
		||||
/*
 | 
			
		||||
 | 
			
		||||
Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-license.org/
 | 
			
		||||
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
.hljs {
 | 
			
		||||
  display: block;
 | 
			
		||||
  padding: 0.5em;
 | 
			
		||||
  background: #23241f;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.hljs,
 | 
			
		||||
.hljs-tag,
 | 
			
		||||
.css .hljs-rules,
 | 
			
		||||
.css .hljs-value,
 | 
			
		||||
.css .hljs-function
 | 
			
		||||
.hljs-preprocessor,
 | 
			
		||||
.hljs-pragma {
 | 
			
		||||
  color: #f8f8f2;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.hljs-strongemphasis,
 | 
			
		||||
.hljs-strong,
 | 
			
		||||
.hljs-emphasis {
 | 
			
		||||
  color: #a8a8a2;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.hljs-bullet,
 | 
			
		||||
.hljs-blockquote,
 | 
			
		||||
.hljs-horizontal_rule,
 | 
			
		||||
.hljs-number,
 | 
			
		||||
.hljs-regexp,
 | 
			
		||||
.alias .hljs-keyword,
 | 
			
		||||
.hljs-literal,
 | 
			
		||||
.hljs-hexcolor {
 | 
			
		||||
  color: #ae81ff;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.hljs-tag .hljs-value,
 | 
			
		||||
.hljs-code,
 | 
			
		||||
.hljs-title,
 | 
			
		||||
.css .hljs-class,
 | 
			
		||||
.hljs-class .hljs-title:last-child {
 | 
			
		||||
  color: #a6e22e;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.hljs-link_url {
 | 
			
		||||
  font-size: 80%;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.hljs-strong,
 | 
			
		||||
.hljs-strongemphasis {
 | 
			
		||||
  font-weight: bold;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.hljs-emphasis,
 | 
			
		||||
.hljs-strongemphasis,
 | 
			
		||||
.hljs-class .hljs-title:last-child {
 | 
			
		||||
  font-style: italic;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.hljs-keyword,
 | 
			
		||||
.hljs-function,
 | 
			
		||||
.hljs-change,
 | 
			
		||||
.hljs-winutils,
 | 
			
		||||
.hljs-flow,
 | 
			
		||||
.lisp .hljs-title,
 | 
			
		||||
.clojure .hljs-built_in,
 | 
			
		||||
.nginx .hljs-title,
 | 
			
		||||
.tex .hljs-special,
 | 
			
		||||
.hljs-header,
 | 
			
		||||
.hljs-attribute,
 | 
			
		||||
.hljs-symbol,
 | 
			
		||||
.hljs-symbol .hljs-string,
 | 
			
		||||
.hljs-tag .hljs-title,
 | 
			
		||||
.hljs-value,
 | 
			
		||||
.alias .hljs-keyword:first-child,
 | 
			
		||||
.css .hljs-tag,
 | 
			
		||||
.css .unit,
 | 
			
		||||
.css .hljs-important {
 | 
			
		||||
  color: #F92672;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.hljs-function .hljs-keyword,
 | 
			
		||||
.hljs-class .hljs-keyword:first-child,
 | 
			
		||||
.hljs-constant,
 | 
			
		||||
.css .hljs-attribute {
 | 
			
		||||
  color: #66d9ef;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.hljs-variable,
 | 
			
		||||
.hljs-params,
 | 
			
		||||
.hljs-class .hljs-title {
 | 
			
		||||
  color: #f8f8f2;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.hljs-string,
 | 
			
		||||
.css .hljs-id,
 | 
			
		||||
.hljs-subst,
 | 
			
		||||
.haskell .hljs-type,
 | 
			
		||||
.ruby .hljs-class .hljs-parent,
 | 
			
		||||
.hljs-built_in,
 | 
			
		||||
.sql .hljs-aggregate,
 | 
			
		||||
.django .hljs-template_tag,
 | 
			
		||||
.django .hljs-variable,
 | 
			
		||||
.smalltalk .hljs-class,
 | 
			
		||||
.django .hljs-filter .hljs-argument,
 | 
			
		||||
.smalltalk .hljs-localvars,
 | 
			
		||||
.smalltalk .hljs-array,
 | 
			
		||||
.hljs-attr_selector,
 | 
			
		||||
.hljs-pseudo,
 | 
			
		||||
.hljs-addition,
 | 
			
		||||
.hljs-stream,
 | 
			
		||||
.hljs-envvar,
 | 
			
		||||
.apache .hljs-tag,
 | 
			
		||||
.apache .hljs-cbracket,
 | 
			
		||||
.tex .hljs-command,
 | 
			
		||||
.hljs-prompt,
 | 
			
		||||
.hljs-link_label,
 | 
			
		||||
.hljs-link_url {
 | 
			
		||||
  color: #e6db74;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.hljs-comment,
 | 
			
		||||
.hljs-javadoc,
 | 
			
		||||
.java .hljs-annotation,
 | 
			
		||||
.python .hljs-decorator,
 | 
			
		||||
.hljs-template_comment,
 | 
			
		||||
.hljs-pi,
 | 
			
		||||
.hljs-doctype,
 | 
			
		||||
.hljs-deletion,
 | 
			
		||||
.hljs-shebang,
 | 
			
		||||
.apache .hljs-sqbracket,
 | 
			
		||||
.tex .hljs-formula {
 | 
			
		||||
  color: #75715e;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.coffeescript .javascript,
 | 
			
		||||
.javascript .xml,
 | 
			
		||||
.tex .hljs-formula,
 | 
			
		||||
.xml .javascript,
 | 
			
		||||
.xml .vbscript,
 | 
			
		||||
.xml .css,
 | 
			
		||||
.xml .hljs-cdata,
 | 
			
		||||
.xml .php,
 | 
			
		||||
.php .xml {
 | 
			
		||||
  opacity: 0.5;
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										4
									
								
								docs/static/js/highlight.pack.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								docs/static/js/highlight.pack.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Reference in New Issue
	
	Block a user