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

Add a partial to download the assets from CDNs #4

Merged
merged 3 commits into from
Oct 30, 2024

Conversation

zecakeh
Copy link

@zecakeh zecakeh commented Oct 23, 2024

Instead of downloading them manually when upgrading the theme.

This should be reviewed by commit, the first one resets the modified files to their version upstream so the changes in the second commit are cleaner.

@zecakeh zecakeh changed the title Add a partial to download the assets on CDNs Add a partial to download the assets from CDNs Oct 23, 2024
@zecakeh
Copy link
Author

zecakeh commented Oct 23, 2024

To see the differences with upstream: google/docsy@v0.8.0...zecakeh:matrix-org-docsy:cdn-shortcode.

@zecakeh
Copy link
Author

zecakeh commented Oct 23, 2024

Another nice thing that this adds is that the assets will only be bundled if we need them. So currently we only download jQuery with the spec.

layouts/partials/dl-asset.html Outdated Show resolved Hide resolved
layouts/partials/dl-asset.html Outdated Show resolved Hide resolved
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

right, this is much cleaner now!

@richvdh richvdh merged commit a14705b into matrix-org:master Oct 30, 2024
@zecakeh zecakeh deleted the cdn-shortcode branch November 1, 2024 10:58
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.

3 participants