File tree Expand file tree Collapse file tree 4 files changed +15
-0
lines changed Expand file tree Collapse file tree 4 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ content/commands/*
8
8
! content /commands /_index.md
9
9
content /topics /*
10
10
! content /topics /_index.md
11
+ content /clients /*
12
+ ! content /clients /_index.md
11
13
_site
12
14
_data /groups.json
13
15
_data /resp2_replies.json
Original file line number Diff line number Diff line change @@ -73,3 +73,11 @@ if [ ! -L build-clients -o "$(readlink build-clients)" != "$2" ]; then
73
73
fi
74
74
echo " Symlink to clients has been created at ./build-clients "
75
75
76
+ # Check if the clients directory exists and set the `clients_built` flag in frontmatter
77
+ if [ -d " build-clients" ]; then
78
+ # Set `clients_built = true` if the build-clients directory exists
79
+ sed -i ' s/clients_built = false/clients_built = true/' content/clients/_index.md
80
+ fi
81
+
82
+ echo " Updated clients_built flag in frontmatter."
83
+
Original file line number Diff line number Diff line change 2
2
title = " Client Libraries"
3
3
template = " client-list.html"
4
4
[extra ]
5
+ clients_built = true
5
6
recommended_clients_paths = [
6
7
" /python/valkey-GLIDE.json" ,
7
8
" /python/valkey-py.json" ,
Original file line number Diff line number Diff line change 2
2
{% import "macros/docs.html" as docs %}
3
3
4
4
{% block main_content %}
5
+ {% if not section.extra.clients_built %}
6
+ < strong > Clients page not found.</ strong > You likely need to build the client page. See "Building additional content" in README.md file.
7
+ {% else %}
5
8
< div class ="markdown-content ">
6
9
{% set content_parts = section.content | split(pat="<!-- split --> ") %}
7
10
{{ content_parts[0] | markdown | safe }}
@@ -66,4 +69,5 @@ <h3 id="{{ client.name | slugify }}">{{ client.name }}</h3>
66
69
{% set client_fields = section.extra.client_fields %}
67
70
{% include "client-feature-table.html" %}
68
71
</ div >
72
+ {% endif %}
69
73
{% endblock main_content %}
You can’t perform that action at this time.
0 commit comments