Skip to content

Commit

Permalink
Added highlightjs support
Browse files Browse the repository at this point in the history
  • Loading branch information
Hecatron committed Aug 23, 2020
1 parent 112524c commit c59b0a6
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 1 deletion.
36 changes: 36 additions & 0 deletions docs/Tools_Equipment/CNC/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
# Ox CNC

Test

``` python
@requires_authorization
def somefunc(param1='', param2=0):
r'''A docstring'''
if param1 > param2: # interesting
print 'Gre\'ater'
return (param2 - param1 + 1 + 0b10l) or None

class SomeClass:
pass

>>> message = '''interpreter
... prompt'''
```


``` python
for page in pages:
page.read()
```

``` csharp
using System;

namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
```
1 change: 1 addition & 0 deletions docs/js/hljs/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hljs.initHighlighting()
13 changes: 12 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,19 @@ site_url: https://docs.hacman.org.uk
repo_url: https://github.com/HACManchester/documentation/
theme:
name: material
custom_dir: 'custom/theme'
custom_dir: 'theme'
plugins:
- search
- mdoctag
- emailprotect
markdown_extensions:
- pymdownx.highlight:
use_pygments: false

extra_javascript:
# HighlightJS for coloring in code blocks - https://highlightjs.org/static/demo/
- https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.2/highlight.min.js
- js/hljs/config.js
extra_css:
# HighlightJS for coloring in code blocks - https://highlightjs.org/static/demo/
- https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.2/styles/atelier-dune-light.min.css
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c59b0a6

Please sign in to comment.