Skip to content

Commit

Permalink
auto-update context
Browse files Browse the repository at this point in the history
  • Loading branch information
hamelsmu committed Sep 13, 2024
1 parent 3b9f27f commit 232ba9a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion nbs/_quarto.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
project:
type: website
pre-render:
- pysym2md --output_file apilist.txt fastcore # https://github.com/AnswerDotAI/pysymbol-llm
- pysym2md --output_file apilist.txt fastcore
post-render:
- ./update_ctx.sh
resources:
- "*.txt"
preview:
Expand Down
4 changes: 4 additions & 0 deletions nbs/update_ctx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
llms_txt2ctx llms.txt --optional true > ${QUARTO_PROJECT_OUTPUT_DIR}/llms-ctx-full.txt
llms_txt2ctx llms.txt > ${QUARTO_PROJECT_OUTPUT_DIR}/llms-ctx.txt

3 changes: 0 additions & 3 deletions tools/update.sh

This file was deleted.

0 comments on commit 232ba9a

Please sign in to comment.