You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,20 @@ This theme contains the following custom shorcodes:
52
52
53
53
- openapi.html - Render an OpenAPI spec using ReDoc.
54
54
- metrics.html - Imports data from a JSON file and presents it in table format.
55
+
- ghcode.html - Rendering code from github
56
+
57
+
#### `ghcode` example
58
+
To render code directly from github at build time, you can use the `ghcode` shortcode.
59
+
60
+
_Param 1_ - The url for the `raw` github file you want to render
61
+
62
+
_Param 2_ - Options for highlighting following Hugo's [Highlight shortcode](https://gohugo.io/content-management/syntax-highlighting/#highlight-shortcode)
0 commit comments