From 788a70d5b93d8afa47a1489f5c9c9918dc0c4987 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Thu, 7 Nov 2024 18:39:06 +0100 Subject: [PATCH] Move the CEPs into the learn section. (#222) Co-authored-by: jaimergp --- .gitignore | 2 +- bin/populate-ceps | 12 ++++++------ community/_sidebar.json | 16 +--------------- learn/_sidebar.json | 16 +++++++++++++++- {community => learn}/ceps.mdx | 2 +- 5 files changed, 24 insertions(+), 24 deletions(-) rename {community => learn}/ceps.mdx (97%) diff --git a/.gitignore b/.gitignore index ff8b4a3c..9f8f1805 100644 --- a/.gitignore +++ b/.gitignore @@ -10,7 +10,7 @@ node_modules/ # Populated at build time /community/minutes/*.md -/community/ceps/*.md +/learn/ceps/*.md # Misc .DS_Store diff --git a/bin/populate-ceps b/bin/populate-ceps index 23008a14..d482f0e9 100755 --- a/bin/populate-ceps +++ b/bin/populate-ceps @@ -3,21 +3,21 @@ set -euo pipefail HERE=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) -rm "${HERE}/../community/ceps/*.md" || mkdir -p "${HERE}/../community/ceps/" +rm "${HERE}/../learn/ceps/*.md" || mkdir -p "${HERE}/../learn/ceps/" pushd $(mktemp -d) curl -L https://github.com/conda/ceps/archive/main.tar.gz -o ceps.tar.gz tar -xf ceps.tar.gz cd ceps-main for f in cep-*.md; do - echo "---" > "${HERE}/../community/ceps/$f" + echo "---" > "${HERE}/../learn/ceps/$f" if [[ $f == cep-0000.md ]]; then sidebar_label="CEP 0" else sidebar_label=$(echo "${f%.md}" | sed -re 's/cep-0+/CEP /') fi - echo "sidebar_label: ${sidebar_label}" >> "${HERE}/../community/ceps/$f" - echo "tags: [ceps]" >> "${HERE}/../community/ceps/$f" - echo "---" >> "${HERE}/../community/ceps/$f" - cat "$f" >> "${HERE}/../community/ceps/$f" + echo "sidebar_label: ${sidebar_label}" >> "${HERE}/../learn/ceps/$f" + echo "tags: [ceps]" >> "${HERE}/../learn/ceps/$f" + echo "---" >> "${HERE}/../learn/ceps/$f" + cat "$f" >> "${HERE}/../learn/ceps/$f" done popd diff --git a/community/_sidebar.json b/community/_sidebar.json index 6c3e0c6b..597b1c5d 100644 --- a/community/_sidebar.json +++ b/community/_sidebar.json @@ -14,19 +14,5 @@ "dirName": "minutes" } ] - }, - { - "type": "category", - "label": "CEPs", - "link": { - "type": "doc", - "id": "ceps" - }, - "items": [ - { - "type": "autogenerated", - "dirName": "ceps" - } - ] - } + } ] diff --git a/learn/_sidebar.json b/learn/_sidebar.json index a9dc191e..98aacb96 100644 --- a/learn/_sidebar.json +++ b/learn/_sidebar.json @@ -1,3 +1,17 @@ [ - "faq" + "faq", + { + "type": "category", + "label": "CEPs", + "link": { + "type": "doc", + "id": "ceps" + }, + "items": [ + { + "type": "autogenerated", + "dirName": "ceps" + } + ] + } ] diff --git a/community/ceps.mdx b/learn/ceps.mdx similarity index 97% rename from community/ceps.mdx rename to learn/ceps.mdx index 8d2c625d..ae500f62 100644 --- a/community/ceps.mdx +++ b/learn/ceps.mdx @@ -7,7 +7,7 @@ all major changes should be submitted as a **Conda Enhancement Proposal** (CEP). The list below is automatically populated from the [`conda/ceps`](https://github.com/conda/ceps) repository. -## Minutes +## CEPs import DocCardList from "@theme/DocCardList";