Commit Graph
50 Commits
Author SHA1 Message Date
Christopher Rogers a4e1fb3c24 Adds js handler for setting search info box width equal to content width
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
2014-04-16 15:05:05 -07:00
Christopher Rogers 0ebbae94fe Cleans up some css
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
2014-04-16 14:11:43 -07:00
Christopher Rogers 440c799c4c Removes lunr stemmer from search index pipeline
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
2014-04-16 14:03:58 -07: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 0a0e84b8e8 Standardizes search styles
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
2014-04-15 13:40:45 -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 5892700b5c Fixes toc alignment on search and adds highlight library
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
2014-04-11 10:27:15 -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 f2d1387971 Adds search icon
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
2014-04-10 17:46:39 -07:00
Christopher Rogers e669a0d4ac Adds rudimentary search support
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
2014-04-09 18:12:55 -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 b171d3c48a Organizes javascript into libraries and application code
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
2014-04-09 14:54:23 -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
Christopher Rogers 68807cd485 Fixes some leakage in the language selector
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
2014-04-09 14:14:24 -07:00
Robert Lord e307f1dbbb Update jQuery to work over SSL, resolves #18 2014-03-30 22:46:48 -04:00
Robert Lord 88fcba6798 Add explanation of partials to _errors.md 2014-03-30 22:42:54 -04:00
Marcio Lima b90436e48e Add ability to split content in include files. 2014-03-28 12:29:31 -03:00
Robert Lord 35598a4e16 Add styling for horizontal rules 2013-12-31 16:34:19 -08:00
Robert Lord d744b8a22f Add styling for definition lists 2013-12-20 10:44:14 -08:00
Robert Lord 198484ef2b Add hack to prevent tocify from animating on page load 2013-10-31 13:44:02 -07:00
Robert Lord d3ab3cc4b7 Add asides for nice-looking notes and warnings
You can now use <aside> with the classes

- warning
- success
- notice

to add little colored notes to your API docs! Examples are in
source/index.md.

Also, note that if you have a custom variables.scss, you'll have
to add

+$aside-notice-bg: #8fbcd4;
+$aside-warning-bg: #c97a7e;
+$aside-success-bg: #6ac174;

to it.
2013-10-31 12:26:07 -07:00
Robert Lord bdd05b3c0c Fix bug where weird white block could appear at bottom of page.
This bug occured if the final code sample extended beyond the
explanation at the bottom of the page.

To fix it, I simply made the background color of body a soft
blue.
2013-10-31 10:56:54 -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 e2b70aff42 Change print stylesheet, fix slight bug with naming
Also changed README wording slightly.
2013-10-25 11:39:53 -07:00
Robert Lord 834119ecd8 Add print stylesheet 2013-10-25 11:33:19 -07:00
Robert Lord 26d47b06a0 Fix bug where syntax.css would fail to compile, causing errors 2013-10-21 15:17:35 -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 6a22d7c11d Update SCSS, fix bug where code annotations had wrong font. 2013-10-16 12:45:00 -07:00
Robert Lord 04c0abbcfa Refactor SCSS for better organization, readability, and customizability. 2013-10-11 15:55:46 -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 489fb16b94 Update README.md and default index.md
Seriously upgraded the README documentation.
ALso, added a tiny fix to the Kittn example in index.md.
2013-10-09 15:18:14 -07:00
Robert Lord 8aa611f77a Adjust styling of border below h1 tag to be more consistent 2013-10-07 12:30:32 -07:00
Robert Lord 84b7705fd1 Add Kittn example file 2013-10-07 12:29:37 -07:00
Robert Lord b15573155e Added sample code to index.md 2013-10-03 18:02:49 -07:00
Robert Lord e641bd7d4a Add generic logo, remove TripIt logos. 2013-10-03 18:02:18 -07:00
Robert Lord 1030376e37 More style fixes and changes 2013-10-01 13:32:30 -07:00
Robert Lord f7e6117e85 Various style updates and bugfixes 2013-09-27 13:42:57 -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 7ae21ae972 Fix padding bug with blockquotes in the right area. 2013-09-25 10:15:59 -07:00
Robert Lord fd80b240bd Make every other table row have a different color 2013-09-24 14:54:42 -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 7ba798c51d Overflow fixes and toc horizontal scrollbar fix 2013-09-24 10:35:33 -07:00
Robert Lord 5cc9188e3c Fix tocify to reset cache on browser window resize 2013-09-24 09:47:40 -07:00
Robert Lord 9e84ebf28c Add margin to bottom of tables 2013-09-24 09:39:19 -07:00
Robert Lord 541998da39 Change code buttons to refresh the page with the language name after the ? in the url
This commit has two benefits:

- Now, copying the URL will actually copy the current language as well. You don't need to think to add a language

- If a language moves objects on the page down, the tocify header location cache will not be invalid, since it is generated on page load. Therefore, if code moves some elements down, since the page is reloaded, the cache will also be regenerated, to reflect the real locations of the headers.
2013-09-23 12:06:39 -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