File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -27,15 +27,16 @@ jobs:
27
27
- name : Install jq
28
28
run : sudo apt-get install jq
29
29
30
- - name : Fetch search .json from docs site
31
- run : curl -O https://raw.githubusercontent.com/TuringLang/docs/gh-pages/search .json
32
-
33
- - name : Fix URLs in docs site search index
30
+ - name : Fetch search_original .json from docs site
31
+ run : curl -O https://raw.githubusercontent.com/TuringLang/docs/gh-pages/search_original .json
32
+
33
+ - name : Convert docs site search index URLs to relative URLs
34
34
run : |
35
- jq 'map(if .href then .href = "docs/" + .href else . end) |
36
- map(if .objectID then .objectID = "docs/" + .objectID else . end)' search.json > fixed_docs_search.json
35
+ jq 'map(
36
+ if .href then .href = "docs/" + .href else . end |
37
+ if .objectID then .objectID = "docs/" + .objectID else . end)' search_original.json > fixed_docs_search.json
37
38
38
- - name : Merge search indices
39
+ - name : Merge both search index
39
40
run : |
40
41
jq -s '.[0] + .[1]' _site/search_original.json fixed_docs_search.json > _site/search.json
41
42
You can’t perform that action at this time.
0 commit comments