Skip to content

Commit 7400c0b

Browse files
jmacdotorgdormando
authored andcommitted
Hugo fiddling and proxy docs
* Add .hugo_build.lcok to .gitignore. * Update hugo.yaml to allow HTML elements within Markdown source files. * Add a custom shortcode for wrapping placeholders in code snippets in <var> tags. * Add two shortcodes to store the URL paths to the new and legacy proxy documentation. * Add custom CSS for putting a non-copyable '$ ' prompt before console-command illustrations. * Add documentation pages for proxy usage
1 parent 4695edb commit 7400c0b

File tree

6 files changed

+23
-0
lines changed

6 files changed

+23
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/resources
33
.DS_Store
44
*.swp
5+
.hugo_build.lock

hugo.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ menu:
66
main:
77
- name: Home
88
url: "https://www.memcached.org/"
9+
10+
# Render HTML elements within Markdown source files
11+
markup:
12+
goldmark:
13+
renderer:
14+
unsafe: true
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/features/proxy/
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/features/proxy2/

layouts/shortcodes/var.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<var>{{.Inner}}</var>

themes/hextra/assets/css/custom.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* Custom CSS for Memcached documentation */
2+
3+
/*******/
4+
/* Command-line commands: Insert a non-copyable "$ " before each commmand. */
5+
/* This needs two selectors to do right. */
6+
/*******/
7+
code.language-console>span:not(:empty):has(span:empty):before {
8+
content: "$ ";
9+
}
10+
11+
code.language-console>span:not(:has(>span>span)):before {
12+
content: "$ ";
13+
}

0 commit comments

Comments
 (0)