chore: add gitignore for assets

see comment in file for more context
This commit is contained in:
Rodney, Tiara 2025-03-23 20:08:07 +01:00
parent fe411096be
commit 561e8b4abc
No known key found for this signature in database
GPG key ID: 5CD8EC1D46106723

20
src/sphinx_theme_ref/assets/.gitignore vendored Normal file
View file

@ -0,0 +1,20 @@
# generated by Tiara's HTML Theming Reference Implementation
#
# this .gitignore serves the purpose of allowing wrapping projects, that
# generate this project's assets dynamically, not having to worry about
# auxiliary debugging assets polution. The file is supposed to be copied by
# webpack into the output directory, so the globbing patterns shouldn't match
# the current directory. That's why it's called `gitignore` instead of
# `.gitignore` so that it isn't actually being picked up by git. webpack should
# rewrite the basename.
#
# Depending on your level of paranoia towards breaking changes in dependencies
# with no access to working versions, you can either choose to ignore the entire
# directory and generate HTML theme assets just-in-time, or commit them as
# static assets. I'm running registry proxies as pull-through mirrors locally,
# that I back up regularly, to keep my paranoia at bay. That way, I can.just
# gitignore the directory and generate all assets dynamically.
*
!/.gitignore
*.ts
*.map