|
| 1 | +#!/bin/bash |
| 2 | + |
| 3 | +# Exit on any error |
| 4 | +set -e |
| 5 | +export OPENAI_TEMPERATURE=0.7 |
| 6 | +rm -rf docs/* |
| 7 | +rm -rf workspace/download/* |
| 8 | + |
| 9 | +# rename files |
| 10 | +python .github/scripts/file/rename.py |
| 11 | + |
| 12 | +echo "Files renamed successfully!" |
| 13 | + |
| 14 | +# detect entry |
| 15 | +python .github/scripts/config/hierarchy/detect_entry.py |
| 16 | + |
| 17 | +echo "Entry detected successfully!" |
| 18 | + |
| 19 | +# generate directory meta |
| 20 | +python .github/scripts/ai/archive/gen_dir_meta.py |
| 21 | + |
| 22 | +echo "Directory meta generated successfully!" |
| 23 | + |
| 24 | +# make sure the global catalog is up to date |
| 25 | +python .github/scripts/others/catalog.py |
| 26 | + |
| 27 | +echo "Global catalog generated successfully!" |
| 28 | + |
| 29 | +# generate md5 list |
| 30 | +python .github/scripts/others/get_md5_list.py |
| 31 | + |
| 32 | +echo "MD5 list generated successfully!" |
| 33 | + |
| 34 | +# generate page |
| 35 | +python .github/scripts/page/gen_page.py |
| 36 | + |
| 37 | +echo "Page generated successfully!" |
| 38 | + |
| 39 | +# generate file meta |
| 40 | +python .github/scripts/ai/archive/gen_file_meta.py |
| 41 | +# echo "File meta generation skipped!" |
| 42 | +echo "File meta generated successfully!" |
| 43 | + |
| 44 | +# add metadata to page if not exists, such as link and archived date |
| 45 | +python .github/scripts/file/add_config.py |
| 46 | + |
| 47 | +echo "Metadata added successfully!" |
| 48 | + |
| 49 | +# Generate table of contents |
| 50 | +python .github/scripts/toc/her_toc.py |
| 51 | + |
| 52 | +echo "Table of contents generated successfully!" |
| 53 | + |
| 54 | +# temporially workaround? |
| 55 | +python .github/scripts/file/add_config_from_page.py |
| 56 | +# why first time not successful? |
| 57 | + |
| 58 | +python .github/scripts/file/gen_search_index.py |
| 59 | +python .github/scripts/file/analysis_search_index.py |
| 60 | + |
| 61 | +echo "Search index generated successfully!" |
0 commit comments