50 Commits

Author SHA1 Message Date
Matthew Peveler
ef09832318 Support specifying custom meta tags in YAML (#1453) 2021-05-31 11:31:41 -04:00
Matthew Peveler
bae7edc397 add copy to clipboard icon to code boxes (#1258)
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
2020-06-22 16:35:41 -04:00
Matthew Peveler
f720bd9387 use different rouge theme for printing (#1259)
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
2020-06-22 16:35:41 -04:00
Matthew Peveler
aace071f89 fix bc style breaks from rouge 3.x (#1226)
* fix bc style breaks from rouge 3.x

Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>

* use bright_pink for Name::Label

Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
2020-05-19 16:53:09 -04:00
Robert Lord
b2119b0313 Fix ToC issues, fix #995 2018-07-05 16:28:05 -07:00
Robert Lord
b742b60413 Fix broken list, replaces #918 2018-01-20 12:41:03 -06:00
Robert Lord
7ef0fd4327 Parameterize ToC titles, remove html tags from slug (thx seweil), fixes #904 2017-11-23 10:23:52 -08:00
Ben
adf815e35f Fix data-title attribute for H2 elements in TOC (#884)
I believe the data-title attribute for H2 elements was mistakenly using the parent H1 content as its value, rather than its own content.
2017-09-30 16:39:15 -05:00
Robert Lord
53e2f23e5c Static table of contents (#701)
* Add showing/hiding submenus, fix sidebar styling, fix bug where includes wouldn't appear in ToC

* Update ToC to highlight last header if page is scrolled to very bottom, fixes #280

* Set HTML title to current h1 section text, see #133

* Fix menu not opening on mobile

* Add back increase toc item height on mobile

* Fix padding bug

* Add back in ToC sliding animation
2017-02-24 11:57:39 -06:00
Robert Lord
e7f5144e4c Make logo-margin work even if search is enabled, see #692 for details 2017-02-24 11:22:22 -06:00
Robert Lord
b3c1a92484 Switch theme from Monokai to the less neon MonokaiSublime 2017-02-23 21:50:02 -06:00
Robert Lord
0d6c996595 Update code highlighting theme from Base16::Monokai to just Monokai 2017-02-23 21:50:02 -06:00
Robert Lord
20ed753723 Fix another bug where disabling language tabs didn't properly hide HTML 2016-11-24 11:26:10 -06:00
kissrain
a8e3737200 fix -margin 2016-11-24 11:26:10 -06:00
Robert Lord
979aaa91d5 Fixes #440, version 1.3.2 2016-03-01 20:43:54 -06:00
Robert Lord
7f1d6da6dc Remove last inline script 2016-01-27 02:00:01 -06:00
Robert Lord
a4b9208af0 Move jquery to be local 2016-01-27 01:37:16 -06:00
Robert Lord
7f88aafcba Upgrade to middleman 4 2016-01-26 12:52:03 -06:00
Rouven Weßling
3a236aa81e Update jQuery to version 2.1.3 2015-04-30 16:01:17 -05:00
Robert Lord
60d1dbd37d Update search results to scroll, remove initial dummy text 2014-07-03 00:11:02 -07:00
Robert Lord
18cd104883 Add better search results in a sliding search results area 2014-07-02 23:43:25 -07:00
Robert Lord
1b1427c3ee Add placeholder to search box 2014-07-02 22:46:14 -07:00
Robert Lord
324da17ba3 Fix bugs with toc not highlighting, begin search overhaul 2014-07-02 22:34:58 -07:00
Robert Lord
b5419b1e9c Add background to nav button 2014-06-14 19:41:08 -07:00
Robert Lord
1478579c59 Add language tabs to navbar on phone 2014-06-12 01:32:25 -07:00
Robert Lord
c2c35cfa25 Add retracting sidebar for tablets 2014-06-12 00:01:52 -07:00
Robert Lord
0aff03f8da Fixes #77, update sites without search
Sites without search now do not include search.js or lunr.js,
making the javascript for those pages much faster to load.
2014-06-11 21:58:33 -07:00
Robert Lord
84b3e5e3d6 Add search frontmatter key to specify visibility of search 2014-04-21 12:18:44 -04:00
bootstraponline
03b28598cc Fix flash as suggested by @lord 2014-04-19 22:01:56 -04:00
Robert Lord
0feb513407 Adjust search info appearance, fix Firefox bug 2014-04-19 21:36:00 -04:00
Christopher Rogers
3c4e0d0bae Switches jQuery to load through Google CDN
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
2014-04-15 13:44:56 -05:00
Christopher Rogers
4d568401a3 Improves no results notice and removes highlight and notice on search field blur
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
2014-04-11 20:36:03 -07:00
Christopher Rogers
535a3b0486 Adds 'no results found' message to search
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
2014-04-11 18:01:55 -07:00
Christopher Rogers
59ee05c606 Updates search field markup and style
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
2014-04-10 17:47:01 -07:00
Christopher Rogers
d1b98be182 Cleans up layout
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
2014-04-09 18:12:05 -07:00
Christopher Rogers
adf94ffbf6 Simplifies layout language selection and js init logic
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
2014-04-09 14:45:41 -07:00
Robert Lord
e307f1dbbb Update jQuery to work over SSL, resolves #18 2014-03-30 22:46:48 -04:00
Marcio Lima
b90436e48e Add ability to split content in include files. 2014-03-28 12:29:31 -03:00
Robert Lord
198484ef2b Add hack to prevent tocify from animating on page load 2013-10-31 13:44:02 -07:00
Robert Lord
c404bc02df Add default language selecting with localStorage
Now, Slate will use localStorage to track the last selected
language, so if the user visits again with no language in the URL,
they will be redirected to the last language they used.

This update also fixes a bug with how the layout inserts the
language names into the javascript. Previously, they would be,
(for some inane reason) arrays within arrays. It is now just
an array. Whoever wrote that previous code was clearly a fool.
2013-10-29 10:40:07 -07:00
Robert Lord
834119ecd8 Add print stylesheet 2013-10-25 11:33:19 -07:00
Robert Lord
dc33dfe0a7 Add table of contents footer links feature
Now you can add links to the bottom of your table of contents!
Documentation has also been changed to reflect this new
feature.

Please note that if you have a custom variables.scss, you'll have
to merge in this line:

    $nav-footer-border-color: #666;
2013-10-21 14:09:38 -07:00
Robert Lord
e5658f498a Update copyright year 2013-10-11 11:55:42 -07:00
Robert Lord
91ff8a738a Add copyright information to source files 2013-10-11 11:28:04 -07:00
Robert Lord
1030376e37 More style fixes and changes 2013-10-01 13:32:30 -07:00
Robert Lord
38ad55851a Change language declaration
Now, if no languages are specified, the language selection bar simply doesn't appear.

It has also been renamed from "languages" to "language_tabs".

Additionally, now language names default to the markdown name. They can still be overridden by the languagename:Display Name syntax.
2013-09-27 13:37:36 -07:00
Robert Lord
28f442e529 Add automatic hash generation with redcarpet dev, and change tocify scrollHistory to be compatible with the ids 2013-09-24 12:25:12 -07:00
Robert Lord
bc79a655e5 More changes 2013-09-23 10:38:13 -07:00
Robert Lord
6c077ba873 Add stylesheets, javascript, and html for documentation generation 2013-09-17 15:44:08 -07:00
Robert Lord
a1e673e599 Initial commit, with default middleman code 2013-09-13 15:24:31 -07:00