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
Martin Geisler
c150529c7c
Remove spammy `debug!` log from `path_to_root`
...
The log statement is empty and simply fills up the logs when you run `mdbook` with `RUST_LOG=debug`.
2023-02-13 16:17:31 +01:00
Roy Wellington Ⅳ
fa6aa2ced8
Default the sidebar to visible in large screens
...
The code here leads me to believe that the intention is for the sidebar
to be default visible on large screens (where `clientWidth` > 1080) and
hidden otherwise.
However, as previously written, if the `localStorage.getItem` call fails
(for example, if the user agent is not accepting cookies), then we fall
back to `sidebar = sidebar || 'visible';` — but `sidebar` is already set
to `hidden`, so the `|| 'visible'` never happens.
This results in the sidebar hiding itself on every navigation through an
mdBook, meaning if you're just switching between sections trying to find
something that you keep needing to re-open the sidebar.
2023-02-11 18:04:58 -05:00
Eric Huss
2c710d3b7d
Merge pull request #1987 from ehuss/theme-fonts
...
Make fonts part of the theme.
2023-02-08 15:56:40 -08:00
Eric Huss
e352e4f59c
Merge pull request #1994 from Skwodo/master
...
fix overflow-x on mobile
2023-02-08 15:37:53 -08:00
Eric Huss
734936d819
Add some comments about overflow-x
2023-02-08 15:25:14 -08:00
Daniel Eades
2160613c6a
bump 'toml' dependency
2023-02-08 15:40:15 +00:00
Skwodo
ca46086e79
fix overflow-x on mobile
2023-01-21 22:41:01 +01:00
Noritada Kobayashi
dcc9efea0a
Remove the WebKit-specific scrollbar styling altogether
...
It is preferable to remove WebKit-specific styling and use the browser
and OS default scrollbars.
Thanks to comments from @julianfortune, @arniu, and @ehuss.
Closes #1483 .
2023-01-18 23:51:09 +09:00
Eric Huss
c2d973997a
Make fonts part of the theme.
2023-01-15 11:42:46 -08:00