Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Refactoring

- build: Declare the vendored Lua modules in `_extensions/code-window/_dependencies.yml` and move them to `_extensions/code-window/_vendor/`, so each one names the release it came from and can be checked against it.

## 1.4.0 (2026-09-01)

### New Features
Expand Down
23 changes: 23 additions & 0 deletions _extensions/code-window/_dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
schema: 1
sources:
quarto-lua-modules:
origin: "https://github.com/mcanouil/quarto-lua-modules"
fetch: "{origin}/releases/download/{version}/{file}"
version: "2.0.0"
licence: MIT
files:
html.lua:
sha256: "8b612059099418d8d55c5a25c5362d3549c94e62febc73f659bc82ba06c2f067"
runtime: any
logging.lua:
sha256: "a69a69ce7cf41b02914889074eb7445cff72003e6dd8b55b6f47d32d09848ccd"
runtime: any
metadata.lua:
sha256: "3f82a6208c337ae9a2e4a0a6f294f894cc506e05aedfb1c13167e55b52b8c457"
runtime: any
pandoc-helpers.lua:
sha256: "492abe5dda9f2bd8569c716d747cdbb550944a04920eec6fb600eeaff4ca58b3"
runtime: any
string.lua:
sha256: "32b2c16f50ecf7e752441ed80bd7fbcee11af83c4ed1e9242cc745d200bc73e0"
runtime: any
21 changes: 21 additions & 0 deletions _extensions/code-window/_vendor/quarto-lua-modules/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Mickaël Canouil

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
--- @license MIT
--- @copyright 2026 Mickaël Canouil
--- @author Mickaël Canouil
--- @version 1.0.0
--- @version 2.0.0

local M = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
--- @license MIT
--- @copyright 2026 Mickaël Canouil
--- @author Mickaël Canouil
--- @version 1.0.0
--- @version 2.0.0

local M = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
--- @license MIT
--- @copyright 2026 Mickaël Canouil
--- @author Mickaël Canouil
--- @version 1.0.0
--- @version 2.0.0

local M = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
--- @license MIT
--- @copyright 2026 Mickaël Canouil
--- @author Mickaël Canouil
--- @version 1.0.0
--- @version 2.0.0

local M = {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
--- @license MIT
--- @copyright 2026 Mickaël Canouil
--- @author Mickaël Canouil
--- @version 1.1.0
--- @version 2.0.0

local M = {}

Expand Down
10 changes: 5 additions & 5 deletions _extensions/code-window/code-window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
-- ============================================================================

local EXTENSION_NAME = 'code-window'
local str = require(quarto.utils.resolve_path('_modules/string.lua'):gsub('%.lua$', ''))
local log = require(quarto.utils.resolve_path('_modules/logging.lua'):gsub('%.lua$', ''))
local meta_mod = require(quarto.utils.resolve_path('_modules/metadata.lua'):gsub('%.lua$', ''))
local pdoc = require(quarto.utils.resolve_path('_modules/pandoc-helpers.lua'):gsub('%.lua$', ''))
local html_mod = require(quarto.utils.resolve_path('_modules/html.lua'):gsub('%.lua$', ''))
local str = require(quarto.utils.resolve_path('_vendor/quarto-lua-modules/string.lua'):gsub('%.lua$', ''))
local log = require(quarto.utils.resolve_path('_vendor/quarto-lua-modules/logging.lua'):gsub('%.lua$', ''))
local meta_mod = require(quarto.utils.resolve_path('_vendor/quarto-lua-modules/metadata.lua'):gsub('%.lua$', ''))
local pdoc = require(quarto.utils.resolve_path('_vendor/quarto-lua-modules/pandoc-helpers.lua'):gsub('%.lua$', ''))
local html_mod = require(quarto.utils.resolve_path('_vendor/quarto-lua-modules/html.lua'):gsub('%.lua$', ''))
local cell_output = require(quarto.utils.resolve_path('_modules/cell-output.lua'):gsub('%.lua$', ''))
local code_annotations = nil

Expand Down
2 changes: 1 addition & 1 deletion _extensions/code-window/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
--- Loads all submodules, wires dependencies, and assembles the filter list.

local EXTENSION_NAME = 'code-window'
local log = require(quarto.utils.resolve_path('_modules/logging.lua'):gsub('%.lua$', ''))
local log = require(quarto.utils.resolve_path('_vendor/quarto-lua-modules/logging.lua'):gsub('%.lua$', ''))

-- ============================================================================
-- LOAD SUBMODULES
Expand Down
6 changes: 3 additions & 3 deletions docs/_scripts/sync-extension.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# Documentation Extension Sync
# Mirrors the repository's own extension into the documentation project.
#
# @license %%license%%
# @copyright %%year%% %%author%%
# @author %%author%%
# @license MIT License
# @copyright 2026 Mickaël Canouil
# @author Mickaël Canouil
#
# The website demonstrates the extension it documents, so the extension has to
# be resolvable from docs/. Quarto builds its extension registry while reading
Expand Down