Skip to content

Commit 6255236

Browse files
committed
feat: initialise code-window extension
0 parents  commit 6255236

19 files changed

Lines changed: 1130 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
title: "The (missing) feature you want to discuss"
2+
labels:
3+
- "Type: Enhancement :bulb:"
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
First, please check if your feature request has already been discussed.
9+
If it has, please consider adding a comment to the existing discussion instead of creating a new one.
10+
11+
If you want to ask for help, please consider using the Q&A GitHub Discussions, as it is better suited for answering your question.
12+
13+
Finally, try to describe the best you can what you want to achieve and why you think it is important.
14+
This will help us to understand your request and prioritise it.
15+
16+
_Thank you for opening this feature request!_
17+
- type: textarea
18+
attributes:
19+
label: Description
20+
description: Start your discussion!
21+
validations:
22+
required: true
23+
- type: markdown
24+
attributes:
25+
value: |
26+
_Thank you for opening this feature request!_
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
title: "Your question in one sentence"
2+
body:
3+
- type: markdown
4+
attributes:
5+
value: |
6+
First, please check if your question has already been asked.
7+
If it has, please consider adding a comment to the existing discussion instead of creating a new one.
8+
9+
Finally, try to describe the best you can what you want to achieve or what is your issue, especially by providing a complete self-contained reproducible example.
10+
This will help us to understand your question and answer it.
11+
12+
`````md
13+
````qmd
14+
---
15+
title: "Reproducible Quarto Document"
16+
format: html
17+
engine: jupyter
18+
---
19+
20+
This is a reproducible Quarto document using `format: html`.
21+
It is written in Markdown and contains embedded Python code.
22+
When you run the code, it will produce a message.
23+
24+
```{python}
25+
print("Hello, world!")
26+
```
27+
28+
![An image]({{< placeholder 600 400 >}}){#fig-placeholder}
29+
30+
{{< lipsum 1 >}}
31+
32+
A reference to @fig-placeholder.
33+
34+
The end.
35+
````
36+
`````
37+
38+
You can add some additional information that can help us to help you:
39+
40+
- What Quarto version are you using?
41+
You can find the version of Quarto you used by running `quarto --version` in your terminal.
42+
- What version of the Quarto extension are you using?
43+
You can find the version of the Quarto extension you used by running `quarto list extensions` in your terminal.
44+
- What operating system are you using?
45+
Linux Ubuntu 20.04, macOS 11.2.3, Windows 10, _etc._
46+
47+
_Thank you for opening this discussion either to ask for help or to report a possible bug!_
48+
- type: textarea
49+
attributes:
50+
label: Description
51+
description: Start your question/report!
52+
placeholder: |
53+
You can include Quarto document code which includes code blocks like this:
54+
55+
`````md
56+
````qmd
57+
---
58+
title: "Reproducible Quarto Document"
59+
format: html
60+
engine: jupyter
61+
---
62+
63+
This is a reproducible Quarto document using `format: html`.
64+
It is written in Markdown and contains embedded Python code.
65+
When you run the code, it will produce a message.
66+
67+
```{python}
68+
print("Hello, world!")
69+
```
70+
71+
![An image]({{< placeholder 600 400 >}}){#fig-placeholder}
72+
73+
{{< lipsum 1 >}}
74+
75+
A reference to @fig-placeholder.
76+
77+
The end.
78+
````
79+
`````
80+
81+
---
82+
83+
### Additional information that can help us to help you
84+
85+
- What Quarto version are you using?
86+
You can find the version of Quarto you used by running `quarto --version` in your terminal.
87+
- What version of the Quarto extension are you using?
88+
You can find the version of the Quarto extension you used by running `quarto list extensions` in your terminal.
89+
- What operating system are you using?
90+
Linux Ubuntu 20.04, macOS 11.2.3, Windows 10, _etc._
91+
validations:
92+
required: true
93+
- type: markdown
94+
attributes:
95+
value: |
96+
_Thank you for opening this discussion either to ask for help or to report a possible bug!_

.github/FUNDING.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# These are supported funding model platforms
2+
3+
github: mcanouil # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12+
polar: # Replace with a single Polar username
13+
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
14+
thanks_dev: # Replace with a single thanks.dev username
15+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Bug report
2+
description: Report an error or unexpected behaviour
3+
labels:
4+
- "Type: Bug :bug:"
5+
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
Welcome!
11+
12+
- type: checkboxes
13+
attributes:
14+
label: "I Have checked the following"
15+
options:
16+
- label: I have searched the issue tracker for similar issues
17+
required: true
18+
- label: I have the latest version of [Quarto CLI](https://github.com/quarto-dev/quarto-cli/releases/latest)
19+
required: true
20+
- label: I have the latest version of the Quarto extension
21+
required: true
22+
23+
- type: textarea
24+
attributes:
25+
label: Bug description
26+
description: Description of the bug.
27+
placeholder: Please describe the bug here.
28+
29+
- type: textarea
30+
attributes:
31+
label: Steps to reproduce
32+
description: |
33+
Tell us how to reproduce this bug.
34+
35+
- type: textarea
36+
attributes:
37+
label: Actual behaviour
38+
description: Tell us what happens instead.
39+
40+
- type: textarea
41+
attributes:
42+
label: Expected behaviour
43+
description: Tell us what should happen.
44+
45+
- type: textarea
46+
attributes:
47+
label: Your environment
48+
description: |
49+
Please document the IDE (_e.g._ RStudio, Positron, VSCode, NVim), its version, and the operating system you're running (_e.g., MacOS Ventura 13.4, Windows 11, Linux Debian 11, _etc._).
50+
placeholder: |
51+
- IDE: RStudio 2023.03.1+446 | VSCode | Positron
52+
- OS: MacOS Ventura 13.4 | Windows | Ubuntu
53+
54+
- type: markdown
55+
attributes:
56+
value: "_Thanks for submitting this bug report!_"

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Support
4+
url: https://github.com/mcanouil/quarto-code-window/discussions
5+
about: Please ask and answer questions here.
6+
- name: Issue with Quarto CLI
7+
url: https://github.com/quarto-dev/quarto-cli
8+
about: Please report issues with the Quarto CLI here

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: "monthly"
12+
labels:
13+
- "Type: Dependencies :arrow_up:"

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release Quarto Extension
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
type: choice
8+
description: "Version"
9+
required: false
10+
default: "patch"
11+
options:
12+
- "patch"
13+
- "minor"
14+
- "major"
15+
quarto:
16+
type: string
17+
description: "Quarto version"
18+
required: false
19+
default: "pre-release"
20+
21+
permissions:
22+
contents: write
23+
pull-requests: write
24+
id-token: write
25+
pages: write
26+
27+
jobs:
28+
release:
29+
uses: mcanouil/quarto-workflows/.github/workflows/release-extension.yml@main
30+
secrets: inherit
31+
with:
32+
gh-app-id: ${{ vars.APP_ID }}
33+
version: "${{ github.event.inputs.version }}"
34+
formats: "html typst revealjs"
35+
quarto: "${{ github.event.inputs.quarto }}"
36+
post-render: false
37+
tinytex: false
38+
r: false
39+
python: false
40+
julia: false

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
_site/
2+
docs/_site/
3+
docs/_variables.yml
4+
docs/_changelog-content.md
5+
docs/_sidebar-api.yml
6+
docs/api/*.qmd
7+
*.html
8+
.quarto/
9+
10+
/.luarc.json

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Changelog
2+
3+
## 0.1.0 (2026-02-27)
4+
5+
### New Features
6+
7+
- feat: Initial release.

CITATION.cff

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
cff-version: 1.2.0
2+
title: "Code Window Extension for Quarto"
3+
message: "If you use this project, please cite it as below."
4+
type: software
5+
authors:
6+
- family-names: "Canouil"
7+
given-names: "Mickaël"
8+
orcid: "https://orcid.org/0000-0002-3396-4549"
9+
repository-code: "https://github.com/mcanouil/quarto-code-window"
10+
url: "https://m.canouil.dev/quarto-code-window/"
11+
license: "MIT License"
12+
date-released: "2026-02-27"
13+
version: 0.0.0

0 commit comments

Comments
 (0)