Kubernetes 1.8 reference docs (#5632)
* Kubernetes 1.8 reference docs * Kubectl reference docs for 1.8 * Update side bar with 1.8 kubectl and api ref docs links
This commit is contained in:
committed by
Steve Perry
parent
271bd0f163
commit
147f04ca76
+37
@@ -0,0 +1,37 @@
|
||||
module.exports = function(hljs) {
|
||||
return {
|
||||
contains: [
|
||||
// IP
|
||||
{
|
||||
className: 'number',
|
||||
begin: '\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b'
|
||||
},
|
||||
// Other numbers
|
||||
{
|
||||
className: 'number',
|
||||
begin: '\\b\\d+\\b',
|
||||
relevance: 0
|
||||
},
|
||||
// Requests
|
||||
{
|
||||
className: 'string',
|
||||
begin: '"(GET|POST|HEAD|PUT|DELETE|CONNECT|OPTIONS|PATCH|TRACE)', end: '"',
|
||||
keywords: 'GET POST HEAD PUT DELETE CONNECT OPTIONS PATCH TRACE',
|
||||
illegal: '\\n',
|
||||
relevance: 10
|
||||
},
|
||||
// Dates
|
||||
{
|
||||
className: 'string',
|
||||
begin: /\[/, end: /\]/,
|
||||
illegal: '\\n'
|
||||
},
|
||||
// Strings
|
||||
{
|
||||
className: 'string',
|
||||
begin: '"', end: '"',
|
||||
illegal: '\\n'
|
||||
}
|
||||
]
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user