File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ mdbook build
14
14
# find "$outd" -name '*.html' | xargs sed -i '/<link href="[^"]*\bfonts\.googleapis\.com\b/d'
15
15
16
16
# Fix output for RTL languages (needs <https://github.com/rust-lang/mdBook/pull/1489>).
17
- if grep -qE ' ^_direction\s*=\s*"?rtl?"' " $conf " ; then
18
- book=" $( sed -nE ' s/^build-dir\s*=\s"([^"]+)".*/\1/p' " $conf " ) "
19
- find " $book " -name ' *.html' -exec sed -i ' s/<body /<body dir="rtl" /' ' {}' ' ;'
20
- fi
17
+ # No longer needed with <https://github.com/rust-lang/mdBook/pull/1641>.
18
+ # if grep -qE '^_direction\s*=\s*"?rtl?"' "$conf"; then
19
+ # book="$(sed -nE 's/^build-dir\s*=\s"([^"]+)".*/\1/p' "$conf")"
20
+ # find "$book" -name '*.html' -exec sed -i 's/<body /<body dir="rtl" /' '{}' ';'
21
+ # fi
Original file line number Diff line number Diff line change 1
1
[book ]
2
2
authors = [" Ivan Vilata-i-Balaguer" , " Dmitri Vitaliev" , " Jenny Ryan" ]
3
3
language = " fa"
4
- _direction = " rtl"
4
+ text_direction = " rtl"
5
5
multilingual = false
6
6
src = " fa.src"
7
7
title = " دفترچهی راهنمای کاربر Censorship.no! (سنو)"
You can’t perform that action at this time.
0 commit comments