[go: up one dir, main page]

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

refactor(gallery): use freeze for gallery images #322

Merged
merged 1 commit into from
Aug 2, 2024
Merged

Conversation

bashbunni
Copy link
Member
@bashbunni bashbunni commented Aug 1, 2024

The styles are hard coded right now, would love to find a way to make that more dynamic - it was using json files before. Open to suggestions!

@bashbunni bashbunni self-assigned this Aug 1, 2024
@bashbunni bashbunni linked an issue Aug 1, 2024 that may be closed by this pull request
@bashbunni bashbunni marked this pull request as ready for review August 1, 2024 15:59
@bashbunni bashbunni merged commit 1fcce6f into master Aug 2, 2024
18 checks passed
@bashbunni bashbunni deleted the gallery-script branch August 2, 2024 16:39
@bashbunni bashbunni added this to the v0.8.0 milestone Aug 2, 2024
another-rex referenced this pull request in google/osv-scanner Aug 12, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence | Type |
Update |
|---|---|---|---|---|---|---|---|
| [deps.dev/api/v3](https://togithub.com/google/deps.dev) |
`v3.0.0-20240730004939-e80e6658c33b` ->
`v3.0.0-20240807013505-16da96fe8b66` |
[![age](https://developer.mend.io/api/mc/badges/age/go/deps.dev%2fapi%2fv3/v3.0.0-20240807013505-16da96fe8b66?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/deps.dev%2fapi%2fv3/v3.0.0-20240807013505-16da96fe8b66?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/deps.dev%2fapi%2fv3/v3.0.0-20240730004939-e80e6658c33b/v3.0.0-20240807013505-16da96fe8b66?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/deps.dev%2fapi%2fv3/v3.0.0-20240730004939-e80e6658c33b/v3.0.0-20240807013505-16da96fe8b66?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | patch |
| [deps.dev/util/maven](https://togithub.com/google/deps.dev) |
`e80e665` -> `16da96f` |
[![age](https://developer.mend.io/api/mc/badges/age/go/deps.dev%2futil%2fmaven/v0.0.0-20240807013505-16da96fe8b66?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/deps.dev%2futil%2fmaven/v0.0.0-20240807013505-16da96fe8b66?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/deps.dev%2futil%2fmaven/v0.0.0-20240730004939-e80e6658c33b/v0.0.0-20240807013505-16da96fe8b66?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/deps.dev%2futil%2fmaven/v0.0.0-20240730004939-e80e6658c33b/v0.0.0-20240807013505-16da96fe8b66?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | digest |
| [deps.dev/util/resolve](https://togithub.com/google/deps.dev) |
`e80e665` -> `16da96f` |
[![age](https://developer.mend.io/api/mc/badges/age/go/deps.dev%2futil%2fresolve/v0.0.0-20240807013505-16da96fe8b66?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/deps.dev%2futil%2fresolve/v0.0.0-20240807013505-16da96fe8b66?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/deps.dev%2futil%2fresolve/v0.0.0-20240730004939-e80e6658c33b/v0.0.0-20240807013505-16da96fe8b66?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/deps.dev%2futil%2fresolve/v0.0.0-20240730004939-e80e6658c33b/v0.0.0-20240807013505-16da96fe8b66?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | digest |
| [deps.dev/util/semver](https://togithub.com/google/deps.dev) |
`e80e665` -> `16da96f` |
[![age](https://developer.mend.io/api/mc/badges/age/go/deps.dev%2futil%2fsemver/v0.0.0-20240807013505-16da96fe8b66?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/deps.dev%2futil%2fsemver/v0.0.0-20240807013505-16da96fe8b66?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/deps.dev%2futil%2fsemver/v0.0.0-20240730004939-e80e6658c33b/v0.0.0-20240807013505-16da96fe8b66?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/deps.dev%2futil%2fsemver/v0.0.0-20240730004939-e80e6658c33b/v0.0.0-20240807013505-16da96fe8b66?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | digest |
|
[github.com/charmbracelet/glamour](https://togithub.com/charmbracelet/glamour)
| `v0.7.0` -> `v0.8.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fcharmbracelet%2fglamour/v0.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fcharmbracelet%2fglamour/v0.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fcharmbracelet%2fglamour/v0.7.0/v0.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fcharmbracelet%2fglamour/v0.7.0/v0.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | minor |
|
[github.com/google/go-containerregistry](https://togithub.com/google/go-containerregistry)
| `v0.20.1` -> `v0.20.2` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fgoogle%2fgo-containerregistry/v0.20.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fgoogle%2fgo-containerregistry/v0.20.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fgoogle%2fgo-containerregistry/v0.20.1/v0.20.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fgoogle%2fgo-containerregistry/v0.20.1/v0.20.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | patch |
|
[github.com/ianlancetaylor/demangle](https://togithub.com/ianlancetaylor/demangle)
| `bd984b5` -> `81f5be9` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fianlancetaylor%2fdemangle/v0.0.0-20240805132620-81f5be970eca?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fianlancetaylor%2fdemangle/v0.0.0-20240805132620-81f5be970eca?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fianlancetaylor%2fdemangle/v0.0.0-20240312041847-bd984b5ce465/v0.0.0-20240805132620-81f5be970eca?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fianlancetaylor%2fdemangle/v0.0.0-20240312041847-bd984b5ce465/v0.0.0-20240805132620-81f5be970eca?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | digest |
| [github.com/urfave/cli/v2](https://togithub.com/urfave/cli) |
`v2.27.3` -> `v2.27.4` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2furfave%2fcli%2fv2/v2.27.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2furfave%2fcli%2fv2/v2.27.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2furfave%2fcli%2fv2/v2.27.3/v2.27.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2furfave%2fcli%2fv2/v2.27.3/v2.27.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | patch |
| golang.org/x/exp | `8a7402a` -> `0cdaa3a` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fexp/v0.0.0-20240808152545-0cdaa3abc0fa?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/golang.org%2fx%2fexp/v0.0.0-20240808152545-0cdaa3abc0fa?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/golang.org%2fx%2fexp/v0.0.0-20240719175910-8a7402abbf56/v0.0.0-20240808152545-0cdaa3abc0fa?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fexp/v0.0.0-20240719175910-8a7402abbf56/v0.0.0-20240808152545-0cdaa3abc0fa?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | digest |
| golang.org/x/term | `v0.22.0` -> `v0.23.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2fterm/v0.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/golang.org%2fx%2fterm/v0.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/golang.org%2fx%2fterm/v0.22.0/v0.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2fterm/v0.22.0/v0.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| require | minor |

---

### Release Notes

<details>
<summary>charmbracelet/glamour
(github.com/charmbracelet/glamour)</summary>

###
[`v0.8.0`](https://togithub.com/charmbracelet/glamour/releases/tag/v0.8.0)

[Compare
Source](https://togithub.com/charmbracelet/glamour/compare/v0.7.0...v0.8.0)

### Fixing (almost) everything

With a *ton* of rendering fixes, she's sparkling ✨

> It has that new car smell...

#### So many fixes…one man

[@&#8203;caarlos0](https://togithub.com/caarlos0) fixed a whopping 15
issues with PR
[#&#8203;317](https://togithub.com/charmbracelet/glamour/issues/317) 🥇

- Fix URL links not rendering inside bold text
[#&#8203;312](https://togithub.com/charmbracelet/glamour/issues/312)
- Fix autolink element rendering
[#&#8203;290](https://togithub.com/charmbracelet/glamour/issues/290)
- Add support for backslash escapes
[#&#8203;106](https://togithub.com/charmbracelet/glamour/issues/106)
- Fix cases when backslash should not be shown
[#&#8203;274](https://togithub.com/charmbracelet/glamour/issues/274)
- Fix escape character rendering
[#&#8203;311](https://togithub.com/charmbracelet/glamour/issues/311)
- Fix newlines in definition lists
[#&#8203;239](https://togithub.com/charmbracelet/glamour/issues/239)
- Fix nested blockquotes rendering
[#&#8203;313](https://togithub.com/charmbracelet/glamour/issues/313)
- Fix block quote accidentally combining lines
[#&#8203;237](https://togithub.com/charmbracelet/glamour/issues/237)
- Fix document-level indent causing unintended wrapping after quoted
lines [#&#8203;68](https://togithub.com/charmbracelet/glamour/issues/68)

#### Better tables

Tables now provide stable rendering of elements within the table
including alignment, text styles, all that jazz. It now uses the
[lipgloss
table](https://pkg.go.dev/github.com/charmbracelet/lipgloss@v0.12.1/table),
making it much more consistent across the board.

- Render tables with Lip Gloss
[#&#8203;262](https://togithub.com/charmbracelet/glamour/issues/262)
- Refactor to replace `TableWriter` with Lip Gloss table
[#&#8203;254](https://togithub.com/charmbracelet/glamour/issues/254)
- Fix inline code within table
[#&#8203;315](https://togithub.com/charmbracelet/glamour/issues/315)
- Fix links in tables
[#&#8203;316](https://togithub.com/charmbracelet/glamour/issues/316)
- Provide consistent alignment of table elements
[#&#8203;60](https://togithub.com/charmbracelet/glamour/issues/60)
- Support alignment in tables
[#&#8203;117](https://togithub.com/charmbracelet/glamour/issues/117)

#### New! Tokyo Night

> The markdown renderer’s equivalent of a mani-pedi 💅

Tokyo Night is now a built-in style for Glamour. This means you'll be
able to use it in the next release of
[Glow](https://togithub.com/charmbracelet/glow?tab=readme-ov-file#styles).

```bash
glow -s "tokyo-night"

### OR
export GLAMOUR_STYLE="tokyo-night"
```

<img alt="Tokyo Night x Glamour"
src="https://github.com/charmbracelet/glamour/blob/master/styles/gallery/tokyo-night.png"
width="600">

Check out the [custom style
example](https://togithub.com/charmbracelet/glamour/blob/master/examples/stdin-stdout-custom-styles/main.go#L30-L32)
to learn how to support custom styles in your own Glamour apps.

- feat: Add Tokyo Night theme by
[@&#8203;basilioss](https://togithub.com/basilioss) in
[https://github.com/charmbracelet/glamour/pull/229](https://togithub.com/charmbracelet/glamour/pull/229)

#### No TTY?

Glamour will now check if `stdout` is a tty and will strip styles when
it is not.

- Add auto NoTTY style by [@&#8203;wxh06](https://togithub.com/wxh06)
and [@&#8203;caarlos0](https://togithub.com/caarlos0) in
[https://github.com/charmbracelet/glamour/pull/268](https://togithub.com/charmbracelet/glamour/pull/268)

#### Other Stuff

- CI: scan for vulnerabilities and common errors by
[@&#8203;caarlos0](https://togithub.com/caarlos0) in
[https://github.com/charmbracelet/glamour/pull/310](https://togithub.com/charmbracelet/glamour/pull/310)
- Use freeze for gallery images by
[@&#8203;bashbunni](https://togithub.com/bashbunni) in
[https://github.com/charmbracelet/glamour/pull/322](https://togithub.com/charmbracelet/glamour/pull/322)

#### New Contributors

- [@&#8203;bashbunni](https://togithub.com/bashbunni) made their first
contribution in
[https://github.com/charmbracelet/glamour/pull/322](https://togithub.com/charmbracelet/glamour/pull/322)

**Full Changelog**:
charmbracelet/glamour@v0.7.0...v0.8.0

***

<a href="https://charm.sh/"><img alt="The Charm logo"
src="https://stuff.charm.sh/charm-badge.jpg" width="400"></a>

Thoughts? Questions? We love hearing from you. Feel free to reach out on
[Twitter](https://twitter.com/charmcli), [The
Fediverse](https://mastodon.social/@&#8203;charmcli), or
[Discord](https://charm.sh/chat).

<hr /><em>This discussion was created from the release <a
href='https://github.com/charmbracelet/glamour/releases/tag/v0.8.0'>v0.8.0</a>.</em>

</details>

<details>
<summary>google/go-containerregistry
(github.com/google/go-containerregistry)</summary>

###
[`v0.20.2`](https://togithub.com/google/go-containerregistry/releases/tag/v0.20.2)

[Compare
Source](https://togithub.com/google/go-containerregistry/compare/v0.20.1...v0.20.2)

#### What's Changed

- deps: bump docker dep by
[@&#8203;imjasonh](https://togithub.com/imjasonh) in
[https://github.com/google/go-containerregistry/pull/1991](https://togithub.com/google/go-containerregistry/pull/1991)

**Full Changelog**:
google/go-containerregistry@v0.20.1...v0.20.2

</details>

<details>
<summary>urfave/cli (github.com/urfave/cli/v2)</summary>

### [`v2.27.4`](https://togithub.com/urfave/cli/releases/tag/v2.27.4)

[Compare
Source](https://togithub.com/urfave/cli/compare/v2.27.3...v2.27.4)

#### What's Changed

- Fix:(issue\_1962) Fix tests failing on 32 bit architectures by
[@&#8203;dearchap](https://togithub.com/dearchap) in
[https://github.com/urfave/cli/pull/1963](https://togithub.com/urfave/cli/pull/1963)

**Full Changelog**:
urfave/cli@v2.27.3...v2.27.4

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 6am on monday" in timezone
Australia/Sydney, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/google/osv-scanner).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yMC4xIiwidXBkYXRlZEluVmVyIjoiMzguMjAuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->

Co-authored-by: Xueqin Cui <72771658+cuixq@users.noreply.github.com>
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.

refactor: use freeze to auto-generate gallery images
3 participants