Skip to content

Commit acee70f

Browse files
committed
Merge branch 'main' into DOC-5767
2 parents cd86da3 + 2665532 commit acee70f

File tree

463 files changed

+111077
-1843
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

463 files changed

+111077
-1843
lines changed

.github/workflows/redisvl_docs_sync.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ jobs:
4040

4141
- name: 'Install deps'
4242
run: |
43-
pip3 install -U sphinx
44-
pip3 install sphinx_design sphinx_copybutton nbsphinx sphinx_favicon myst_nb sphinx_markdown_builder==0.6.8 jupyter
43+
pip3 install sphinx sphinx_design sphinx_copybutton nbsphinx==0.9.7 sphinx_favicon myst_nb sphinx_markdown_builder==0.6.8 jupyter
4544
4645
- name: 'Fetch redisvl repo'
4746
run: |
@@ -338,4 +337,4 @@ jobs:
338337
--head "$branch" \
339338
--base "main"
340339
fi
341-
fi
340+
fi

assets/css/index.css

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ section.prose {
9494
padding: 1rem;
9595
}
9696

97+
.prose pre.decision-tree-source {
98+
display: none;
99+
}
100+
97101
.prose pre > code {
98102
@apply bg-none font-monogeist;
99103
}
@@ -1074,7 +1078,22 @@ a[href*="#no-click"], img[src*="#no-click"] {
10741078
background-color: #ddd;
10751079
}
10761080

1077-
/* Redis AI Agent Builder Styles */
1081+
/* Copy button wrapper positioning */
1082+
.copy-button-wrapper {
1083+
position: absolute;
1084+
top: 24px;
1085+
right: 10px;
1086+
z-index: 1;
1087+
display: flex;
1088+
align-items: center;
1089+
gap: 6px;
1090+
}
1091+
1092+
.copy-button-wrapper.expand-content-wrapper {
1093+
right: 20px;
1094+
}
1095+
1096+
/* AI Agent Builder Styles */
10781097

10791098
.agent-builder-container {
10801099
@apply max-w-4xl mx-auto p-6 bg-white rounded-lg border border-redis-pen-800 shadow-lg;
@@ -1225,6 +1244,51 @@ a[href*="#no-click"], img[src*="#no-click"] {
12251244
}
12261245
}
12271246

1247+
/* Fix copy button overlap on smaller screens */
1248+
@media (max-width: 768px) {
1249+
/* Ensure code blocks have enough padding on the right to accommodate copy button */
1250+
.highlight {
1251+
padding-right: 60px !important;
1252+
}
1253+
1254+
/* Adjust copy button wrapper positioning for smaller screens */
1255+
.copy-button-wrapper {
1256+
right: 8px !important;
1257+
top: 8px !important;
1258+
}
1259+
1260+
.copy-button-wrapper.expand-content-wrapper {
1261+
right: 12px !important;
1262+
}
1263+
1264+
/* Make copy buttons slightly smaller on mobile */
1265+
.copy-button-wrapper .clipboard-button,
1266+
.copy-button-wrapper .download-yaml-btn {
1267+
width: 28px !important;
1268+
height: 28px !important;
1269+
padding: 2px !important;
1270+
}
1271+
}
1272+
1273+
@media (max-width: 480px) {
1274+
/* Even more padding for very small screens */
1275+
.highlight {
1276+
padding-right: 70px !important;
1277+
}
1278+
1279+
/* Stack buttons vertically on very small screens if both copy and download are present */
1280+
.copy-button-wrapper {
1281+
flex-direction: column !important;
1282+
gap: 4px !important;
1283+
right: 4px !important;
1284+
top: 4px !important;
1285+
}
1286+
1287+
.copy-button-wrapper.expand-content-wrapper {
1288+
right: 8px !important;
1289+
}
1290+
}
1291+
12281292
/* Form Groups */
12291293
.form-group {
12301294
@apply space-y-2;

build/components/example.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
'java-async': '//',
2929
'java-reactive': '//',
3030
'go': '//',
31+
'c': '//',
3132
'c#': '//',
3233
'c#-sync': '//',
3334
'c#-async': '//',

build/components/syntax.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ class ArgumentType(Enum):
2020
BLOCK = 'block'
2121
PURE_TOKEN = 'pure-token'
2222
COMMAND = 'command'
23+
FUNCTION = 'function'
24+
INDEX = 'index'
25+
KEYNUM = 'keynum'
26+
KEYWORD = 'keyword'
27+
RANGE = 'range'
28+
UNKNOWN = 'unknown'
2329

2430

2531
class Argument:
@@ -28,8 +34,8 @@ def __init__(self, data: dict = {}, level: int = 0, max_width: int = 640) -> Non
2834
self._stack = []
2935
self._level: int = level
3036
self._max_width: int = max_width
31-
self._name: str = data['name']
32-
self._type = ArgumentType(data['type'])
37+
self._name: str = data.get('name', data.get('token', 'unnamed'))
38+
self._type = ArgumentType(data.get('type', 'string'))
3339
self._optional: bool = data.get('optional', False)
3440
self._multiple: bool = data.get('multiple', False)
3541
self._multiple_token: bool = data.get('multiple_token', False)
@@ -49,6 +55,11 @@ def syntax(self, **kwargs) -> str:
4955
args += ' '.join([arg.syntax() for arg in self._arguments])
5056
elif self._type == ArgumentType.ONEOF:
5157
args += f' | '.join([arg.syntax() for arg in self._arguments])
58+
elif self._type == ArgumentType.FUNCTION:
59+
# Functions should display their token/name, not expand nested arguments
60+
args += self._display
61+
if show_types:
62+
args += f':{self._type.value}'
5263
elif self._type != ArgumentType.PURE_TOKEN:
5364
args += self._display
5465
if show_types:

0 commit comments

Comments
 (0)