sassdoc-theme-herman
Advanced tools
Changelog
6.0.0: 2024-03-01
sass.implementation
option (string
or Dart Sass instance) to specify
the Dart Sass implementation to use for @example scss
annotations. (default:
sass
).AsyncCompiler
API
for @example scss
annotations.exports.sass
in package.json
for simpler pkg:
imports.^1.71.0
for @example scss
annotations, using the new
Node.js package importer in sass.sassOptions.importers
by default.~
imports for external modules.
Replace ~
with pkg:
to use the newer Dart Sass Node.js package importer.sass.importers
option (use sass.sassOptions.importers
instead).sass.includes
option (use sass.use
instead).sass-embedded
instead of sass
internallyChangelog
5.0.0: 2022-12-14
No changes from v5.0.0-beta.7
. Changes since v4.0.2
:
<iframe>
which allows them to make use
of user-supplied CSS custom properties (and a limited subset of Herman
styles). Custom properties are made available via the new customPreviewCSS
or existing customCSS
options. To be included, custom properties must be
declared on html
, body
, or :root
.@sizes {ruler}
maps now display as a borderutilities.add()
to merge data, instead of overrideutilities.each-value()
will pass each value of a map through a given
function (this is the previous behavior of passing args to add()
)utilities.each-key()
will pass each key of a map through a given functioncustomSourceMap
option (default: customCSS
option + .map
) to allow
copying source-map file along with customCSS
filecustomPreviewCSS
or existing
customCSS
options. To be included, declarations must be declared on html
,
body
, or :root
in the stylesheet set via customPreviewCSS
or customCSS
settings. (All @font-face
at-rules are included.)^1.45.0
) for @example scss
annotations, using the
updated Dart Sass JavaScript
API. The sass.implementation
option is removed, along with support for node-sass
.sass.importer
option to sass.importers
, matching the Dart Sass
option.sass.includePaths
and sass.outputStyle
options. These are replaced
with a new sass.sassOptions
option, which accepts any options that Dart Sass
accepts (e.g. loadPaths
or style
). See the Dart Sass
documentation
for more details.utilities.add()
no longer supports map-compilation functions and arguments,
since there are two reasonable approaches.
Maps that need to be compiled for Herman
must now be compiled before they are added.
That can still be done using either:
utilities.each-value()
will pass each value of a map
through a given function
(this is the previous behavior of passing args to add()
)utilities.each-key()
will pass each key of a map
through a given functionautofill
annotations for comments that Herman treats as "prose"
(i.e. separated from documented code by one or more newlines).@use '~/sassdoc-theme-herman/scss/utilities';
Changelog
5.0.0-beta.7: 2022-12-07
customPropertiesCSS
option to customPreviewCSS
font-family
, font-size
,
@font-face
) to color, font, ratio, and size previews. To be included,
declarations must be declared on html
, body
, or :root
in the stylesheet
set via customPreviewCSS
or customCSS
settings. (All @font-face
at-rules
are included.)Changelog
5.0.0-beta.6: 2022-11-23
Changelog
5.0.0-beta.5: 2022-11-22
^1.45.0
) for @example scss
annotations,
using the updated Dart Sass JavaScript
API. The sass.implementation
option is removed, along with support for node-sass
.sass.importer
option to sass.importers
, matching the
Dart Sass
option.sass.includePaths
and sass.outputStyle
options. These
are replaced with a new sass.sassOptions
option, which accepts any options
that Dart Sass accepts (e.g. loadPaths
or style
). See the Dart Sass
documentation
for more details.customPropertiesCSS
or existing
customCSS
options. To be included, custom properties must be declared on
html
, body
, or :root
.Changelog
5.0.0-beta.4: 2022-11-11
Changelog
5.0.0-beta.3: 2022-11-07
<iframe>
which allows them to
make use of user-supplied customCSS
and a limited subset of Herman styles.