Skip to content

Commit

Permalink
Hugo fiddling and proxy docs
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
jmacdotorg authored and dormando committed Sep 29, 2024
1 parent 4695edb commit 7400c0b
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/resources
.DS_Store
*.swp
.hugo_build.lock
6 changes: 6 additions & 0 deletions hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@ menu:
main:
- name: Home
url: "https://www.memcached.org/"

# Render HTML elements within Markdown source files
markup:
goldmark:
renderer:
unsafe: true
1 change: 1 addition & 0 deletions layouts/shortcodes/legacy_proxy_base_path.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/features/proxy/
1 change: 1 addition & 0 deletions layouts/shortcodes/proxy_base_path.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/features/proxy2/
1 change: 1 addition & 0 deletions layouts/shortcodes/var.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<var>{{.Inner}}</var>
13 changes: 13 additions & 0 deletions themes/hextra/assets/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* Custom CSS for Memcached documentation */

/*******/
/* Command-line commands: Insert a non-copyable "$ " before each commmand. */
/* This needs two selectors to do right. */
/*******/
code.language-console>span:not(:empty):has(span:empty):before {
content: "$ ";
}

code.language-console>span:not(:has(>span>span)):before {
content: "$ ";
}

0 comments on commit 7400c0b

Please sign in to comment.