Skip to content

Fix trunk checker fail#145

Merged
neatudarius merged 17 commits into
bemanproject:mainfrom
AndreiDurlea:andreidurlea-issue118
Mar 31, 2026
Merged

Fix trunk checker fail#145
neatudarius merged 17 commits into
bemanproject:mainfrom
AndreiDurlea:andreidurlea-issue118

Conversation

@AndreiDurlea

@AndreiDurlea AndreiDurlea commented Mar 30, 2026

Copy link
Copy Markdown
Member

#118

TL;DR

Resolved a plethora of warnings and errors while also upgrading trunk to its latest version in the process.

Summary

  • Fixed up some .md files
  • Removed some conflicts of trunk with docusaurus itself by adding some ignoring in config files
    • Vulnerabilities in some of its dependencies
    • Markdownlint conflicts that are usually ignored in standard docusaurus projects
  • Upgraded trunk and removed check-mode: all as that has been deprecated

@netlify

netlify Bot commented Mar 30, 2026

Copy link
Copy Markdown

Deploy Preview for bemanproject ready!

Name Link
🔨 Latest commit 5f73d66
🔍 Latest deploy log https://app.netlify.com/projects/bemanproject/deploys/69cbb89a2f263400081cafaa
😎 Deploy Preview https://deploy-preview-145--bemanproject.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@AndreiDurlea AndreiDurlea force-pushed the andreidurlea-issue118 branch 2 times, most recently from 433ecf5 to 9245f2f Compare March 30, 2026 01:17
@AndreiDurlea AndreiDurlea force-pushed the andreidurlea-issue118 branch from 9245f2f to 900095f Compare March 30, 2026 01:22
Also deleted package-lock.json which was leftover from a npm run
@AndreiDurlea AndreiDurlea force-pushed the andreidurlea-issue118 branch from 900095f to 3ee8f5d Compare March 30, 2026 01:26
And upgrade of two packages
@AndreiDurlea AndreiDurlea force-pushed the andreidurlea-issue118 branch from 3ee8f5d to e34834c Compare March 30, 2026 01:28
@AndreiDurlea

AndreiDurlea commented Mar 30, 2026

Copy link
Copy Markdown
Member Author

We have victory, finally, the website checks are green!
@neatudarius is this ok to merge?

AndreiDurlea added a commit to AndreiDurlea/beman-website that referenced this pull request Mar 30, 2026
Accidental; were supposed for bemanproject#145
@neatudarius

neatudarius commented Mar 30, 2026

Copy link
Copy Markdown
Member

We have victory, finally, the website checks are green! @neatudarius is this ok to merge?

Thanks @AndreiDurlea ! This is a good direction and initiative. Thanks! However, some pieces of this PR cannot be merged.

We need to distinguish between manual generated files and autogenerated files. I'm working on docs import automation from beman/ repo. The script is ready https://github.com/bemanproject/website/tree/main/scripts - can be tested; I'm working on finalizing CI automation here #51.

TLDR: I will tag some files that should be excluded from the checker, not fixed. They are imported from other repos, and we should keep it as it is, otherwise automation cannot be achieved. Basically we need to first solved #126, and then update your PR to only fix files that are not imported.

@neatudarius neatudarius left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Did a full pass- thanks @AndreiDurlea - lots of good things here, and a few which can be improved. Please check the large comment here: https://github.com/bemanproject/website/pull/145/changes#r3012387061. Let's first check if we can resolve this comment as proposed. Successful path will simplify this PR!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should keep your changes in .github / .trunk directories.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Changes in this files are also OK to keep.

Comment thread scripts/sync-docs.py
Comment thread src/pages/libraries.md

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This file is manually created only in website! We can do changes here, ofc.

Comment thread src/pages/libraries.md
slug: libraries
---

# Beman Libraries

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why do we remove the title? We must keep it.

Comment thread src/pages/markdown-page.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we remove this file? I think it's a leftover from used template.

Comment thread .markdownlint.yaml
Comment thread docusaurus.config.ts

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We keep changes here.

Comment thread README.md

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We keep changes here if it's working - please check the render version of each changed MD!

Image

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

P1: First of all, we should not manually change images in docs/images and images/ and static/ directories for 2 reasons.

  1. We want to be an identical copy of what we have in beman/ & other repos. If we need to fix them, we should first fix them in a new PR, and then import them here. That's the flow! The website content is always a mirror of the latest status of the beman libraries/beman repo.
  2. If you do this change here, and do not do 1 first, it's pointless to sync the next run of sync-docs.py (manual or soon automated on CI), which will import the images from other repos.

============================================================================

P2: Similar to all md files in https://github.com/bemanproject/website/tree/main/docs, which are automatically imported by the script.

============================================================================

My request here is to exclude from linter files in docs/*.md, docs/images/, images/, static/docs/images, static/images/, static/img/.

Then we can drop the changes into the current PR across all the mentioned directories and still get the CI trunk check green. This would be the desired solution for both #126 and #118.

We can then discuss and update docs and images outside this repo, and here just re-import them.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

See here #51 / #152. Just finished automation for doc import. This is where we should be!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Alright, makes sense, will be doing this

@AndreiDurlea AndreiDurlea force-pushed the andreidurlea-issue118 branch from 29b6a88 to 28fefd8 Compare March 31, 2026 08:19
@AndreiDurlea AndreiDurlea force-pushed the andreidurlea-issue118 branch from 82116f8 to b310687 Compare March 31, 2026 11:32
@AndreiDurlea AndreiDurlea force-pushed the andreidurlea-issue118 branch from b310687 to 9c4c88a Compare March 31, 2026 11:39
@AndreiDurlea AndreiDurlea force-pushed the andreidurlea-issue118 branch from fa91977 to 5f73d66 Compare March 31, 2026 12:05
@AndreiDurlea

AndreiDurlea commented Mar 31, 2026

Copy link
Copy Markdown
Member Author

@neatudarius I finished applying the requested changes. Turns out running trunk fmt --all does breaking changes. Especially when running it at 3AM when I'm less likely to look twice over everything =) Lesson learned. Thank you for cathing those problems in the review

image

@neatudarius neatudarius marked this pull request as ready for review March 31, 2026 22:59

@neatudarius neatudarius left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

Good to see this lint job passing

Comment thread .trunk/trunk.yaml
@@ -17,6 +17,17 @@ runtimes:
- python@3.10.8
# This is the section where you manage your linters. (https://docs.trunk.io/check/configuration)
lint:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@neatudarius neatudarius merged commit d68be54 into bemanproject:main Mar 31, 2026
5 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.

2 participants