Merge branch 'main' into port-documentation

* main:
  Fix compatibility args
  Parse JS docs as HTML, not markdown
This commit is contained in:
Jonny Gerig Meyer 2023-05-24 10:43:29 -04:00
commit 20adcf9025
No known key found for this signature in database
3 changed files with 19 additions and 39 deletions

View File

@ -2,40 +2,38 @@
<div class="compatibility">
Compatibility{% if feature %} ({{ feature }}){% endif %}:
</div>
{% if dart != null %}
{%- if dart != null -%}
<div>
<dt>Dart Sass</dt>
<dd>{{ dart | implStatus }}</dd>
</div>
{% endif %}
{% if libsass != null %}
{%- endif -%}
{%- if libsass != null -%}
<div>
<dt>LibSass</dt>
<dd>{{ libsass | implStatus }}</dd>
</div>
{% endif %}
{% if node != null %}
{%- endif -%}
{%- if node != null -%}
<div>
<dt>Node Sass</dt>
<dd>{{ node | implStatus }}</dd>
</div>
{% endif %}
{% if ruby != null %}
{%- endif -%}
{%- if ruby != null -%}
<div>
<dt>Ruby Sass</dt>
<dd>{{ ruby | implStatus }}</dd>
</div>
{% endif %}
{% if details | strip %}
<div>
{% # The no-op href here ensures that this toggle is focusable in browsers. %}
<a href="javascript:;">▶</a>
</div>
{% endif %}
{%- endif -%}
{%- if details | strip -%}
{%- # The no-op href here ensures that this toggle is focusable in browsers. -%}
<div><a href="javascript:;">▶</a></div>
{%- endif -%}
</dl>
{% if details | strip %}
{%- if details | strip -%}
<div class="sl-c-callout sl-c-callout--impl-status">
{{ details | markdown }}
</div>
{% endif %}
{%- endif -%}

View File

@ -1,7 +1,7 @@
{% # Arguments are (in order): `dart`, `libsass`, `node`, `ruby` %}
{% compatibility '1.23.0', false, false %}
Only Dart Sass currently supports `@use`. Users of other implementations must
use the [`@import` rule][] instead.
{% compatibility '1.23.0', false, null, false %}
Only Dart Sass currently supports `@use`. Users of other implementations must
use the [`@import` rule][] instead.
[`@import` rule]: /documentation/at-rules/import
[`@import` rule]: /documentation/at-rules/import
{% endcompatibility %}

View File

@ -1,9 +1,4 @@
const {
DefaultTheme,
DefaultThemeRenderContext,
JSX,
UrlMapping,
} = require('typedoc');
const { DefaultTheme, DefaultThemeRenderContext, JSX } = require('typedoc');
function bind(fn, first) {
return (...r) => fn(first, ...r);
@ -183,19 +178,6 @@ title: ${JSON.stringify(`${page.model.name} | JS API`)}
</div>
`;
}
getUrls(project) {
return super
.getUrls(project)
.map(
(mapping) =>
new UrlMapping(
`${mapping.url.replace(/\.html$/, '.md')}`,
mapping.model,
mapping.template,
),
);
}
}
// TODO: See if there's a graceful way to support "Heads up!" and Compatibility