Phaiax
592fb17c70
Search: Add handlebars variable and do not load js libraries if search is disabled.
2017-11-26 19:52:59 +01:00
Phaiax
fa88440e7e
Search: Fix scroll-to-top on escape (unmark). Rearrange javascript and add comments
2017-11-26 19:06:04 +01:00
Phaiax
66ae6b6e92
Search: Update elasticlunr-rs. Remove old code. Don't generate index if search is disabled
2017-11-26 19:06:04 +01:00
Phaiax
26e16a83eb
Search: Result navigation with up/down
2017-11-26 19:06:04 +01:00
Phaiax
4dcba1943c
Search: Configuration via book.toml
2017-11-26 19:06:04 +01:00
Phaiax
850df09670
Search: Improve search result snippets. Cancel highlight with ESC.
2017-11-26 19:06:04 +01:00
Phaiax
a198e99fa9
Search: Fine tuning
...
* remove searchindex feature (nightly requirement of elasticlunr-rs dropped)
* some documentation
* refactor BookItems iterator
* add iterator for parents
* Include paragraph structure in hierarchy
* Fix url and specialchar handling
* Use complete index
2017-11-26 19:06:04 +01:00
Phaiax
aa1f02f7b2
Search: Style the other themes, emphase active header.
2017-11-26 19:06:04 +01:00
Phaiax
c487a95d24
Search: Refactor, refine history behaviour, add breadcrumbs
2017-11-26 19:06:04 +01:00
Phaiax
379c6ff616
Search: Move results to the right, fix mobile, history handling, highlight search terms.
2017-11-26 19:06:04 +01:00
Phaiax
18a1dc08c8
Render markdown into searchindex for elasticlunr. (feature gated because nightly requirement)
2017-11-26 19:06:04 +01:00
Phaiax
893dc39b60
Search: Add UI, elasticlunr.js, demo by indexing current page
2017-11-26 19:06:04 +01:00
Anna Liao
5ce05a79be
updated links from azerupi to rust-lang-nursery ( #489 )
2017-11-22 11:35:18 +01:00
Jacob Wahlgren
3d5eb48e32
Refactor navigation helpers ( #465 )
...
* Refactor navigation helpers
* Target::find: take previous_item by reference
This makes more sense for find as an interface, though it causes a
second clone in some cases. Maybe rustc is smart here?
* Test next and previous navigation helpers
* Add more next/previous tests
2017-11-18 19:17:26 +08:00
Michael Bryan
5eff572dbb
Updated the warning to give some basic migration instructions
2017-11-12 21:37:39 +08:00
Michael Bryan
238dfb7d1d
Added in legacy config format support
2017-11-12 21:37:38 +08:00
Michael Bryan
c25c5d72c8
Went back and simplified Config to be a smart wrapper around toml::Table
2017-11-12 21:37:38 +08:00
Michael Bryan
3aa6436679
Added in things from @Phaiax's review
2017-11-12 21:37:38 +08:00
Michael Bryan
d37821c194
Rebased after #438
2017-11-12 21:37:38 +08:00
Michael Bryan
1b5137c84e
All tests pass again :)
2017-11-12 21:37:37 +08:00
Michael Bryan
18c725ee12
Integration tests pass again
2017-11-12 21:37:37 +08:00
Michael Bryan
1743f2a39f
Removed the now redundant config files
2017-11-12 21:37:37 +08:00
Michael Bryan
cee3296a32
main library tests pass
2017-11-12 21:37:37 +08:00
Michael Bryan
ddb0834da8
Upgraded binaries to new configuration API
2017-11-12 21:37:36 +08:00
Michael Bryan
b74c2c18ef
Removed all references to old the configuration from the html renderer
2017-11-12 21:37:36 +08:00
Michael Bryan
c056b5cbd0
Removed old configs from MDBook
2017-11-12 21:37:36 +08:00
Michael Bryan
8d7970b32d
Changed to the new config types
2017-11-12 21:37:36 +08:00
Michael Bryan
1d22a9a040
Added some basic deserializing tests and helpers
2017-11-12 21:37:36 +08:00
Michael Bryan
6059883229
Added some basic configuration objects
2017-11-12 21:37:35 +08:00
Michael Bryan
79dd03e8e9
Merge pull request #471 from stgn/theme-popup-absolute
...
Use absolute positioning for theme popup
2017-11-10 13:31:12 +08:00
François
aecc403fb8
add tooltip to icons ( #477 )
...
add tooltip to icons and previous/next chapter links
2017-10-27 14:46:55 +02:00
Mathieu David
cd711bfb1c
Merge pull request #456 from Michael-F-Bryan/conditional-ga
...
Conditional Google Analytics
2017-10-18 14:10:53 +02:00
Mathieu David
afd9ccb7b1
Merge pull request #461 from Michael-F-Bryan/move-custom-js
...
Custom JS belongs at the bottom
2017-10-18 14:09:14 +02:00
Shane Nelson
dd3bef8000
Use absolute positioning for theme popup
2017-10-16 21:40:32 -04:00
Jacob Wahlgren
7e5892bd35
Ignore unhelpful clippy warning
...
As discussed in https://github.com/azerupi/mdBook/pull/466
2017-10-12 22:14:48 +02:00
Jacob Wahlgren
56cee872e8
Box Handlebars template error
...
See https://github.com/azerupi/mdBook/pull/466#issuecomment-335450110
2017-10-12 21:50:33 +02:00
Michael Bryan
a554390aa2
Slightly cleaned up the google analytics tag (skip ci)
2017-10-09 09:53:02 +08:00
Jacob Wahlgren
8f6523a94c
Fix some clippy warnings
2017-10-07 18:11:05 +02:00
Michael Bryan
ac9c150902
Moved custom JS to the bottom
2017-10-04 19:59:10 +08:00
Michael Bryan
f2e56c887b
Got the logic around the wrong way
2017-10-04 19:57:06 +08:00
Michael Bryan
b4a12fa723
Made sure google analytics isn't included when inspecting locally
2017-10-04 19:57:06 +08:00
Pratik Karki
382fc4139b
run rustfmt on the repository #398(Updated) ( #438 )
...
rustfmt the repository #398
2017-10-03 13:40:23 +02:00
Mathieu David
a6d4881e00
Merge pull request #450 from Zengor/master
...
Call playground with /execute
2017-09-23 21:35:41 +02:00
steveklabnik
9b64db908f
prefix sidebar too
2017-09-22 13:58:45 -04:00
steveklabnik
f562878131
I forgot one theme, thanks budziq
2017-09-22 13:56:58 -04:00
Zengor
3823fc0e74
Call playground with /execute and not the legacy /evaluate.json
...
This commit changes the url used to call the playground, and the
request parameter format to go with it. The older evaluate is
available in the playground as a form of backwards compatibility
and swithcing now opens way for using newer features.
2017-09-21 00:24:47 -03:00
steveklabnik
793fb8f654
Change key for theme to not clobber old books
...
Fixes https://github.com/azerupi/mdBook/issues/448
2017-09-19 16:59:16 -04:00
Bartłomiej T. Listwon
911683d2cf
Fix styling regression on print media in chromium
...
Forces 0px left padding on print view even if sidebar is visible
2017-09-18 22:10:31 +02:00
Bartłomiej T. Listwon
91fd8a2865
Fix code snippet font size a little smaller in FF
2017-09-18 11:18:21 +02:00
Steve Klabnik
a3b6e549e2
Merge pull request #440 from budziq/force_runnable
...
added `mdbook-runnable` infostring support
2017-09-14 12:48:29 -04:00