-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Use rollup to build as UDM(es5)
- Loading branch information
Showing
4 changed files
with
179 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 5 additions & 28 deletions
33
src/atsphinx/revealjs_rtd/static/atsphinx-revealjs-rtd/rtd.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,14 @@ | ||
(function(g,f){if(typeof exports=="object"&&typeof module<"u"){module.exports=f()}else if("function"==typeof define && define.amd){define("RevealRTD",f)}else {g["RevealRTD"]=f()}}(typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : this,function(){var exports={};var __exports=exports;var module={exports}; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
var plugin_exports = {}; | ||
__export(plugin_exports, { | ||
default: () => plugin_default | ||
}); | ||
module.exports = __toCommonJS(plugin_exports); | ||
const Plugin = { | ||
id: "rtd", | ||
(function(g,f){typeof exports==='object'&&typeof module!=='undefined'?module.exports=f():typeof define==='function'&&define.amd?define(f):(g=typeof globalThis!=='undefined'?globalThis:g||self,g.RevealRTD=f());})(this,(function(){'use strict';const Plugin = { | ||
id: 'rtd', | ||
init(reveal) { | ||
const deck = reveal; | ||
deck.addKeyBinding({ keyCode: 68, key: "D", description: "Toggle RTD widget" }, function() { | ||
deck.addKeyBinding({keyCode: 68, key: 'D', description: 'Toggle RTD widget'}, function() { | ||
console.debug("Press toggle-key of RTD."); | ||
const flyout = document.querySelector("readthedocs-flyout"); | ||
if (!flyout) return; | ||
flyout.style.display = flyout.style.display ? "" : "none"; | ||
}); | ||
} | ||
}; | ||
var plugin_default = () => Plugin; | ||
|
||
if(__exports != exports)module.exports = exports;return module.exports})); | ||
var plugin = () => Plugin;return plugin;})); |