moviewyrm/bookwyrm
Joel Bradshaw 284eb620dd Add Source Han font for preview generation to Docker image
Include the license and a README explaining things in the repo itself.

Depending on an external source for this is intended to be temporary,
the goal is to have a Bookywrm-managed source for these, but this should
be stable enough for now.

We build it into the Dockerfile to make it available without adding it
to the git repo itself, because git history is forever and we don't want
to bake large files into the history.

Theoretically it would make sense to gate this download on the
ENABLE_PREVIEW_IMAGES environment variable, but ENV variables aren't
available at Docker image build time (for sensible reasons), so we just
unconditonally download it.

This does mean users will ultimately download it anyway, but the benefit
to doing this over adding it to the git history is that if we switch
fonts, or update this one, or change strategies altogether, this version
of the font will no longer have to be downloaded.

Additionally, the font won't be downloaded until the application is
actually built, which involves a bunch of other downloading (of Docker
images and the like), so it's a reasonable time to do it.
2022-01-24 23:16:14 -08:00
..
activitypub Python formatting 2022-01-12 17:11:24 -08:00
connectors Make search timeouts configurable 2022-01-07 07:42:05 -08:00
importers Fixes error when librarything csv is missing isbn 2021-12-28 15:27:35 -08:00
management/commands Merge pull request #1527 from bookwyrm-social/book-file-links 2022-01-13 11:10:05 -08:00
middleware Adds IP blocklist views 2021-09-17 13:04:10 -07:00
migrations Set book availability 2022-01-17 09:22:40 -08:00
models Activate pending users when email confirmation is disabled 2022-01-20 15:58:00 -08:00
static Add Source Han font for preview generation to Docker image 2022-01-24 23:16:14 -08:00
templates Fixes display toggle for about page superlatives 2022-01-20 17:00:15 -08:00
templatetags Updates ratings and book display tests 2022-01-18 12:52:21 -08:00
tests Merge pull request #1854 from bookwyrm-social/pending-users 2022-01-20 17:02:28 -08:00
utils Adjusts cache get_or_set to work with tests 2022-01-09 12:16:01 -08:00
views Show only recent results in rss feed view 2022-01-20 16:33:24 -08:00
__init__.py rename main code directory 2020-09-17 13:30:54 -07:00
activitystreams.py Fixes account create tasks 2022-01-04 14:17:14 -08:00
admin.py Adds model for instance admin announcements 2021-05-19 14:00:46 -07:00
book_search.py title author search already working correctly with return first 2021-11-12 13:59:54 -08:00
context_processors.py Adds javascript cache value to templates 2021-09-10 10:57:16 -07:00
emailing.py Configure email sender from .env file 2022-01-05 17:35:42 -08:00
forms.py Fixes bug in verifying readthrough dates 2022-01-17 19:46:48 -08:00
imagegenerators.py Fix lint 2021-06-19 19:44:14 +02:00
lists_stream.py Fixes deletion of lists 2022-01-07 13:30:11 -08:00
preview_images.py Add an AttributeError exception for CI tests 2021-12-04 19:59:45 +01:00
redis_store.py use REDIS_x_DB_INDEX instead of REDIS_x_DB, add optional setting to example env file 2022-01-13 09:16:16 -07:00
sanitize_html.py Updating string format syntax part 1 2021-09-17 21:39:18 -07:00
settings.py Merge pull request #1802 from cincodenada/configurable-logging 2022-01-18 07:39:43 -08:00
signatures.py Updating string format syntax part 1 2021-09-17 21:39:18 -07:00
status.py New version of black, new whitespace 2021-04-26 09:15:42 -07:00
storage_backends.py Fix R1725: Consider using Python 3 style super() without arguments 2021-08-04 11:58:53 +02:00
suggested_users.py Merge branch 'main' into list-not-loading 2022-01-07 10:32:17 -08:00
tasks.py Adds enum for queue names 2021-11-11 19:10:22 -08:00
thumbnail_generation.py Update thumbnail_generation.py 2022-01-08 17:54:03 +01:00
urls.py Edit book availability 2022-01-17 10:00:12 -08:00
wsgi.py Updates migrations 2020-09-21 08:10:37 -07:00