diff --git a/website/content/guide/error-handling.md b/website/content/guide/error-handling.md index c78d4c06..b4f4344a 100644 --- a/website/content/guide/error-handling.md +++ b/website/content/guide/error-handling.md @@ -29,19 +29,21 @@ import ( func main() { e := echo.New() - e.Use(func(handler echo.HandlerFunc) echo.HandlerFunc { - // Extract the credentials from HTTP request header and perform a security - // check - - // For invalid credentials + e.Use(func(next echo.HandlerFunc) echo.HandlerFunc { return func(c echo.Context) error { + // Extract the credentials from HTTP request header and perform a security + // check + + // For invalid credentials return echo.NewHTTPError(http.StatusUnauthorized) + + // For valid credentials call next + // return next(c) } }) - - e.GET("/welcome", welcome) + e.GET("/", welcome) if err := e.Start(":1323"); err != nil { - e.Logger.Fatal(err.Error()) + e.Logger.Fatal(err) } } diff --git a/website/layouts/_default/single.html b/website/layouts/_default/single.html index a251d929..059a88aa 100644 --- a/website/layouts/_default/single.html +++ b/website/layouts/_default/single.html @@ -3,7 +3,7 @@ {{ partial "navbar.html" . }} {{ partial "sidenav.html" . }} {{ partial "search.html" . }} -
+
{{ partial "ad.html" }}
diff --git a/website/layouts/index.html b/website/layouts/index.html index d4474254..8123ee1b 100644 --- a/website/layouts/index.html +++ b/website/layouts/index.html @@ -3,7 +3,7 @@ {{ partial "navbar.html" . }} {{ partial "sidenav.html" . }} {{ partial "search.html" . }} -
+
{{ partial "ad.html" }}
diff --git a/website/layouts/partials/footer.html b/website/layouts/partials/footer.html index 0149bbb2..15b30a4c 100644 --- a/website/layouts/partials/footer.html +++ b/website/layouts/partials/footer.html @@ -39,5 +39,5 @@ --> {{ template "_internal/google_analytics_async.html" . }} - - + + diff --git a/website/layouts/partials/head.html b/website/layouts/partials/head.html index ce8a54a7..6808ae7d 100644 --- a/website/layouts/partials/head.html +++ b/website/layouts/partials/head.html @@ -1,22 +1,28 @@ - - - - - - - - - - - - - - - - {{ if ne .URL "/" }}{{ .Title }} | {{ end }}{{ .Site.Title }} - - - - - - + + + + + + + + + + + + + + + + + + + {{ if ne .URL "/" }}{{ .Title }} | {{ end }}{{ .Site.Title }} + + + + + + + + + diff --git a/website/static/scripts/echo.js b/website/static/scripts/echo.js deleted file mode 100644 index ec779667..00000000 --- a/website/static/scripts/echo.js +++ /dev/null @@ -1,37 +0,0 @@ -(function() { - // Add table class - var tables = document.getElementsByTagName('table'); - for (var i = 0; i < tables.length; i++) { - var t = tables[i]; - t.classList.add('w3-table-all'); - } - - // Add blockquote class - var blockquotes = document.getElementsByTagName('blockquote'); - for (var i = 0; i < blockquotes.length; i++) { - var bq = blockquotes[i]; - bq.classList.add('w3-panel'); - bq.classList.add('w3-leftbar'); - bq.classList.add('w3-light-grey'); - } - - // Add code class - var codes = document.getElementsByTagName('code'); - for (var i = 0; i < codes.length; i++) { - var c = codes[i]; - if (c.parentElement.nodeName !== 'PRE') { - c.classList.add('w3-codespan'); - } - } - - // Prism - Prism.languages.sh = Prism.languages.bash; -})(); - -function openSidenav() { - document.getElementById("sidenav").style.display = 'block'; -} - -function closeSidenav() { - document.getElementById("sidenav").style.display = 'none'; -} diff --git a/website/static/scripts/prism.js b/website/static/scripts/prism.js deleted file mode 100644 index b5ee91e8..00000000 --- a/website/static/scripts/prism.js +++ /dev/null @@ -1,9 +0,0 @@ -/* http://prismjs.com/download.html?themes=prism-okaidia&languages=markup+css+clike+javascript+bash+go&plugins=file-highlight */ -var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(){var e=/\blang(?:uage)?-(\w+)\b/i,t=0,n=_self.Prism={util:{encode:function(e){return e instanceof a?new a(e.type,n.util.encode(e.content),e.alias):"Array"===n.util.type(e)?e.map(n.util.encode):e.replace(/&/g,"&").replace(/e.length)break e;if(!(m instanceof a)){u.lastIndex=0;var y=u.exec(m),v=1;if(!y&&h&&p!=r.length-1){var b=r[p+1].matchedStr||r[p+1],k=m+b;if(p=m.length)continue;var _=y.index+y[0].length,P=m.length+b.length;if(v=3,P>=_){if(r[p+1].greedy)continue;v=2,k=k.slice(0,P)}m=k}if(y){g&&(f=y[1].length);var w=y.index+f,y=y[0].slice(f),_=w+y.length,S=m.slice(0,w),O=m.slice(_),j=[p,v];S&&j.push(S);var A=new a(i,c?n.tokenize(y,c):y,d,y,h);j.push(A),O&&j.push(O),Array.prototype.splice.apply(r,j)}}}}}return r},hooks:{all:{},add:function(e,t){var a=n.hooks.all;a[e]=a[e]||[],a[e].push(t)},run:function(e,t){var a=n.hooks.all[e];if(a&&a.length)for(var r,l=0;r=a[l++];)r(t)}}},a=n.Token=function(e,t,n,a,r){this.type=e,this.content=t,this.alias=n,this.matchedStr=a||null,this.greedy=!!r};if(a.stringify=function(e,t,r){if("string"==typeof e)return e;if("Array"===n.util.type(e))return e.map(function(n){return a.stringify(n,t,e)}).join("");var l={type:e.type,content:a.stringify(e.content,t,r),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:r};if("comment"==l.type&&(l.attributes.spellcheck="true"),e.alias){var i="Array"===n.util.type(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(l.classes,i)}n.hooks.run("wrap",l);var o="";for(var s in l.attributes)o+=(o?" ":"")+s+'="'+(l.attributes[s]||"")+'"';return"<"+l.tag+' class="'+l.classes.join(" ")+'" '+o+">"+l.content+""},!_self.document)return _self.addEventListener?(_self.addEventListener("message",function(e){var t=JSON.parse(e.data),a=t.language,r=t.code,l=t.immediateClose;_self.postMessage(n.highlight(r,n.languages[a],a)),l&&_self.close()},!1),_self.Prism):_self.Prism;var r=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return r&&(n.filename=r.src,document.addEventListener&&!r.hasAttribute("data-manual")&&document.addEventListener("DOMContentLoaded",n.highlightAll)),_self.Prism}();"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism); -Prism.languages.markup={comment://,prolog:/<\?[\w\W]+?\?>/,doctype://,cdata://i,tag:{pattern:/<\/?(?!\d)[^\s>\/=.$<]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s'">=]+))?)*\s*\/?>/i,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:('|")[\w\W]*?(\1)|[^\s>]+)/i,inside:{punctuation:/[=>"']/}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},Prism.hooks.add("wrap",function(a){"entity"===a.type&&(a.attributes.title=a.content.replace(/&/,"&"))}),Prism.languages.xml=Prism.languages.markup,Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup; -Prism.languages.css={comment:/\/\*[\w\W]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^\{\}\s][^\{\};]*?(?=\s*\{)/,string:/("|')(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1/,property:/(\b|\B)[\w-]+(?=\s*:)/i,important:/\B!important\b/i,"function":/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},Prism.languages.css.atrule.inside.rest=Prism.util.clone(Prism.languages.css),Prism.languages.markup&&(Prism.languages.insertBefore("markup","tag",{style:{pattern:/()[\w\W]*?(?=<\/style>)/i,lookbehind:!0,inside:Prism.languages.css,alias:"language-css"}}),Prism.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|').*?\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:Prism.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:Prism.languages.css}},alias:"language-css"}},Prism.languages.markup.tag)); -Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\w\W]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0}],string:{pattern:/(["'])(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[a-z0-9_\.\\]+/i,lookbehind:!0,inside:{punctuation:/(\.|\\)/}},keyword:/\b(if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,"boolean":/\b(true|false)\b/,"function":/[a-z0-9_]+(?=\()/i,number:/\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)\b/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/}; -Prism.languages.javascript=Prism.languages.extend("clike",{keyword:/\b(as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/,number:/\b-?(0x[\dA-Fa-f]+|0b[01]+|0o[0-7]+|\d*\.?\d+([Ee][+-]?\d+)?|NaN|Infinity)\b/,"function":/[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*(?=\()/i}),Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/(^|[^\/])\/(?!\/)(\[.+?]|\\.|[^\/\\\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})]))/,lookbehind:!0,greedy:!0}}),Prism.languages.insertBefore("javascript","class-name",{"template-string":{pattern:/`(?:\\\\|\\?[^\\])*?`/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^}]+\}/,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}}}),Prism.languages.markup&&Prism.languages.insertBefore("markup","tag",{script:{pattern:/()[\w\W]*?(?=<\/script>)/i,lookbehind:!0,inside:Prism.languages.javascript,alias:"language-javascript"}}),Prism.languages.js=Prism.languages.javascript; -!function(e){var t={variable:[{pattern:/\$?\(\([\w\W]+?\)\)/,inside:{variable:[{pattern:/(^\$\(\([\w\W]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b-?(?:0x[\dA-Fa-f]+|\d*\.?\d+(?:[Ee]-?\d+)?)\b/,operator:/--?|-=|\+\+?|\+=|!=?|~|\*\*?|\*=|\/=?|%=?|<<=?|>>=?|<=?|>=?|==?|&&?|&=|\^=?|\|\|?|\|=|\?|:/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\([^)]+\)|`[^`]+`/,inside:{variable:/^\$\(|^`|\)$|`$/}},/\$(?:[a-z0-9_#\?\*!@]+|\{[^}]+\})/i]};e.languages.bash={shebang:{pattern:/^#!\s*\/bin\/bash|^#!\s*\/bin\/sh/,alias:"important"},comment:{pattern:/(^|[^"{\\])#.*/,lookbehind:!0},string:[{pattern:/((?:^|[^<])<<\s*)(?:"|')?(\w+?)(?:"|')?\s*\r?\n(?:[\s\S])*?\r?\n\2/g,lookbehind:!0,greedy:!0,inside:t},{pattern:/(["'])(?:\\\\|\\?[^\\])*?\1/g,greedy:!0,inside:t}],variable:t.variable,"function":{pattern:/(^|\s|;|\||&)(?:alias|apropos|apt-get|aptitude|aspell|awk|basename|bash|bc|bg|builtin|bzip2|cal|cat|cd|cfdisk|chgrp|chmod|chown|chroot|chkconfig|cksum|clear|cmp|comm|command|cp|cron|crontab|csplit|cut|date|dc|dd|ddrescue|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|enable|env|ethtool|eval|exec|expand|expect|export|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|getopts|git|grep|groupadd|groupdel|groupmod|groups|gzip|hash|head|help|hg|history|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|jobs|join|kill|killall|less|link|ln|locate|logname|logout|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|make|man|mkdir|mkfifo|mkisofs|mknod|more|most|mount|mtools|mtr|mv|mmv|nano|netstat|nice|nl|nohup|notify-send|nslookup|open|op|passwd|paste|pathchk|ping|pkill|popd|pr|printcap|printenv|printf|ps|pushd|pv|pwd|quota|quotacheck|quotactl|ram|rar|rcp|read|readarray|readonly|reboot|rename|renice|remsync|rev|rm|rmdir|rsync|screen|scp|sdiff|sed|seq|service|sftp|shift|shopt|shutdown|sleep|slocate|sort|source|split|ssh|stat|strace|su|sudo|sum|suspend|sync|tail|tar|tee|test|time|timeout|times|touch|top|traceroute|trap|tr|tsort|tty|type|ulimit|umask|umount|unalias|uname|unexpand|uniq|units|unrar|unshar|uptime|useradd|userdel|usermod|users|uuencode|uudecode|v|vdir|vi|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yes|zip)(?=$|\s|;|\||&)/,lookbehind:!0},keyword:{pattern:/(^|\s|;|\||&)(?:let|:|\.|if|then|else|elif|fi|for|break|continue|while|in|case|function|select|do|done|until|echo|exit|return|set|declare)(?=$|\s|;|\||&)/,lookbehind:!0},"boolean":{pattern:/(^|\s|;|\||&)(?:true|false)(?=$|\s|;|\||&)/,lookbehind:!0},operator:/&&?|\|\|?|==?|!=?|<<>|<=?|>=?|=~/,punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];]/};var a=t.variable[1].inside;a["function"]=e.languages.bash["function"],a.keyword=e.languages.bash.keyword,a.boolean=e.languages.bash.boolean,a.operator=e.languages.bash.operator,a.punctuation=e.languages.bash.punctuation}(Prism); -Prism.languages.go=Prism.languages.extend("clike",{keyword:/\b(break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,builtin:/\b(bool|byte|complex(64|128)|error|float(32|64)|rune|string|u?int(8|16|32|64|)|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(ln)?|real|recover)\b/,"boolean":/\b(_|iota|nil|true|false)\b/,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,number:/\b(-?(0x[a-f\d]+|(\d+\.?\d*|\.\d+)(e[-+]?\d+)?)i?)\b/i,string:/("|'|`)(\\?.|\r|\n)*?\1/}),delete Prism.languages.go["class-name"]; -!function(){"undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(){var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.forEach&&Array.prototype.slice.call(document.querySelectorAll("pre[data-src]")).forEach(function(t){for(var a,s=t.getAttribute("data-src"),n=t,r=/\blang(?:uage)?-(?!\*)(\w+)\b/i;n&&!r.test(n.className);)n=n.parentNode;if(n&&(a=(t.className.match(r)||[,""])[1]),!a){var o=(s.match(/\.(\w+)$/)||[,""])[1];a=e[o]||o}var l=document.createElement("code");l.className="language-"+a,t.textContent="",l.textContent="Loading…",t.appendChild(l);var i=new XMLHttpRequest;i.open("GET",s,!0),i.onreadystatechange=function(){4==i.readyState&&(i.status<400&&i.responseText?(l.textContent=i.responseText,Prism.highlightElement(l)):l.textContent=i.status>=400?"✖ Error "+i.status+" while fetching file: "+i.statusText:"✖ Error: File does not exist or is empty")},i.send(null)})},document.addEventListener("DOMContentLoaded",self.Prism.fileHighlight))}(); diff --git a/website/static/styles/main.css b/website/static/styles/main.css index 564c567c..e69de29b 100644 --- a/website/static/styles/main.css +++ b/website/static/styles/main.css @@ -1,261 +0,0 @@ -a { - color: #c05b4d; - text-decoration: none -} -a:hover, a:focus { - color: #a5473a; - text-decoration: underline -} - -textarea:focus, input:focus{ - outline: none; -} - -blockquote { - margin-left: 0; -} - -/* Theme */ -.w3-theme-l5 {color:#000 !important; background-color:#edfcff !important} -.w3-theme-l4 {color:#000 !important; background-color:#c3f5ff !important} -.w3-theme-l3 {color:#000 !important; background-color:#87ebff !important} -.w3-theme-l2 {color:#000 !important; background-color:#4ae1ff !important} -.w3-theme-l1 {color:#fff !important; background-color:#0ed7ff !important} -.w3-theme-d1 {color:#fff !important; background-color:#009dbc !important} -.w3-theme-d2 {color:#fff !important; background-color:#008ba7 !important} -.w3-theme-d3 {color:#fff !important; background-color:#007a92 !important} -.w3-theme-d4 {color:#fff !important; background-color:#00697d !important} -.w3-theme-d5 {color:#fff !important; background-color:#005769 !important} - -.w3-theme-light {color:#000 !important; background-color:#edfcff !important} -.w3-theme-dark {color:#fff !important; background-color:#005769 !important} -.w3-theme-action {color:#fff !important; background-color:#005769 !important} - -.w3-theme {color:#fff !important; background-color:#00afd1 !important} -.w3-text-theme {color:#00afd1 !important} -.w3-border-theme {border-color:#00afd1 !important} - -.w3-hover-theme:hover {color:#fff !important; background-color:#00afd1 !important} -.w3-hover-text-theme {color:#00afd1 !important} -.w3-hover-border-theme:hover {border-color:#00afd1 !important} - -.w3-navbar { - z-index: 2; - /*padding: 0 16px; - padding-top: 8px;*/ - -} - -.w3-sidenav { - width: 250px; - padding: 72px 32px 32px; -} - -.w3-sidenav a { - color: #000; -} - -.w3-main { - margin-left: 250px; - padding: 0 16px; -} - -.navbar { - top: 0; - position: fixed; - z-index: 2; - background: #FFF; - width: 100%; - display: flex; - justify-content: space-between; - align-items: center; - padding: 8px 32px; - border-bottom: 1px solid #F1F1F1; -} - -.logo { - height: 30px; -} - -/* Footer */ -.footer { - color: grey; - font-weight: 300; - border-top: 1px solid #F1F1F1; -} -a.icon { - text-decoration: none; -} -.icon { - padding: 4px; - font-size: 20px; -} -.icon>i { - color: grey; -} - -/* Gitter */ -.gitter-open-chat-button { - background-color: #00AFD1; - transition: all .2s ease; -} -.gitter-open-chat-button:hover { - background-color: #009DBC; -} - -/* Algolia */ -/* http://vuejs.org/css/page.css */ -.aa-dropdown-menu { - margin-top: 40px; - border-color: #999; -} -.algolia-docsearch-footer { - border-color: #DDD; -} -.algolia-docsearch-suggestion--subcategory-column { - border-color: #DDD; -} -.algolia-docsearch-suggestion--category-header { - background-color: #00AFD1; -} -.algolia-docsearch-suggestion--highlight { - color: #008BA7; -} -.algolia-docsearch-suggestion--category-header .algolia-docsearch-suggestion--highlight { - background-color: #009DBC; -} -.aa-cursor .algolia-docsearch-suggestion--content { - color: #D44C70; -} -.aa-cursor .algolia-docsearch-suggestion { - background: #F5F5F5; -} - -.w3-sidenav a:not(.active):hover { - background: #CCC; - color: #000; -} - -.w3-sidenav a:hover, -.w3-sidenav .active { - background: #00AFD1; - color: #FFF; -} - -#search-menu { - position: fixed !important; - top: 10%; - left: 25%; -} - -.ad { - width: 130px; - position: fixed; - bottom: 8px; - right: 32px; - margin: 0; - font-size: 12px; -} - -.ad a { - color: #7F8C8D; -} - -#carbonads { - display: block; - overflow: hidden; - /*padding: 1em;*/ -} - -#carbonads span { - display: block; - overflow: hidden; -} - -.carbon-img { - display: block; - margin: 0 auto 1em; - text-align: center; -} - -.carbon-text { - display: block; - margin-bottom: 1em; - text-align: left; -} - -.carbon-poweredby { - display: block; - text-align: right; - font-size: .8em; -} - -@media (max-width: 600px) { - h1 { - font-size: 28px; - } - - h2 { - font-size: 24px; - } - - h3 { - font-size: 20px; - } - - h4 { - font-size: 16px; - } - - .ad { - position: relative; - width: 100%; - right: 0; - padding: 0 16px; - } - - #carbonads span { - position: relative; - display: block; - overflow: hidden; - } - - .carbon-img { - float: left; - margin-right: 1em; - } - - .carbon-img img { - display: block; - } - - .carbon-text { - display: block; - float: left; - max-width: calc(100% - 130px - 1em); - text-align: left; - } - - .carbon-poweredby { - position: absolute; - right: 0; - bottom: 0; - display: block; - font-size: .8em; - } -} - -a.support { - display: inline-block; - padding: 6px 16px; -} - -/* Notice*/ -.notice a { - color: inherit; - text-decoration: underline; -} -.notice a:hover, .notice a:focus { - color: inherit; - text-decoration: underline; -} diff --git a/website/static/styles/prism.css b/website/static/styles/prism.css deleted file mode 100644 index 645bbf81..00000000 --- a/website/static/styles/prism.css +++ /dev/null @@ -1,123 +0,0 @@ -/* http://prismjs.com/download.html?themes=prism-okaidia&languages=markup+css+clike+javascript+bash+go&plugins=file-highlight */ -/** - * okaidia theme for JavaScript, CSS and HTML - * Loosely based on Monokai textmate theme by http://www.monokai.nl/ - * @author ocodia - */ - -code[class*="language-"], -pre[class*="language-"] { - color: #f8f8f2; - background: none; - text-shadow: 0 1px rgba(0, 0, 0, 0.3); - font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; - text-align: left; - white-space: pre; - word-spacing: normal; - word-break: normal; - word-wrap: normal; - line-height: 1.5; - - -moz-tab-size: 4; - -o-tab-size: 4; - tab-size: 4; - - -webkit-hyphens: none; - -moz-hyphens: none; - -ms-hyphens: none; - hyphens: none; -} - -/* Code blocks */ -pre[class*="language-"] { - padding: 1em; - margin: .5em 0; - overflow: auto; - border-radius: 0.3em; -} - -:not(pre) > code[class*="language-"], -pre[class*="language-"] { - background: #272822; -} - -/* Inline code */ -:not(pre) > code[class*="language-"] { - padding: .1em; - border-radius: .3em; - white-space: normal; -} - -.token.comment, -.token.prolog, -.token.doctype, -.token.cdata { - color: slategray; -} - -.token.punctuation { - color: #f8f8f2; -} - -.namespace { - opacity: .7; -} - -.token.property, -.token.tag, -.token.constant, -.token.symbol, -.token.deleted { - color: #f92672; -} - -.token.boolean, -.token.number { - color: #ae81ff; -} - -.token.selector, -.token.attr-name, -.token.string, -.token.char, -.token.builtin, -.token.inserted { - color: #a6e22e; -} - -.token.operator, -.token.entity, -.token.url, -.language-css .token.string, -.style .token.string, -.token.variable { - color: #f8f8f2; -} - -.token.atrule, -.token.attr-value, -.token.function { - color: #e6db74; -} - -.token.keyword { - color: #66d9ef; -} - -.token.regex, -.token.important { - color: #fd971f; -} - -.token.important, -.token.bold { - font-weight: bold; -} -.token.italic { - font-style: italic; -} - -.token.entity { - cursor: help; -} -