DuckDuckWhale
ed51438c8b
Dep: fix Tungstenite DoS (RUSTSEC-2023-0065)
2023-11-26 01:05:20 -08:00
Eric Huss
49fce6673a
Merge pull request #2209 from cyevgeniy/feat/sidebar-resize-indicator
...
Add resize indicator to the sidebar
2023-11-24 20:31:14 +00:00
Eric Huss
a016ac0d2b
Merge pull request #2173 from 0xpr03/master
...
upgrade to notify 6.1.1 and watcher-mini 4.1
2023-11-24 20:05:37 +00:00
Eric Huss
ad55f5367e
Merge pull request #2162 from ISSOtm/padding-hljs
...
Fix code blocks "indent" without highlight.js
2023-11-24 19:59:55 +00:00
Eric Huss
660cbfa6ce
Merge pull request #2243 from wyfo/patch-1
...
fix typo
2023-11-19 13:53:15 +00:00
Joseph Perez
982608246e
fix typo
2023-11-19 14:46:50 +01:00
Dylan DPC
6f6de2cf05
Merge pull request #2235 from ardcore/improvement/fix-print-margin
...
Make sure page wrapper transform is removed in print mode
2023-11-16 13:44:27 +00:00
Szymon Pilkowski
ae3e3f8269
Make sure page wrapper transform is removed in print mode
2023-11-10 21:51:00 +01:00
Eric Huss
dc21f1497b
Merge pull request #2232 from arnetheduck/add-nim
...
Add Nim to default languages
2023-11-09 03:32:44 +00:00
Jacek Sieka
5c8941ba16
Add Nim to default languages
...
Nim is a systems programming language (included in the highlight.js
`system` group), and we're quite happily using `mdBook` in several of
our documentation projects starting with our [style
guide](https://status-im.github.io/nim-style-guide/ ).
While we can maintain our own highlight.js, including `Nim` in the
default distribution would allow us to promote more mdBook usage in the
Nim community at the cost of a ~2kb increase in the `highlight.js` size.
2023-11-08 15:34:35 +01:00
Evgeny Chaban
80d3a86468
fix: hide resize indicator on devices with limited accuracy
2023-10-04 01:55:20 +03:00
Evgeny Chaban
8e8fd2717e
fix(style): use calc function
2023-10-04 01:40:16 +03:00
Evgeny Chaban
f92d24e89c
feat(sidebar): add sidebar indicator
2023-10-02 18:24:55 +03:00
Eric Huss
94e0a44e15
Merge pull request #2206 from ehuss/bump-version
...
Update to 0.4.35
2023-09-29 22:43:05 +00:00
Eric Huss
f25181f68d
Update to 0.4.35
2023-09-29 14:33:45 -07:00
Eric Huss
cf19eb1386
Fix `text-direction` in documentation.
2023-09-29 14:33:20 -07:00
Eric Huss
0583119698
Merge pull request #2197 from dluschan/patch-1
...
Update index.hbs
2023-09-22 17:26:27 +00:00
Dmitry Luschan
3389f3db7f
Update index.hbs
...
Trailing slash on void elements has no effect and interacts badly with unquoted attribute values.
2023-09-19 20:44:39 +06:00
Eric Huss
c642f5f8a3
Merge pull request #2187 from notriddle/notriddle/warning-block
...
Add `.warning` class for doc author use
2023-09-09 20:13:10 +00:00
Michael Howell
ceb8b509e2
Add more guides to stock CSS classes
2023-09-08 13:27:02 -07:00
Michael Howell
65dae11e47
Add `.warning` class for doc author use
...
This is designed to be compatible with rustdoc's version, in
https://github.com/rust-lang/rust/pull/106561
2023-09-08 13:17:21 -07:00
Dylan DPC
d5b1676216
Merge pull request #2168 from pickfire/prefetch
...
Add prefetch to next link
2023-09-04 18:03:38 +00:00
Eric Huss
09f222baf7
Merge pull request #1641 from cN3rd/rtl
...
Continued work on "Support right-to-left languages"
2023-09-02 23:57:48 +00:00
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
8564a7fb51
Add proper test to inline code within the book.
2023-09-02 14:38:02 -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
Eric Huss
25aaff0bd6
Merge pull request #2182 from cuishuang/master
...
remove the repetitive word
2023-09-02 13:41:15 +00:00
cui fliter
29691461c5
remove the repetitive word
...
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-09-02 14:04:32 +08:00
Dylan DPC
a74e4dcec8
Merge pull request #2181 from tshepang/patch-1
...
docs: future expansion to non-Rust testing already implied
2023-09-01 08:55:38 +00:00
Tshepang Mbambo
0b0b548d7a
docs: future expansion to non-Rust testing already implied
2023-09-01 05:11:18 +02:00
Dylan DPC
02f3823e4c
Merge pull request #2175 from qaqland/sidebar-pure-css
...
Sidebar but Pure CSS, fix rust-lang/mdBook#859
2023-08-24 13:11:14 +00: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
Aron Heinecke
079f52a191
upgrade to notify 6.1.1 and watcher-mini 4.1
2023-08-21 20:28:56 +02:00
Ivan Tham
c9f1d01346
Add prefetch to next link
...
Fix #1975
2023-08-17 00:50:47 +08:00
Eldred Habert
9bc68bdd93
Fix code blocks "indent" without highlight.js
...
The `.hljs` class added by highlight.js adds a `display: block` rule
which makes `padding` apply correctly (left padding on all lines,
not just the first one).
Make sure that rule is applied even if highlight.js isn't run.
2023-08-08 12:31:55 +02:00
Eric Huss
56c225bd34
Merge pull request #2158 from ehuss/bump-version
...
Update to 0.4.34
2023-08-05 21:54:12 +00:00
Eric Huss
55c017cad1
Update to 0.4.34
2023-08-05 14:34:42 -07:00
Eric Huss
7849d55b99
Merge pull request #2157 from ehuss/macos-notify-copy
...
Add workaround for macOS notify problem.
2023-08-05 20:35:33 +00:00
Eric Huss
c903cc8827
Add workaround for macOS notify problem.
2023-08-05 13:23:17 -07:00