summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2021-02-22Merge pull request #1463 from ehuss/fix-header-scrollEric Huss
Fix some issues with fragment scrolling and linking.
2021-02-21Enhance text contrast of `light` theme to improve accessibility.Tim Small
The existing light theme has relatively low contrast between the text (and other UI elements) and background (especially within code blocks). This presents difficulties for people with reduced visual contrast perception (common in older adults). This patch makes changes to the default `light` theme to meet the minimum contrast requirement of the v2.1 W3C WCAG (Web Content Accessibility Guidelines) https://www.w3.org/WAI/WCAG21/quickref/#contrast-minimum The small size, and slender font used for the title text makes it hard to read, even with the increased contrast colour scheme, so this patch also increases the size of the title text font by 20%. Closes #1442
2021-02-12Fix some issues with fragment scrolling and linking.Eric Huss
2021-01-14Merge pull request #1426 from ehuss/search-mark-wordsEric Huss
Fix search highlighting with multiple words.
2021-01-14Merge pull request #1418 from ehuss/relative-renderer-commandEric Huss
Fix relative paths for renderer commands.
2021-01-13Add missing parenthesis in doc comment.Eric Huss
2021-01-10Add intra-docs links to docspierwill
Also fixes some punctuation and changes some wording.
2021-01-07Change `init --theme` to place theme in root. (#1432)Eric Huss
2021-01-05Remove mark from URL on escape. (#1427)Eric Huss
2021-01-04Fix search highlighting with multiple words.Eric Huss
2021-01-04Merge pull request #1389 from avitex/search-chapter-nameEric Huss
Add chapter name to search result breadcrumbs
2021-01-04Merge pull request #1420 from apatniv/clippy_remove_cloneEric Huss
Clippy lint: Remove unnecessary clone
2021-01-04Merge pull request #1421 from apatniv/clippy_use_single_charEric Huss
clippy: use char instead of str
2021-01-04fix xss in the search pagePietro Albini
Thanks to Kamil Vavra for responsibly disclosing the vulnerability according to Rust's Security Policy.
2020-12-31clippy: use char instead of strapatniv
2020-12-31Clippy lint: Remove unnecessary cloneapatniv
2020-12-30Fix relative paths for renderer commands.Eric Huss
2020-12-28fix: readerer get theme dir path bugfrancis-du
2020-12-27Provide useful feedback if user executes command in different folder (#1407)Vivek Bharath Akupatni
Provides better feedback if user executes in a different folder than what is expected by mdbook After the changes `mdbook build` ``` 2020-12-19 14:27:35 [ERROR] (mdbook::utils): Error: Couldn't open SUMMARY.md in "/Users/vicky/rust/source_codes/mdbook_testing/src/src" directory 2020-12-19 14:27:35 [ERROR] (mdbook::utils): Caused By: No such file or directory (os error 2) ``` Previously: `mdbook build` ``` 2020-12-19 14:28:46 [ERROR] (mdbook::utils): Error: Couldn't open SUMMARY.md 2020-12-19 14:28:46 [ERROR] (mdbook::utils): Caused By: No such file or directory (os error 2) ```
2020-12-14Merge pull request #1393 from apatniv/fixing_errorEric Huss
Missing chapters Error Reporting: Add file name
2020-12-14Improve error messageKousuke Takaki
2020-12-05Run rust formmaterapatniv
2020-12-05Add more context regarding which missing file creation failedapatniv
2020-11-25Add chapter name to search result breadcrumbsavitex
2020-11-12Merge pull request #1378 from daynin/serialize-build-sectionEric Huss
allow to serialize the "build" section
2020-11-12allow to serialize the "build" sectionSergey Golovin
2020-11-10Merge pull request #1376 from dtolnay/htmlEric Huss
Escape `<` and `>` in rendered toc to match handlebars' escaping in <title>
2020-11-10Merge pull request #1375 from dtolnay/playgroundEric Huss
Fix stray spacing after #playground code
2020-11-10Merge pull request #1285 from FrankHB/patch-1Eric Huss
Handled UTF-8 BOM
2020-11-08Escape <> in rendered tocDavid Tolnay
2020-11-05Fix stray spacing after #playground codeDavid Tolnay
2020-10-07Added a test.FrankHB
Signed-off-by: FrankHB <frankhb1989@gmail.com>
2020-09-29Avoided the redundant allocation.FrankHB
Signed-off-by: FrankHB <frankhb1989@gmail.com>
2020-09-23Rename `book-example` to `guide` (#1336)Camelid
`book-example` is a bit of a strange name given that it's not just an example.
2020-09-22Fix print icon.Eric Huss
2020-09-22Add config option to disable print html, css, and iconRoss MacArthur
2020-09-09Fix windows typoifeanyi
2020-09-09Resolve full file paths when copying filesifeanyi
Currently, the `copy_files` function doesn't support symlink files due to its use of `DirEntry::metadata` - To avoid this issue, this patch resolves the file path first before checking for metadata. Fixes #1157
2020-09-06Merge pull request #1307 from camelid/prefer-bundled-scpEric Huss
Prefer bundled version of Source Code Pro
2020-09-06Remove local version from `@font-face` Camelid
It's unlikely that the bundled version wouldn't load, and it's especially unlikely that the page would load but the bundled version would not. Also, if it doesn't load, it should fall back to another monospace font, which is fine.
2020-09-06Merge pull request #1309 from nerosnm/add-missing-spaceEric Huss
Fix missing space before draft chapter titles
2020-09-06Merge pull request #1310 from dtolnay/nojekyllEric Huss
End .nojekyll file with newline
2020-09-06Merge pull request #1311 from dtolnay/cnameEric Huss
Support emitting CNAME file for publishing at a custom domain
2020-09-06Adjust wordingEric Huss
2020-09-03collect all test failures before failingGus Wynn
2020-09-02Support emitting CNAME file for publishing at a custom domainDavid Tolnay
2020-09-02End .nojekyll file with newlineDavid Tolnay
Before: /path/to$ cat book/.nojekyll This file makes sure that Github Pages doesn't process mdBook's output./path/to$ ▎ After: /path/to$ cat book/.nojekyll This file makes sure that Github Pages doesn't process mdBook's output. /path/to$ ▎
2020-08-31Wrap draft chapter titles in a <div>Søren Mortensen
Fixes the problem of a missing space before the title of draft chapters, due to the title not being wrapped in an `<a></a>`.
2020-08-29Prefer bundled version of Source Code ProCamelid
This prevents an issue with Firefox 80 on macOS that prevents syntax highlighting from working.
2020-08-08Merge pull request #1293 from Evian-Zhang/masterEric Huss
allow space in SUMMARY.md's link destination