mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-08-14 18:32:26 +00:00
deploy: 8cca74e3e6
This commit is contained in:
parent
d66bf78487
commit
d9659da92d
268 changed files with 7181 additions and 6827 deletions
js
|
@ -395,9 +395,10 @@ function initOpenapi( update, attrs ){
|
|||
|
||||
}
|
||||
function renderOpenAPI(oc) {
|
||||
var mod = window.relearn.themeVariantModifier;
|
||||
var buster = window.themeUseOpenapi.assetsBuster ? '?' + window.themeUseOpenapi.assetsBuster : '';
|
||||
var print = isPrint || attrs.isPrintPreview ? "PRINT-" : "";
|
||||
var theme = print ? `${baseUri}/css/theme-relearn-light.css` : document.querySelector( '#R-variant-style' ).attributes.href.value
|
||||
var theme = print ? `${baseUri}/css/theme-relearn-light${mod}.css${buster}` : document.querySelector( '#R-variant-style' ).attributes.href.value
|
||||
var swagger_theme = variants.getColorValue( print + 'OPENAPI-theme' );
|
||||
var swagger_code_theme = variants.getColorValue( print + 'OPENAPI-CODE-theme' );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue