From 406f5daebfdac0161f718f182555f79f6864fc90 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Tue, 2 Nov 2021 11:10:13 -0400 Subject: [PATCH] Move spec to be below /reference --- .gitignore | 6 +++--- content/en/docs/reference/_index.md | 5 +++++ content/en/docs/{ => reference}/specification/_index.md | 2 +- scripts/cp-spec-pages.sh | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 content/en/docs/reference/_index.md rename content/en/docs/{ => reference}/specification/_index.md (98%) diff --git a/.gitignore b/.gitignore index b57217bcf2a7..e01c73c60fd5 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,6 @@ assets/jsconfig.json *.iml # Generated content -/content/en/docs/specification/**/*.md -/content/en/docs/specification/**/*.png -!/content/en/docs/specification/_index.md +/content/en/docs/reference/specification/**/*.md +/content/en/docs/reference/specification/**/*.png +!/content/en/docs/reference/specification/_index.md diff --git a/content/en/docs/reference/_index.md b/content/en/docs/reference/_index.md new file mode 100644 index 000000000000..87abd2077c70 --- /dev/null +++ b/content/en/docs/reference/_index.md @@ -0,0 +1,5 @@ +--- +title: Reference +weight: 100 +description: Reference material +--- diff --git a/content/en/docs/specification/_index.md b/content/en/docs/reference/specification/_index.md similarity index 98% rename from content/en/docs/specification/_index.md rename to content/en/docs/reference/specification/_index.md index eef2d29a4250..c303031bfd90 100644 --- a/content/en/docs/specification/_index.md +++ b/content/en/docs/reference/specification/_index.md @@ -4,7 +4,7 @@ no_list: true cascade: github_repo: &repo https://github.com/open-telemetry/opentelemetry-specification github_subdir: specification - path_base_for_github_subdir: content/en/docs/specification/ + path_base_for_github_subdir: content/en/docs/reference/specification/ github_project_repo: *repo # Keep global values for this page. TODO: eliminate these overrides by moving the page into the spec repo. github_repo: &repo https://github.com/open-telemetry/opentelemetry.io diff --git a/scripts/cp-spec-pages.sh b/scripts/cp-spec-pages.sh index 8f8804ebad05..5f5cc2b6d56c 100755 --- a/scripts/cp-spec-pages.sh +++ b/scripts/cp-spec-pages.sh @@ -2,7 +2,7 @@ BASE_DIR=$(dirname $0) SPEC=content-modules/opentelemetry-specification/specification -DEST=content/en/docs/specification +DEST=content/en/docs/reference/specification rm -Rf $DEST/[^_]*