mirror of https://github.com/lukechilds/docs.git
moxiegirl
6 years ago
47 changed files with 1897 additions and 558 deletions
@ -0,0 +1,42 @@ |
|||
<script type="text/javascript"> |
|||
/* Create a configuration object */ |
|||
var ss360Config = { |
|||
/* Your site id */ |
|||
siteId: 'blockstack', |
|||
/* A CSS selector that points to your search box */ |
|||
searchBox: { |
|||
selector: '#searchBox' |
|||
}, |
|||
results: { |
|||
embedConfig: undefined, // {'url':undefined,'contentBlock':'.page-content-body'}, // if url is given the page will change to that URL and look for the content block there to insert the results |
|||
fullScreenConfig: undefined, // {trigger: '#ss360-search-trigger', caption: 'Search this site'}, trigger is the CSS selector to the element that starts the search full screen overlay and searchCaption the caption on the full screen search page |
|||
caption: 'Found #COUNT# search results for \"#QUERY#\"', // the caption of the search results |
|||
group: true, // whether results should be grouped if content groups are available |
|||
filters: undefined, |
|||
num: 96, // the maximum number of search results to be shown |
|||
highlightQueryTerms: true, // whether to highlight the query terms in search results |
|||
moreResultsButton: "Show more results", // HTML for the more results button, all results will be shown if this is null |
|||
noResultsText: 'Sorry, we have not found any matches for your query.', // the text to show when there are no results |
|||
queryCorrectionText: 'Did you mean "#CORRECTION#"?', |
|||
searchQueryParamName: 'ss360Query', // the name of the search query parameter |
|||
linksOpenNewTab: false, // should clicking on the result links open a new tab/window? |
|||
showSearchBoxLayover: true, //whether to show search box in search result layover |
|||
moreResultsPagingSize: 12, // the number of new results to show each time the more results button is pressed (max: 24) |
|||
orderByRelevanceText: "Relevance" // the text to be shown in order select box to describe 'order by relevance' option |
|||
}, |
|||
suggestions: { |
|||
show: false, // whether to show search suggestions |
|||
maxQuerySuggestions: 3, // the maximum number of query suggestions |
|||
querySuggestionHeadline: undefined, // the headline of the query suggestions, leave blank if no headline should be shown |
|||
emptyQuerySuggestions: undefined, |
|||
showImages: false, // show images in search suggestions |
|||
num: 6, // the maximum number of search suggestions to be shown |
|||
minChars: 3, // minimum number of characters before the suggestions shows, default: 3, |
|||
maxWidth: 'auto', // the maximum width of the suggest box, default: as wide as the input box, at least 275px |
|||
throttleTime: 300, // the number of milliseconds before the suggest is triggered after finished input, default: 300ms |
|||
extraHtml: undefined, // extra HTML code that is shown in each search suggest, you can even show values of datapoints here, |
|||
highlight: true, // whether matched words should be highlighted, default: true |
|||
} |
|||
}; |
|||
</script> |
|||
<script src="https://cdn.sitesearch360.com/sitesearch360-v11.min.js" async></script> |
@ -1,70 +0,0 @@ |
|||
--- |
|||
layout: default |
|||
--- |
|||
|
|||
<div class="uk-section"> |
|||
<div class="uk-container"> |
|||
<div class="uk-grid-large" data-uk-grid> |
|||
|
|||
<div class="sidebar-fixed-width uk-visible@m"> |
|||
<div class="sidebar-docs uk-position-fixed"> |
|||
{% for section in site.data.navigation_bns %} |
|||
<h5>{{ section.title }}</h5> |
|||
<ul class="uk-nav uk-nav-default doc-nav"> |
|||
{% for doc in section.docs %} |
|||
{% assign doc_url = doc | prepend:"/" | append:".html"%} |
|||
<!-- {% assign p = site.docs | where:"url", doc_url | first %} --> |
|||
{% for col in site.collections %} |
|||
{% for item in col.docs %} |
|||
{% if item.url == doc_url %} |
|||
{% assign doc_title = item.title %} |
|||
{% else %} |
|||
{% comment %}Do nothing{% endcomment %} |
|||
{% endif %} |
|||
{% endfor %} |
|||
{% endfor %} |
|||
<li class="{% if doc_url == page.url %}uk-active{% endif %}"><a href="{{ doc_url }}">{{ doc_title }}</a></li> |
|||
{% endfor %} |
|||
</ul> |
|||
{% endfor %} |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="uk-width-1-1 uk-width-expand@m"> |
|||
|
|||
<article markdown="span" class="uk-article"> |
|||
|
|||
<h1 class="uk-article-title">{{ page.title | escape }}</h1> |
|||
|
|||
{% if page.subtitle %}<p class="subtitle uk-text-lead uk-text-muted">{{ page.subtitle }}</p>{% endif %} |
|||
|
|||
<div class="uk-article-meta uk-margin-top uk-margin-medium-bottom"> |
|||
{% include post-meta.html %} |
|||
</div> |
|||
|
|||
<div markdown="span" class="article-content"> |
|||
{{ content }} |
|||
{% include share.html %} |
|||
</div> |
|||
|
|||
<hr class="uk-margin-medium"> |
|||
|
|||
{% include paginate-doc.html %} |
|||
|
|||
{% include related-bns.html %} |
|||
|
|||
{% if site.disqus.shortname %} {% include disqus_comments.html %} {% endif %} |
|||
</article> |
|||
|
|||
<script> |
|||
// Table of contents scroll to |
|||
UIkit.scroll('#markdown-toc a', { |
|||
duration: 400, |
|||
offset: 120 |
|||
}); |
|||
</script> |
|||
|
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
@ -0,0 +1,2 @@ |
|||
# Redirect default Netlify subdomain to primary domain |
|||
https://docsproduction.netlify.com/* https://docs.blockstack.org/:splat 301! |
@ -1,5 +0,0 @@ |
|||
# About this `docs` directory |
|||
|
|||
The contents of this directory acts as source for material for |
|||
[docs.blockstack.org](https://docs.blockstack.org/), a searchabe documentation |
|||
site for all things Blockstack. |
Loading…
Reference in new issue