quarto-github

Use GitHub short references (commits, issues, discussions, and pull requests) directly into your Quarto documents.

https://github.com/mcanouil/quarto-github

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.0%) to scientific vocabulary

Keywords

github quarto quarto-extension quarto-pub quartopub short-link
Last synced: 4 months ago · JSON representation ·

Repository

Use GitHub short references (commits, issues, discussions, and pull requests) directly into your Quarto documents.

Basic Info
Statistics
  • Stars: 20
  • Watchers: 1
  • Forks: 0
  • Open Issues: 2
  • Releases: 3
Topics
github quarto quarto-extension quarto-pub quartopub short-link
Created over 1 year ago · Last pushed 5 months ago
Metadata Files
Readme Funding License Citation

README.md

GitHub Extension For Quarto

github is an extension for Quarto to automatically shortens and converts GitHub references into links.

Installing

bash quarto add mcanouil/quarto-github

This will install the extension under the _extensions subdirectory. If you're using version control, you will want to check in this directory.

Using

You can reference GitHub issues, pull requests, and commits in your content using GitHub short references. This Quarto extension automatically shortens and converts GitHub references into links.

To activate the filter, add the following to your YAML front matter:

  • Old (<1.8.21):

yml filters: - quarto - github

  • New (>=1.8.21):

yml filters: - path: github at: post-quarto

[!IMPORTANT] The extension must be run after Quarto's processing (i.e., at: post-quarto) to ensure that references (e.g., @fig-my-beautiful-figure) are processed first by Quarto, then by the GitHub filter to avoid conflicts.

Some references require a default repository to be set. Use the extension configuration structure:

yml extensions: github: base-url: https://github.com # optional, defaults to https://github.com repository-name: jlord/sheetsee.js

[!WARNING]

The old top-level repository-name syntax is deprecated but still supported:

yml repository-name: jlord/sheetsee.js # deprecated

Configuration

base-url

Specifies the base URL for GitHub or GitHub Enterprise instances. Defaults to https://github.com.

repository-name

Specifies the default GitHub repository in the format owner/repository. This is required for references that don't include the repository name (like #123 or GH-123).

References

Source: Autolinked references and URLs - GitHub Docs.

Mentioning users

| User/Organisation | Raw reference | Short link | |----------------------|----------------|---------------| | User mention | @mcanouil | @mcanouil | |----------------------|----------------|---------------| | Organisation mention | @quarto-dev | @quarto-dev |

Issues and pull requests

| Reference type | Raw reference | Short link | |--------------------------------------------------------------------------------------------|--------------------------------------------------|---------------------------------| | Issue, discussion, or pull request URL (repository-name is optional!) | https://github.com/jlord/sheetsee.js/issues/26 | #26 or lord/sheetsee.js#26 | | # and issue, discussion, or pull request number (repository-name is required!) | #26 | #26 | | GH- and issue, discussion, or pull request number (repository-name is required!) | GH-26 | GH-26 | | Username/Repository# and issue, discussion, or pull request number | jlord/sheetsee.js#26 | jlord/sheetsee.js#26 | | Organization_name/Repository# and issue, discussion, or pull request number | github-linguist/linguist#4039 | github-linguist/linguist#4039 |

Commit SHAs

| Reference type | Raw reference | Short link | |---------------------------------------------------|----------------------------------------------------------------------------------------|------------------------------------------| | Commit URL (repository-name is optional!) | https://github.com/jlord/sheetsee.js/commit/a5c3785ed8d6a35868bc169f07e40e889087fd2e | a5c3785 or jlord/sheetsee.js@a5c3785 | | SHA (repository-name is required!) | a5c3785ed8d6a35868bc169f07e40e889087fd2e | a5c3785 | | User@SHA (Not supported! ) | jlord@a5c3785ed8d6a35868bc169f07e40e889087fd2e | Not supported! | | Username/Repository@SHA | jlord/sheetsee.js@a5c3785ed8d6a35868bc169f07e40e889087fd2e | jlord/sheetsee.js@a5c3785 |

Example

Here is the source code for a minimal example: example.qmd.

Owner

  • Name: Mickaël Canouil
  • Login: mcanouil
  • Kind: user
  • Location: Lille, France

Biostatistician, Ph. D. (& cinephile) @RLille User Group Organiser

Citation (CITATION.cff)

cff-version: 1.2.0
title: "GitHub Extension for Quarto"
message: "If you use this project, please cite it as below."
type: software
authors:
  - family-names: "Canouil"
    given-names: "Mickaël"
    orcid: "https://orcid.org/0000-0002-3396-4549"
repository-code: "https://github.com/mcanouil/quarto-github"
url: "http://m.canouil.dev/quarto-github/"
license: "MIT"
date-released: "2025-08-14"
version: 1.1.0

GitHub Events

Total
  • Create event: 5
  • Issues event: 1
  • Release event: 1
  • Watch event: 2
  • Delete event: 4
  • Issue comment event: 2
  • Push event: 24
  • Pull request event: 7
Last Year
  • Create event: 5
  • Issues event: 1
  • Release event: 1
  • Watch event: 2
  • Delete event: 4
  • Issue comment event: 2
  • Push event: 24
  • Pull request event: 7

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 1
  • Total pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: 28 minutes
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: 28 minutes
  • Issue authors: 1
  • Pull request authors: 1
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • mcanouil (2)
Pull Request Authors
  • mcanouil (4)
  • github-actions[bot] (1)
Top Labels
Issue Labels
Type: Documentation :memo: (1) Type: Enhancement :bulb: (1)
Pull Request Labels
Type: Enhancement :bulb: (2) Type: CI/CD :robot: (2)