@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.
@@ -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
- <nav class="site-nav" aria-label="Primary navigation">
17
- {{menu:primary}}
18
- </nav>
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.enabled}}
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>
@@ -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>
@@ -3,7 +3,7 @@
3
3
  <p class="eyebrow">Post</p>
4
4
  <h1>{{post.title}}</h1>
5
5
  </header>
6
- <div class="prose">
6
+ <div class="prose" {{#if site.search}}{{#if_neq post.discoverability "delist"}}data-pagefind-body{{/if_neq}}{{/if}}>
7
7
  {{post.html}}
8
8
  </div>
9
9
  </article>
@@ -2,16 +2,15 @@
2
2
  "name": "ZeroPress Build Pages Docs",
3
3
  "namespace": "zeropress",
4
4
  "slug": "zeropress-docs",
5
- "version": "0.5.0",
5
+ "version": "0.6.0",
6
6
  "license": "MIT",
7
- "runtime": "0.5",
7
+ "runtime": "0.6",
8
8
  "description": "Bundled documentation theme for @zeropress/build-pages",
9
9
  "features": {
10
- "comments": false,
11
- "newsletter": false,
12
- "postIndex": false
10
+ "post_index": false,
11
+ "search": true
13
12
  },
14
- "menuSlots": {
13
+ "menu_slots": {
15
14
  "primary": {
16
15
  "title": "Primary navigation",
17
16
  "description": "Top-level documentation navigation"