Skip to content

Commit

Permalink
Hide 'Edit this page' link and other tweaks.
Browse files Browse the repository at this point in the history
Add 'title' tooltips to search features.
  • Loading branch information
digi-brain committed Jan 9, 2024
1 parent 2f02a56 commit 2d1f3fc
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
8 changes: 2 additions & 6 deletions github-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,17 @@ output:
dir: ./docs

content:
# When we want to show 'Edit this Page' link, change this setting and change the supplemental CSS for class `.edit-this-page` in `extra.css`.
edit_url: false
sources:
- url: https://github.com/GameBrains/er-contributors-guide.git
branches: master
# Set `edit_url` to `false` to disable the 'Edit this Page' link for pages that originate from this repository.
# You can achieve the same thing if you add empty credentials (simply `@`) in front of the domain in the URL.
edit_url: true
- url: https://github.com/GameBrains/er-core.git
branches: master
edit_url: true
- url: https://github.com/GameBrains/er-battles.git
branches: main
edit_url: true
- url: https://github.com/GameBrains/er-armies.git
branches: main
edit_url: true

ui:
bundle:
Expand Down
5 changes: 2 additions & 3 deletions local-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ output:
clean: true

content:
# When we want to show 'Edit this Page' link, change this setting and change the supplemental CSS for class `.edit-this-page` in `extra.css`.
edit_url: false
sources:
- url: ../er-contributors-guide
branches: HEAD
# Set `edit_url` to `false` to disable the 'Edit this Page' link for any page [all pages?] that originates from this repository.
# You can achieve the same thing if you add empty credentials (simply `@`) in front of the domain in the URL.
edit_url: false
- url: ../er-core
branches: HEAD
start_path:
Expand Down
4 changes: 4 additions & 0 deletions supplemental-ui/css/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,7 @@ ul.none {
.lead {
font-size: larger;
}

.edit-this-page {
display: none;
}
13 changes: 8 additions & 5 deletions supplemental-ui/partials/header-content.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,23 @@
<div class="navbar-item has-dropdown is-hoverable">
<span class="navbar-link">Resources</span>
<div class="navbar-dropdown">
<a class="navbar-item" href="https://builder.epicremastered.com/" target="_blank">Detachment builder</a>
<a class="navbar-item" href="https://builder.epicremastered.com/" target="_blank">Detachment Builder</a>
<a class="navbar-item" href="https://thehobby.zone/resources/e40k-compendium" target="_blank">Epic 40,000 Compendium</a>
</div>
</div>
<div class="navbar-item">
<!-- <div class="navbar-item">
<span class="control">
<a class="button is-primary" href="#">Download</a>
</span>
</div>
</div> -->
{{#if env.SITE_SEARCH_PROVIDER}}
<div class="navbar-item search hide-for-print">
<div id="search-field" class="field has-filter">
<input id="search-input" type="text" placeholder="Search..."{{#if page.home}} autofocus{{/if}}>
<label class="filter checkbox">
<input id="search-input" type="text" placeholder="Search…"{{#if page.home}} autofocus{{/if}}>
<span class="control">
<a class="button is-primary" href="{{{or site.url (or siteRootUrl siteRootPath)}}}/core/search-functions.html" title="Click to learn about advanced search functionality">?</a>
</span>
<label class="filter checkbox" title="Select to narrow your results to the current component only">
<input id="search-checkbox" type="checkbox" data-facet-filter="component:{{page.component.name}}"> only this component
</label>
</div>
Expand Down

0 comments on commit 2d1f3fc

Please sign in to comment.