Skip to content

Commit

Permalink
Move the CEPs into the learn section. (#222)
Browse files Browse the repository at this point in the history
Co-authored-by: jaimergp <[email protected]>
  • Loading branch information
jezdez and jaimergp authored Nov 7, 2024
1 parent e524256 commit 788a70d
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ node_modules/

# Populated at build time
/community/minutes/*.md
/community/ceps/*.md
/learn/ceps/*.md

# Misc
.DS_Store
Expand Down
12 changes: 6 additions & 6 deletions bin/populate-ceps
Original file line number Diff line number Diff line change
Expand Up @@ -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
16 changes: 1 addition & 15 deletions community/_sidebar.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,5 @@
"dirName": "minutes"
}
]
},
{
"type": "category",
"label": "CEPs",
"link": {
"type": "doc",
"id": "ceps"
},
"items": [
{
"type": "autogenerated",
"dirName": "ceps"
}
]
}
}
]
16 changes: 15 additions & 1 deletion learn/_sidebar.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
[
"faq"
"faq",
{
"type": "category",
"label": "CEPs",
"link": {
"type": "doc",
"id": "ceps"
},
"items": [
{
"type": "autogenerated",
"dirName": "ceps"
}
]
}
]
2 changes: 1 addition & 1 deletion community/ceps.mdx → learn/ceps.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit 788a70d

Please sign in to comment.