Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move the CEPs into the learn section. #222

Merged
merged 4 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading