Skip to content

fix: classify Typst files correctly on GitHub - #39

Merged
AshGreyG merged 1 commit into
mainfrom
fix/typst-attribute
Sep 19, 2026
Merged

AshGreyG merged 1 commit into
mainfrom
fix/typst-attribute

Conversation

@AshGreyG

@AshGreyG AshGreyG commented Sep 19, 2026

Copy link
Copy Markdown
Member

Summary

Adds a .gitattributes rule so GitHub Linguist classifies .typ files as Typst source.

Related Issue Or Roadmap Area

Documentation tooling / Typst migration follow-up.

Type Of Change

  • Bug fix
  • Feature
  • Scientific engine work
  • Desktop UI work
  • Workflow/tool integration
  • Documentation
  • CI/build tooling

Scientific Correctness

N/A.

User Impact

Typst documentation files are now classified correctly by GitHub Linguist, improving repository language detection and presentation.

Validation

Commands run:

  • cargo fmt --all --check
  • cargo check --workspace --locked
  • cargo clippy --workspace --all-targets --locked -- -D warnings
  • Other:

Not independently run while opening this PR.

Screenshots Or Output

N/A

Risk And Follow-Up

Low risk. This only affects GitHub Linguist classification for .typ files and does not change runtime, build, or scientific behavior.

Summary by Sourcery

Bug Fixes:

  • Correct GitHub Linguist classification of .typ files as Typst source.

@sourcery-ai

sourcery-ai Bot commented Sep 19, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Adds a .gitattributes rule that classifies .typ files as Typst source on GitHub, improving repository language detection with minimal risk and no application or build changes.

File-Level Changes

Change Details Files
Add repository attributes metadata to ensure GitHub Linguist recognizes Typst source files.
  • Map the .typ extension to the Typst language for GitHub language detection.
  • Limit the change to repository classification metadata without affecting runtime or build behavior.
.gitattributes

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@coderabbitai

coderabbitai Bot commented Sep 19, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 4 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: bfcf6d99-61d0-44aa-bbd2-c088232a8ff6

📥 Commits

Reviewing files that changed from the base of the PR and between b45eb3e and e8627c4.

📒 Files selected for processing (1)
  • .gitattributes

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@AshGreyG AshGreyG self-assigned this Sep 19, 2026
@AshGreyG AshGreyG added the documentation Improvements or additions to documentation label Sep 19, 2026
@AshGreyG
AshGreyG merged commit 4c9054e into main Sep 19, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant