mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
docs: add GitHub buttons and improve option docs
This commit is contained in:
Vendored
+1
@@ -3,6 +3,7 @@
|
|||||||
<h2 id="banner-title">{{ page.subtitle }}</h2>
|
<h2 id="banner-title">{{ page.subtitle }}</h2>
|
||||||
<div id="banner-start">
|
<div id="banner-start">
|
||||||
<code id="banner-start-command">npm install liquidjs</code><a id="banner-start-link" href="./tutorials/setup.html"><i class="icon-arrow-right"></i></a>
|
<code id="banner-start-command">npm install liquidjs</code><a id="banner-start-link" href="./tutorials/setup.html"><i class="icon-arrow-right"></i></a>
|
||||||
|
<a id="banner-github-link" href="https://github.com/{{ config.github }}" target="_blank" rel="noreferrer">GitHub</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="banner-share">{{ partial('partial/share') }}</div>
|
<div id="banner-share">{{ partial('partial/share') }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
{{ js('js/main') }}
|
{{ js('js/main') }}
|
||||||
|
|
||||||
|
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
document.getElementById('search-input-wrap').classList.add('on');
|
document.getElementById('search-input-wrap').classList.add('on');
|
||||||
|
|||||||
+4
-1
@@ -18,7 +18,10 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<a href="https://github.com/{{ config.github }}" class="main-nav-link icon-nav-link"><i class="icon-github"></i> <span class="icon-nav-title">GitHub</span></a>
|
<div class="main-nav-link icon-nav-link github-buttons-wrap">
|
||||||
|
<a class="github-button" href="https://github.com/harttle/liquidjs" data-color-scheme="no-preference: light; light: light; dark: dark;" data-size="large" data-show-count="true" aria-label="Star harttle/liquidjs on GitHub">Star</a>
|
||||||
|
<a class="github-button" href="https://github.com/sponsors/harttle" data-color-scheme="no-preference: light; light: light; dark: dark;" data-size="large" aria-label="Sponsor @harttle on GitHub">Sponsor</a>
|
||||||
|
</div>
|
||||||
<a id="mobile-nav-toggle">
|
<a id="mobile-nav-toggle">
|
||||||
<span class="mobile-nav-toggle-bar"></span>
|
<span class="mobile-nav-toggle-bar"></span>
|
||||||
<span class="mobile-nav-toggle-bar"></span>
|
<span class="mobile-nav-toggle-bar"></span>
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ export interface LiquidOptions {
|
|||||||
fs?: FS;
|
fs?: FS;
|
||||||
/** keyValue separator */
|
/** keyValue separator */
|
||||||
keyValueSeparator?: string;
|
keyValueSeparator?: string;
|
||||||
/** Render from in-memory `templates` mapping instead of file system. File system related options like `fs`, 'root', and `relativeReference` will be ignored when `templates` is specified. */
|
/** Render from an in-memory `templates` mapping instead of the file system. When `templates` is set, Liquid uses the provided mapping for template lookup (including includes, layouts, and partials), and file-system options such as `fs`, `root`, `partials`, `layouts`, and `relativeReference` are effectively bypassed for those lookups. */
|
||||||
templates?: {[key: string]: string};
|
templates?: {[key: string]: string};
|
||||||
/** the global scope passed down to all partial and layout templates, i.e. templates included by `include`, `layout` and `render` tags. */
|
/** the global scope passed down to all partial and layout templates, i.e. templates included by `include`, `layout` and `render` tags. */
|
||||||
globals?: object;
|
globals?: object;
|
||||||
|
|||||||
+1
-3
@@ -9,9 +9,7 @@
|
|||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"downlevelIteration": true,
|
"strict": true
|
||||||
"strict": true,
|
|
||||||
"suppressImplicitAnyIndexErrors": true
|
|
||||||
},
|
},
|
||||||
"all": true,
|
"all": true,
|
||||||
"exclude": [ "node_modules", "dist", "demo", "test" ]
|
"exclude": [ "node_modules", "dist", "demo", "test" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user