Skip to content

Commit d6279c9

Browse files
committed
add versions folder
1 parent a89411d commit d6279c9

File tree

863 files changed

+935
-934
lines changed

Some content is hidden

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

863 files changed

+935
-934
lines changed

docs-versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"8.2.1",
66
"8.1.1",
77
"8.0.1",
8-
"7.6.2",
8+
"7.7.0",
99
"6.5.0",
1010
"5.4.1"
1111
]

docs.json

Lines changed: 929 additions & 929 deletions
Large diffs are not rendered by default.

docs.json.update.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22
# Create docs.json with versioned navigation
33

4+
45
set -euo pipefail
56

67
# Read the versions and tabs
@@ -35,10 +36,10 @@ for version in $VERSIONS; do
3536
VERSIONS_JSON="$VERSIONS_JSON,"
3637
fi
3738

38-
# For other versions, add version prefix to paths and strip patch version
39+
# For other versions, add "version/" prefix to paths
3940
TABS_JSON=$(jq -c --arg version "$version" '
40-
map(.groups = (.groups | map(.pages = (.pages | map($version + "/" + .)))))
41-
' "$TABS_FILE")
41+
map(.groups = (.groups | map(.pages = (.pages | map("version/" + $version + "/" + .)))))
42+
' "$TABS_FILE")
4243
DISPLAY_VERSION=$(echo "$version" | sed 's/\.[0-9]*$//')
4344

4445
VERSIONS_JSON="$VERSIONS_JSON{\"version\":\"$DISPLAY_VERSION\",\"languages\":[{\"language\":\"en\",\"tabs\":$TABS_JSON}]}"

upstream

Submodule upstream updated 5712 files

0 commit comments

Comments
 (0)