Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix video embeds, columns, and resource link breakage #2410

Merged
merged 14 commits into from
Oct 16, 2024

Conversation

pushfoo
Copy link
Member

@pushfoo pushfoo commented Oct 12, 2024

TL;DR: Fixes most if not all of #2387 for development + add video embeds plus some copyable string literals

Changes

There are a whole bunch.

  1. Most of (if not all) of Changing development branch breaks resource embeds in doc #2387 is covered, but needs a thorough check before closing the issue
  2. When N < 3 for a file category, reduce the number of columns
  3. Add video embedding
  4. Add preformatted ":resources:sounds/jump3.wav" literals for sounds and videos
  5. Add format -> codec string tables to clean up sound and video embeds

Follow-up work

Switch to a copy-based approach for true long-term durability.

@pushfoo
Copy link
Member Author

pushfoo commented Oct 12, 2024

Per einarf's feedback:

  1. the optimal solution may be to copy our resources files into our build
  2. our built-in assets total 20 megs per his estimate, but we should check
    I'm currently looking at new CI failures on Bump pyglet to 2.1.dev7 #2412 in doc build of all things.

@pushfoo
Copy link
Member Author

pushfoo commented Oct 16, 2024

TL;DR: Feedback from Digi is incorporated, but perfect file copying will follow later since there's loads more stuff to do

Getting folder copying "right" is less important than:

Done? Item Why it's more important
✔️ #2403 Doc may be outright wrong is now fixed
Pending admin account override #2404 RTD notifications mislead users
#2325 Basic usability

We also have the following upstream changes to take care of now when it's ok to break API:

pyglet text issue how it's broken
pyglet/pyglet#1203 Tracking and kerning should add up for individual character adjustments
Font weight typing stuff in pyglet Broken typing

* Run create_resources_listing.py via main() instead of as __main__

* Move git ref and version read earlier in conf.py

* Template in globals via init_globals instead of complicated passing

* Encapsulate runpath.run_py call with default args
* Remove redundant variable

* Stop doing repeated . access on path.suffix

* Compact the audio file embeds to use a dict

* Remove cruft from GLSL (it's not an audio file)
* For n < 3 files, reduce the number of columns

* Actually use video embeds

* Link GitHub pages for Tiled map .json
* Add comments

* Remove unused vars

* Move config closer to top
* Set top-level pathlib.Path-based constants

* Use absolute paths as the base for the util runs

* Add a DRY helper
@pushfoo pushfoo force-pushed the fix-dev-branch-urls branch from af972bc to 920f1ed Compare October 16, 2024 07:00
@pushfoo pushfoo merged commit 8331e50 into pythonarcade:development Oct 16, 2024
8 checks passed
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.

1 participant