Switch hosting to Vercel (#1113)

* Fix URLs to work when `baseURL` is in a sub-directory

* Use `RelPermalink` to not have assets loaded from `baseUrl`

* Add `.vercel` to gitignore

* Remove deploy Github Action, we are now using Vercel
This commit is contained in:
Renaud Chaput 2022-12-21 06:26:37 +01:00 committed by GitHub
parent ffbe66a389
commit d356c6caac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
54 changed files with 267 additions and 290 deletions

View file

@ -131,4 +131,4 @@ Please check `app/javascript/mastodon/selectors/index.js` and `app/lib/feed_mana
Server-side preview images are never cropped, to support a variety of apps and user interfaces. Therefore, the cropping must be done by those apps. To crop intelligently, focal points can be used to ensure a certain section of the image is always within the cropped viewport. See this [guide on how focal points are defined](https://github.com/jonom/jquery-focuspoint#1-calculate-your-images-focus-point). In summary, floating points range from -1.0 to 1.0, left-to-right or bottom-to-top. (0,0) is the center of the image. (0.5, 0.5) would be in the center of the upper-right quadrant. (-0.5, -0.5) would be in the center of the lower-left quadrant. For reference, thumbnails in the Mastodon frontend are most commonly 16:9.
{{< figure src="/assets/focal-points.jpg" caption="A demonstration of various focal points and their coordinates." >}}
{{< figure src="assets/focal-points.jpg" caption="A demonstration of various focal points and their coordinates." >}}