@zeropress/build-pages 0.5.6 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +105 -24
- package/action.yml +3 -0
- package/dist/action.js +1814 -334
- package/dist/prebuild.js +157 -24
- package/package.json +2 -2
- package/schemas/zeropress-build-pages.config.v0.1.schema.json +33 -12
- package/src/action.js +2 -1
- package/src/index.js +154 -3
- package/src/prebuild.js +178 -23
- package/themes/docs/assets/style.css +212 -0
- package/themes/docs/assets/theme.js +121 -0
- package/themes/docs/layout.html +20 -4
- package/themes/docs/page.html +2 -2
- package/themes/docs/partials/theme-scripts.html +1 -0
- package/themes/docs/post.html +1 -1
- package/themes/docs/theme.json +5 -6
package/themes/docs/layout.html
CHANGED
|
@@ -13,9 +13,24 @@
|
|
|
13
13
|
<header class="site-header">
|
|
14
14
|
<div class="shell site-header__inner">
|
|
15
15
|
<a class="brand" href="/">{{site.title}}</a>
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
<div class="site-header__actions">
|
|
17
|
+
<nav class="site-nav" aria-label="Primary navigation">
|
|
18
|
+
{{menu:primary}}
|
|
19
|
+
</nav>
|
|
20
|
+
{{#if site.search}}
|
|
21
|
+
<div class="site-search" data-site-search>
|
|
22
|
+
<form class="site-search__form" role="search" data-site-search-form>
|
|
23
|
+
<label class="visually-hidden" for="site-search-input">Search docs</label>
|
|
24
|
+
<input id="site-search-input" class="site-search__input" type="search" placeholder="Search docs" autocomplete="off" spellcheck="false" data-site-search-input>
|
|
25
|
+
<button class="site-search__button" type="submit">Search</button>
|
|
26
|
+
</form>
|
|
27
|
+
<div class="site-search__panel" data-site-search-panel hidden>
|
|
28
|
+
<p class="site-search__status" data-site-search-status>Type to search documentation.</p>
|
|
29
|
+
<ol class="site-search__results" data-site-search-results></ol>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
{{/if}}
|
|
33
|
+
</div>
|
|
19
34
|
</div>
|
|
20
35
|
</header>
|
|
21
36
|
<main id="content">
|
|
@@ -28,10 +43,11 @@
|
|
|
28
43
|
{{#else_if site.title}}
|
|
29
44
|
<p>{{site.title}}</p>
|
|
30
45
|
{{/if}}
|
|
31
|
-
{{#if site.footer.attribution
|
|
46
|
+
{{#if site.footer.attribution}}
|
|
32
47
|
<p>Published with <a href="https://zeropress.app" target="_blank" rel="noreferrer noopener">ZeroPress</a>.</p>
|
|
33
48
|
{{/if}}
|
|
34
49
|
</div>
|
|
35
50
|
</footer>
|
|
51
|
+
{{partial:theme-scripts}}
|
|
36
52
|
</body>
|
|
37
53
|
</html>
|
package/themes/docs/page.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<article class="shell doc-layout{{#if page.toc}} doc-layout--with-toc{{/if}}">
|
|
2
2
|
<div class="doc-content">
|
|
3
3
|
{{#if route.is_front_page}}
|
|
4
|
-
<div class="prose">
|
|
4
|
+
<div class="prose" {{#if site.search}}{{#if_neq page.discoverability "delist"}}data-pagefind-body{{/if_neq}}{{/if}}>
|
|
5
5
|
{{page.html}}
|
|
6
6
|
</div>
|
|
7
7
|
{{#else}}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<h1>{{page.title}}</h1>
|
|
11
11
|
{{#if page.excerpt}}<p class="lede">{{page.excerpt}}</p>{{/if}}
|
|
12
12
|
</header>
|
|
13
|
-
<div class="prose">
|
|
13
|
+
<div class="prose" {{#if site.search}}{{#if_neq page.discoverability "delist"}}data-pagefind-body{{/if_neq}}{{/if}}>
|
|
14
14
|
{{page.html}}
|
|
15
15
|
</div>
|
|
16
16
|
{{/if}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<script type="module" src="/assets/theme.js"></script>
|
package/themes/docs/post.html
CHANGED
package/themes/docs/theme.json
CHANGED
|
@@ -2,16 +2,15 @@
|
|
|
2
2
|
"name": "ZeroPress Build Pages Docs",
|
|
3
3
|
"namespace": "zeropress",
|
|
4
4
|
"slug": "zeropress-docs",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.6.0",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"runtime": "0.
|
|
7
|
+
"runtime": "0.6",
|
|
8
8
|
"description": "Bundled documentation theme for @zeropress/build-pages",
|
|
9
9
|
"features": {
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"postIndex": false
|
|
10
|
+
"post_index": false,
|
|
11
|
+
"search": true
|
|
13
12
|
},
|
|
14
|
-
"
|
|
13
|
+
"menu_slots": {
|
|
15
14
|
"primary": {
|
|
16
15
|
"title": "Primary navigation",
|
|
17
16
|
"description": "Top-level documentation navigation"
|