File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515# Managed by documentation/Makefile
16+ documentation /content /en /examples /
1617documentation /content /en /function-catalog
1718documentation /layouts /shortcodes /listexamples.html
1819documentation /layouts /shortcodes /listfunctions.html
Original file line number Diff line number Diff line change @@ -6,15 +6,20 @@ TARGET_HUGO_DIR = content/en/function-catalog/
66LAYOUT_SUBDIR = documentation/layouts/shortcodes/
77TARGET_HUGO_LAYOUT_DIR = layouts/shortcodes/
88
9+ EXAMPLES_SUBDIR = examples/
10+ TARGET_HUGO_EXAMPLES_DIR = content/en/examples/
11+
912.PHONY : serve production-build preview-build fetch-external-docs
1013
1114fetch-external-docs :
1215 @echo " --- Starting content synchronization from $( EXTERNAL_REPO) ---"
1316 rm -rf $(CLONE_DIR )
1417 git clone --depth 1 $(EXTERNAL_REPO ) $(CLONE_DIR )
1518 mkdir -p $(TARGET_HUGO_DIR )
16- cp -r $(CLONE_DIR ) /$(CONTENT_SUBDIR ) /* $(TARGET_HUGO_DIR )
17- cp -r $(CLONE_DIR ) /$(LAYOUT_SUBDIR ) /* $(TARGET_HUGO_LAYOUT_DIR )
19+ mkdir -p $(TARGET_HUGO_EXAMPLES_DIR )
20+ cp -r $(CLONE_DIR ) /$(CONTENT_SUBDIR ) * $(TARGET_HUGO_DIR )
21+ cp -r $(CLONE_DIR ) /$(LAYOUT_SUBDIR ) * $(TARGET_HUGO_LAYOUT_DIR )
22+ cp -r $(CLONE_DIR ) /$(EXAMPLES_SUBDIR ) * $(TARGET_HUGO_EXAMPLES_DIR )
1823 rm -rf $(CLONE_DIR )
1924 @echo " --- External documentation ready in $( TARGET_HUGO_DIR) ---"
2025
You can’t perform that action at this time.
0 commit comments