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

Render conda-forge.yml docs from conda-smithy's JSON schema #2095

Merged
merged 13 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from 12 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
11 changes: 11 additions & 0 deletions .ci_scripts/update_docs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,20 @@ if [[ "$CI" == "1" ]]; then
git checkout -b new_site_content
fi

# Fetch conda-smithy JSON schema
mkdir -p "$BASE_DIR/static/schema/"
curl -sL \
-o "$BASE_DIR/static/schema/conda-forge.schema.json" \
"https://raw.githubusercontent.com/viniciusdc/conda-smithy/pydantic-schema-cf-yaml/conda_smithy/data/conda-forge.json"
# TODO^: replace with the real URL once the PR is merged
jaimergp marked this conversation as resolved.
Show resolved Hide resolved

# Render the templated content (e.g. CFEPs, core.csv, etc)
python "$BASE_DIR/.ci_scripts/render_templated_content.py"

if [[ ${1:-} == "pre-build-only" ]]; then
exit 0
fi

# Ensure that all docs/ items are in the sidebar
python "$BASE_DIR/.ci_scripts/check_sidebars.py"

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ sphinx/newsfeed/demo/_build
# Autogenerated at build time
/docs/orga/cfep-index.md
/docs/orga/governance.md
/static/schema/conda-forge.schema.json
/community/cfep-index.md
/community/governance.md

Expand Down
Loading