Summary Files Commits Branches @commit @diff @stats
path: root / docs / src / _layout
diff options
context:
space:
mode:
3 files changed, 52 insertions, 5 deletions
-rw-r--r--docs/src/_layout/_docs-layout.pug21
-rw-r--r--docs/src/_layout/_example-layout.pug35
-rw-r--r--docs/src/_layout/_layout.pug1
diff --git a/docs/src/_layout/_docs-layout.pug b/docs/src/_layout/_docs-layout.pug
index a935fc1..9ad4772 100644
--- a/docs/src/_layout/_docs-layout.pug
+++ b/docs/src/_layout/_docs-layout.pug
@@ -6,10 +6,13 @@ block content
.docs-navbar
a.off-canvas-toggle.btn.btn-link.btn-action(href='#sidebar')
i.icon.icon-menu
- .btns
- a.btn.btn-primary.float-right(href='https://github.com/picturepan2/spectre' target='_blank') GitHub
- a.btn.mr-1.float-right(href='https://www.paypal.me/picturepan2' target='_blank') Sponsor
+ .btns.d-flex
+ input.docs-search.form-input(type="text" placeholder="Search Docs")
+ a.btn.ml-1(href='https://www.paypal.me/picturepan2' target='_blank') PayPal
+ a.btn.btn-primary.ml-1(href='https://github.com/picturepan2/spectre' target='_blank') GitHub
+
+
#sidebar.docs-sidebar.off-canvas-sidebar
.docs-brand
if slug != parent
@@ -47,6 +50,7 @@ block content
'Layout',
{url: 'grid', name: 'Flexbox grid'},
{url: 'responsive', name: 'Responsive'},
+ {url: 'hero', name: 'Hero'},
{url: 'navbar', name: 'Navbar'}
)
+docs-accordion(
@@ -103,4 +107,13 @@ block content
a.off-canvas-overlay(href='#close')
.off-canvas-content
#content.docs-content
- block docs-content \ No newline at end of file
+ block docs-content
+
+ script(type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js")
+ script.
+ docsearch({
+ apiKey: 'bede06373c5a1fa3c1bbe8401e24c653',
+ indexName: 'picturepan2_spectre',
+ inputSelector: '.docs-search',
+ debug: true
+ }); \ No newline at end of file
diff --git a/docs/src/_layout/_example-layout.pug b/docs/src/_layout/_example-layout.pug
new file mode 100644
index 0000000..f74bc81
--- /dev/null
+++ b/docs/src/_layout/_example-layout.pug
@@ -0,0 +1,35 @@
+block variables
+ - var slug = ''
+ - var parent = ''
+ - var title = 'Spectre.css - A Lightweight, Responsive and Modern CSS Framework'
+ - var description = 'Spectre.css is a lightweight, responsive and modern CSS framework for faster and extensible development. Spectre provides basic styles for typography and elements, flexbox based responsive layout system, pure CSS components and utilities with best practice coding and consistent design language.'
+
+doctype html
+html(lang='en')
+ head
+ title= title
+ meta(charset='utf-8')
+ meta(name='robots' content='index, follow')
+ meta(name='viewport' content='width=device-width, initial-scale=1.0, shrink-to-fit=no')
+ meta(http-equiv='x-ua-compatible' content='ie=edge')
+ meta(name='description' content= description)
+ link(rel='shortcut icon' href='../img/favicons/favicon.ico')
+ link(rel='icon' href='../img/favicons/favicon.png')
+ link(rel='stylesheet' href='../dist/spectre.min.css')
+ link(rel='stylesheet' href='../dist/spectre-icons.min.css')
+ link(rel='stylesheet' href='../dist/spectre-exp.min.css')
+ link(rel='stylesheet' href='../dist/docs.min.css')
+
+ body
+ block content
+
+ script.
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-2702768-8', 'auto');
+ ga('send', 'pageview');
+
+ \ No newline at end of file
diff --git a/docs/src/_layout/_layout.pug b/docs/src/_layout/_layout.pug
index 53dca0e..6eb2e38 100644
--- a/docs/src/_layout/_layout.pug
+++ b/docs/src/_layout/_layout.pug
@@ -53,5 +53,4 @@ html(lang='en')
ga('create', 'UA-2702768-8', 'auto');
ga('send', 'pageview');
-
\ No newline at end of file