-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the ability to pull in docs from
valkey-doc
(#22)
* adds support for pulling in valkey-docs Signed-off-by: Kyle J. Davis <[email protected]> * one more change to layout Signed-off-by: Kyle J. Davis <[email protected]> --------- Signed-off-by: Kyle J. Davis <[email protected]> (cherry picked from commit 19d2253)
- Loading branch information
1 parent
f3eb435
commit 1e1c257
Showing
6 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ _site | |
vendor | ||
.DS_Store | ||
/_data/commands/ | ||
/_includes/commands/ | ||
/_includes/commands/ | ||
/_includes/docs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../_submodules/valkey-doc/docs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
layout: default | ||
--- | ||
{%- assign primary_title = page.primary_title -%} | ||
{%- comment -%} | ||
This template pulls in the file from `source` in the front matter. | ||
|
||
It detects if the script starts with front matter (delimited by `---`) by splitting and looking for the delimiter at the start of the file. | ||
If the delimter is detected at the top of the file, it skips the the 3rd (zero based: 2) element and iterates over the remain sections. | ||
If there delmiter is not detected (no front matter) it swallows the the whole file and markdownify's it. | ||
|
||
{%- endcomment -%} | ||
{%- capture md -%}{% include {{ page.source }} %}{%- endcapture -%} | ||
{%- assign stripped_front_matter = md | split: "---" -%} | ||
{%- include page_title.html -%} | ||
<div class="width-limiter"> | ||
<main class="container"> | ||
{%- if stripped_front_matter[0].size == 0 -%} | ||
{%- for item in stripped_front_matter offset:2 -%} | ||
{{ item | markdownify }} | ||
{%- if forloop.last == false -%} | ||
<hr /> | ||
{%- endif -%} | ||
{%- endfor -%} | ||
{%- else -%} | ||
{{ md | markdownify }} | ||
{%- endif -%} | ||
</main> | ||
</div> |
Submodule valkey-doc
updated
5 files
+129 −129 | docs/connect/cli.md | |
+43 −43 | docs/management/debugging.md | |
+66 −113 | docs/management/persistence.md | |
+49 −68 | docs/management/security/acl.md | |
+14 −20 | docs/manual/keyspace-notifications.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
layout: doc-import | ||
primary_title: Persistence | ||
source: "/docs/management/persistence.md" | ||
--- |