Eric Huss
802e7bffc3
Make the arrow keys honor RTL.
...
At least to my understanding, the pages will flip in the opposite direction.
2023-09-02 16:44:47 -07:00
Eric Huss
fb272d1afa
Fix theme selector for RTL.
2023-09-02 16:43:21 -07:00
Eric Huss
b871676def
Fix sidebar behavior with RTL.
2023-09-02 16:43:13 -07:00
Eric Huss
869fe2f50d
Remove text_drection_from_lang_code
...
The test above should cover this sufficiently.
2023-09-02 16:42:53 -07:00
Eric Huss
db877b1c9b
Update language list to include missing rtl languages.
2023-09-02 16:42:14 -07:00
Eric Huss
4749f9d97a
Some minor corrections from code review.
2023-09-02 16:41:59 -07:00
cN3rd
6be98e0bbd
Ensure code segments always render in LTR
2023-09-02 14:37:59 -07:00
cN3rd
5e0c68c45e
Fix icons when using RTL
2023-09-02 07:50:23 -07:00
cN3rd
7717b9dcf2
Support `text_direction` attribute in HTML output
2023-09-02 07:50:21 -07:00
cN3rd
819a108f07
Add `text_direction` property in general book metadata
...
Text direction can selected in the config via the `text_direction` attribute in `book.toml`,
or be derived from the book's language.
2023-09-02 07:49:28 -07:00
Tim Crawford
3a99899114
Use CSS selectors to override properties for RTL
...
Fix behavior of some elements when displaying page in RTL.
Signed-off-by: Tim Crawford <crawfxrd@gmail.com>
2023-09-02 07:49:28 -07:00
Tim Crawford
1088066c69
Move sidebar, js classes from html to body element
...
This will be necessary for using CSS selectors on root attributes.
Signed-off-by: Tim Crawford <crawfxrd@gmail.com>
2023-09-02 07:49:27 -07:00
Tim Crawford
73d44503fd
Use logical CSS properties
...
Replace phyiscal properties (top/bottom/left/right) with logical
properties (start/end) that can be used in non-LTR contexts (e.g.,
content in Arabic or Hebrew).
Based on the CSS Logical Properties and Values Level 1 specification,
currently an Editor's Draft [1].
Referencing MDN, all major browsers except Internet Explorer support the
margin, padding, and border properties.
[1]: https://drafts.csswg.org/css-logical/
Signed-off-by: Tim Crawford <crawfxrd@gmail.com>
2023-09-02 07:47:12 -07:00
qaqland
36327efe9d
Sidebar but Pure CSS, fix rust-lang/mdBook#859
...
* change sidebar-toggle button by input:checked and label
* change nav-wrappers' CSS selectors
* remove loading animation when page opens with z-index
2023-08-24 16:44:25 +08:00
Eric Huss
c903cc8827
Add workaround for macOS notify problem.
2023-08-05 13:23:17 -07:00
Eric Huss
f7e212ec9c
Merge pull request #2150 from proski/header-code-background
...
Don't use distinct background for code in headers when printing
2023-08-03 22:46:50 +00:00
Pavel Roskin
228538ea62
Don't use distinct background for code in headers when printing
...
Fixes #1933
2023-08-02 23:31:46 -07:00
Eric Huss
aed991f75f
Revert "Merge pull request #2125 from ehuss/update-toml"
...
This reverts commit 89797064b8
, reversing
changes made to 7824aed878
.
2023-08-02 08:32:44 -07:00
Giorgio Reale
fcfde083e7
Enhancing themes with `color-scheme: light | dark;` implementation in CSS
2023-07-30 15:43:51 -07:00
riverbl
e00b8835cc
Fix issues with extra-watch-dirs
...
Fix paths specified in extra-watch-dirs being relative to the current working directory rather than the book root
If there is an error canonicalising paths in extra-watch-dirs, log the error and exit rather than panicking
2023-07-28 20:07:20 +01:00
Eric Huss
b423bf7ddd
Update toml to 0.7.6
2023-07-16 12:48:01 -07:00
zica
9eba0f6ab2
Fix theme-color meta tag not syncing with the theme
2023-07-09 08:57:46 +08:00
Em Zhan
72b3227824
Fix flicker when setting sidebar scroll position
...
Previously, sidebar scroll was set in an external script which caused a
flicker as the sidebar is initially rendered without any scroll before
being scrolled to the desired location.
Switching to an inline script right after the HTML tags for the sidebar
seems to avoid the flicker in most cases. In addition, logic is added to
avoid scrolling jumps when navigating via links within the sidebar.
2023-06-21 19:25:21 -05:00
Em Zhan
1ef8d70ac4
Avoid menu border flash during page navigation
...
Partially addresses #443
2023-06-17 21:42:54 -05:00
Eric Huss
c9cfe22fd6
Apply some code style changes.
2023-05-28 14:04:58 -07:00
Jannik Obermann
7df1d8c838
Support hidden lines in languages other than Rust
...
Co-Authored-By: thecodewarrior <5467669+thecodewarrior@users.noreply.github.com>
2023-05-28 14:04:54 -07:00
Eric Huss
1db52ff531
Fix search for custom heading attributes
2023-05-28 12:03:03 -07:00
Eric Huss
34e5ef22a0
Don't include empty class attribute.
2023-05-28 11:33:00 -07:00
ImUrX
c8a5adcee9
fix more mistakes
2023-05-28 10:47:14 -07:00
ImUrX
ecdb411711
fix mistakes
2023-05-28 10:47:14 -07:00
ImUrX
a4e206168d
Add working heading extension
2023-05-28 10:47:13 -07:00
Eric Huss
d8f171a996
Apply clippy::manual_while_let_some
2023-05-13 09:50:32 -07:00
Eric Huss
0ef3bb1cc6
Apply clippy::needless_borrowed_reference
2023-05-13 09:46:30 -07:00
Eric Huss
54df8234ed
Apply clippy::let_unit_value
2023-05-13 09:45:46 -07:00
Eric Huss
dc08e37320
Apply clippy::borrow_deref_ref
2023-05-13 09:44:50 -07:00
Eric Huss
45a8575b95
Apply clippy::needless_borrow
2023-05-13 09:44:11 -07:00
Eric Huss
f4507aeb9b
Merge pull request #2080 from t2y/fix-copy-fonts-message
...
Fix handling of copy-fonts=true when fonts.css is overridden
2023-05-13 09:19:06 -07:00
Eric Huss
01047846a9
Don't copy the stock fonts if the user has overridden fonts.css.
...
This wasn't behaving as I was really intending.
2023-05-13 09:05:25 -07:00
Eric Huss
75a6d65e5a
Don't warn on copy-fonts=true (the default) when fonts.css is overridden.
2023-05-13 08:51:04 -07:00
Eric Huss
af036d9f45
Merge pull request #2057 from seanpoulter/init-skip
...
fix(cli): init --force skips confirmation prompts
2023-04-30 14:18:30 -07:00
Tetsuya Morimoto
04016f3be6
Refactor the warning message related to copy_fonts so that a user simply configures it
2023-04-28 12:46:49 +09:00
Eric Huss
35fdd00203
Switch from gitignore to ignore
2023-04-22 12:53:54 -07:00
Sean Poulter
bffdb0b03d
fix(cli): init --force skips confirmation prompts
2023-04-03 03:05:24 -04:00
Andreas Deininger
a2c88ae0f1
Convert links from http to https protocol
2023-04-02 21:35:08 +02:00
Eric Huss
4c59405e5c
Merge pull request #1986 from mgeisler/preprocessors-for-test
...
Run preprocessors in `mdbook test`
2023-03-04 14:55:10 -08:00
Eric Huss
703a215ef8
Merge pull request #2039 from Skwodo/master
...
Change overflow-x hidden to clip
2023-03-04 14:05:01 -08:00
Skwodo
f5f96bc4f4
change overflow-x hidden to clip
2023-03-02 21:01:38 +01:00
Eric Huss
c15220d1a1
Merge pull request #2017 from thanatos/roy/fix-sidebar
...
Default the sidebar to visible in large screens
2023-02-13 12:42:15 -08:00
Eric Huss
1517435441
Merge pull request #2021 from rust-lang/revert-2009-deps/toml
...
Revert "bump 'toml' dependency"
2023-02-13 07:44:45 -08:00
Eric Huss
90fbe112af
Revert "bump 'toml' dependency"
2023-02-13 07:31:33 -08:00