chatbot / scripts /nbdev_readme_patch_hface.sh
Evan Lesmez
Cleanup notebooks to be nbdev_test friendly
5f3a430
raw
history blame
436 Bytes
#!/bin/bash
# Run from root dir
nbdev_readme
yaml_file="hface.yaml"
readme_file="README.md"
# Read the content of the YAML file
yaml_content=$(cat "$yaml_file")
# Read the content of the README file
readme_content=$(cat "$readme_file")
# Combine the YAML content and README content
combined_content="$yaml_content\n$readme_content"
# Overwrite the README file with the combined content
echo -e "$combined_content" > "$readme_file"