Skip to content

Adding Ebook Counter to Homepage - #88

Open
JohannesSeikowsky wants to merge 1 commit into
masterfrom
ebook-count
Open

Adding Ebook Counter to Homepage#88
JohannesSeikowsky wants to merge 1 commit into
masterfrom
ebook-count

Conversation

@JohannesSeikowsky

@JohannesSeikowsky JohannesSeikowsky commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Adds a wget in all three jekyll build scripts to fetch autocat3's new "/ebook_count/" endpoint into "_includes/book_count.html". Sister PR for: gutenbergtools/autocat3#244 and gutenbergtools/gutenbergsite#314

@JohannesSeikowsky JohannesSeikowsky changed the title Fetch ebook count for homepage build Adding Ebook Counter to Homepage Jul 4, 2026
@eshellman

Copy link
Copy Markdown
Contributor

cron jobs are currently added by hand; running scripts are added to repo after the fact. Admittedly not an optimal practice.

Comment thread scripts/cron-jekyll.sh
# This is going to appdev:
/usr/bin/wget --quiet -O ${BUILD}/_includes/latest_covers.html "http://[2610:28:3090:3001:0:dead:cafe:100]:8000/covers/medium/latest/10"
/usr/bin/wget --quiet -O ${BUILD}/_includes/popular_covers.html "http://[2610:28:3090:3001:0:dead:cafe:100]:8000/covers/medium/popular/10"
/usr/bin/wget --quiet -O ${BUILD}/_includes/book_count.html "http://[2610:28:3090:3001:0:dead:cafe:100]:8000/ebook_count/"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

file name shanged to "ebook_count"
it's not html, we should not have multiple names for the same thing

Suggested change
/usr/bin/wget --quiet -O ${BUILD}/_includes/book_count.html "http://[2610:28:3090:3001:0:dead:cafe:100]:8000/ebook_count/"
/usr/bin/wget --quiet -O ${BUILD}/_includes/ebook_count "http://[2610:28:3090:3001:0:dead:cafe:100]:8000/ebook_count/"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants