Skip to content

Commit 71447f6

Browse files
committed
added examples
Signed-off-by: lapentafd <[email protected]>
1 parent a3d4ae9 commit 71447f6

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414

1515
# Managed by documentation/Makefile
16+
documentation/content/en/examples/
1617
documentation/content/en/function-catalog
1718
documentation/layouts/shortcodes/listexamples.html
1819
documentation/layouts/shortcodes/listfunctions.html

documentation/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,20 @@ TARGET_HUGO_DIR = content/en/function-catalog/
66
LAYOUT_SUBDIR = documentation/layouts/shortcodes/
77
TARGET_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

1114
fetch-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

0 commit comments

Comments
 (0)