Skip to content

Commit

Permalink
change back to relative
Browse files Browse the repository at this point in the history
  • Loading branch information
nntrn committed Oct 2, 2024
1 parent 99147ce commit fdd0815
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ jobs:
with:
ref: ${{ inputs.ref || github.event.client_payload.ref || env.GITHUB_REF_NAME }}
- run: ./scripts/build-data.sh --remote
# - run: head -n 20 ./_includes/activity.txt
- run: |
jq -r -L scripts --slurpfile books _data/books.json 'include "annotations"; stats_history_text' _data/history.json > ./_includes/activity.txt
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
Expand Down
6 changes: 3 additions & 3 deletions _layouts/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
{%- assign info = site.data.books | where: 'assetid', page.assetid |first -%}

{
"assetid": "{{info.assetid}}",
"title": "{{info.title}}",
"author": "{{info.author}}",
"assetid": {{info.assetid}},
"title": {{info.title|jsonify}},
"author": {{info.author|jsonify}},
"genre": "{{info.tags}}",
"url": "{{info.url}}",
"activity": {{activity|jsonify}}
Expand Down
8 changes: 5 additions & 3 deletions scripts/build-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,11 @@ else
jq_from_activity stats_history >$DATADIR/history.json &
wait %3

_log "* Creating _pages/activity.txt"
# _log "* Creating _includes/activity.txt"

jq -r -L $_scriptdir --slurpfile books $DATADIR/books.json 'include "annotations"; stats_history_text' \
$DATADIR/history.json >$OUTDIR/_includes/activity.txt
# jq -r -L $_scriptdir --slurpfile books $DATADIR/books.json 'include "annotations"; stats_history_text' \
# $DATADIR/history.json >$OUTDIR/_pages/activity.txt
#
# cat $OUTDIR/_pages/activity.txt >$OUTDIR/_includes/activity.txt

fi

0 comments on commit fdd0815

Please sign in to comment.