Skip to content

Commit 0043043

Browse files
authored
Merge pull request #2799 from ehuss/guide-case
Use consistent sentence case for section headers
2 parents 03ba7d9 + e9e3bb6 commit 0043043

20 files changed

+43
-43
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ mdBook builds on stable Rust, if you want to build mdBook from source, here are
5656

5757
The resulting binary can be found in `mdBook/target/debug/` under the name `mdbook` or `mdbook.exe`.
5858

59-
## Code Quality
59+
## Code quality
6060

6161
We love code quality and Rust has some excellent tools to assist you with contributions.
6262

63-
### Formatting Code with rustfmt
63+
### Formatting code with rustfmt
6464

6565
Before you make your Pull Request to the project, please run it through the `rustfmt` utility.
6666
This will ensure we have good quality source code that is better for us all to maintain.
@@ -84,7 +84,7 @@ The quick guide is
8484
8585
For more information, such as running it from your favourite editor, please see the `rustfmt` project. [rustfmt](https://github.com/rust-lang/rustfmt)
8686
87-
### Finding Issues with Clippy
87+
### Finding issues with clippy
8888
8989
[Clippy](https://doc.rust-lang.org/clippy/) is a code analyser/linter detecting mistakes, and therefore helps to improve your code.
9090
Like formatting your code with `rustfmt`, running clippy regularly and before your Pull Request will help us maintain awesome code.

guide/src/SUMMARY.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
[Introduction](README.md)
44

5-
# User Guide
5+
# User guide
66

77
- [Installation](guide/installation.md)
8-
- [Reading Books](guide/reading.md)
9-
- [Creating a Book](guide/creating.md)
8+
- [Reading books](guide/reading.md)
9+
- [Creating a book](guide/creating.md)
1010

11-
# Reference Guide
11+
# Reference guide
1212

13-
- [Command Line Tool](cli/README.md)
13+
- [Command-line tool](cli/README.md)
1414
- [init](cli/init.md)
1515
- [build](cli/build.md)
1616
- [watch](cli/watch.md)
@@ -25,18 +25,18 @@
2525
- [General](format/configuration/general.md)
2626
- [Preprocessors](format/configuration/preprocessors.md)
2727
- [Renderers](format/configuration/renderers.md)
28-
- [Environment Variables](format/configuration/environment-variables.md)
28+
- [Environment variables](format/configuration/environment-variables.md)
2929
- [Theme](format/theme/README.md)
3030
- [index.hbs](format/theme/index-hbs.md)
3131
- [Syntax highlighting](format/theme/syntax-highlighting.md)
3232
- [Editor](format/theme/editor.md)
33-
- [MathJax Support](format/mathjax.md)
33+
- [MathJax support](format/mathjax.md)
3434
- [mdBook-specific features](format/mdbook.md)
3535
- [Markdown](format/markdown.md)
36-
- [Continuous Integration](continuous-integration.md)
37-
- [For Developers](for_developers/README.md)
36+
- [Continuous integration](continuous-integration.md)
37+
- [For developers](for_developers/README.md)
3838
- [Preprocessors](for_developers/preprocessors.md)
39-
- [Alternative Backends](for_developers/backends.md)
39+
- [Alternative backends](for_developers/backends.md)
4040

4141
-----------
4242

guide/src/cli/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Command Line Tool
1+
# Command-line tool
22

33
The `mdbook` command-line tool is used to create and build books.
44
After you have [installed](../guide/installation.md) `mdbook`, you can run the `mdbook help` command in your terminal to view the available commands.

guide/src/continuous-integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Running `mdbook` in Continuous Integration
1+
# Running `mdbook` in continuous integration
22

33
There are a variety of services such as [GitHub Actions] or [GitLab CI/CD] which can be used to test and deploy your book automatically.
44

guide/src/for_developers/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# For Developers
1+
# For developers
22

33
While `mdbook` is mainly used as a command line tool, you can also import the
44
underlying libraries directly and use those to manage a book. It also has a fairly
@@ -14,7 +14,7 @@ The two main ways a developer can hook into the book's build process is via,
1414
- [Preprocessors](preprocessors.md)
1515
- [Alternative Backends](backends.md)
1616

17-
## The Build Process
17+
## The build process
1818

1919
The process of rendering a book project goes through several steps.
2020

@@ -27,7 +27,7 @@ The process of rendering a book project goes through several steps.
2727
1. Run all the preprocessors.
2828
2. Call the backend to render the processed result.
2929

30-
## Using `mdbook` as a Library
30+
## Using `mdbook` as a library
3131

3232
The `mdbook` binary is just a wrapper around the underlying mdBook crates,
3333
exposing their functionality as a command-line program. If you want to

guide/src/for_developers/backends.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Alternative Backends
1+
# Alternative backends
22

33
A "backend" is simply a program which `mdbook` will invoke during the book
44
rendering process. This program is passed a JSON representation of the book and
@@ -10,7 +10,7 @@ See [Configuring Renderers](../format/configuration/renderers.md) for more infor
1010
The community has developed several backends.
1111
See the [Third Party Plugins] wiki page for a list of available backends.
1212

13-
## Setting Up
13+
## Setting up
1414

1515
This page will step you through creating your own alternative backend in the form
1616
of a simple word counting program. Although it will be written in Rust, there's
@@ -50,7 +50,7 @@ fn main() {
5050
> It is recommended that backends use the [`semver`] crate to inspect this field
5151
> and emit a warning if there may be a compatibility issue.
5252
53-
## Inspecting the Book
53+
## Inspecting the book
5454

5555
Now our backend has a copy of the book, lets count how many words are in each
5656
chapter!
@@ -79,7 +79,7 @@ fn count_words(ch: &Chapter) -> usize {
7979
```
8080

8181

82-
## Enabling the Backend
82+
## Enabling the backend
8383

8484
Now we've got the basics running, we want to actually use it. First, install the
8585
program.
@@ -216,7 +216,7 @@ and then add a check to make sure we skip ignored chapters.
216216
```
217217

218218

219-
## Output and Signalling Failure
219+
## Output and signalling failure
220220

221221
While it's nice to print word counts to the terminal when a book is built, it
222222
might also be a good idea to output them to a file somewhere. `mdbook` tells a
@@ -319,7 +319,7 @@ generation or a warning).
319319
All environment variables are passed through to the backend, allowing you to use
320320
the usual `RUST_LOG` to control logging verbosity.
321321

322-
## Wrapping Up
322+
## Wrapping up
323323

324324
Although contrived, hopefully this example was enough to show how you'd create
325325
an alternative backend for `mdbook`. If you feel it's missing something, don't

guide/src/for_developers/preprocessors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ the book. Possible use cases are:
1010

1111
See [Configuring Preprocessors](../format/configuration/preprocessors.md) for more information about using preprocessors.
1212

13-
## Hooking Into MDBook
13+
## Hooking into MDBook
1414

1515
MDBook uses a fairly simple mechanism for discovering third party plugins.
1616
A new table is added to `book.toml` (e.g. `[preprocessor.foo]` for the `foo`
@@ -43,7 +43,7 @@ be adapted for other preprocessors.
4343
```
4444
</details>
4545

46-
## Hints For Implementing A Preprocessor
46+
## Hints for implementing a preprocessor
4747

4848
By pulling in `mdbook-preprocessor` as a library, preprocessors can have access to the
4949
existing infrastructure for dealing with books.

guide/src/format/configuration/environment-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Environment Variables
1+
# Environment variables
22

33
All configuration values can be overridden from the command line by setting the
44
corresponding environment variable. Because many operating systems restrict

guide/src/format/configuration/general.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# General Configuration
1+
# General configuration
22

33
You can configure the parameters for your book in the ***book.toml*** file.
44

guide/src/format/configuration/preprocessors.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ For information on how to create a new preprocessor, see the [Preprocessors for
2323
[Third Party Plugins]: https://github.com/rust-lang/mdBook/wiki/Third-party-plugins
2424
[Preprocessors for Developers]: ../../for_developers/preprocessors.md
2525

26-
## Custom Preprocessor Configuration
26+
## Custom preprocessor configuration
2727

2828
Preprocessors can be added by including a `preprocessor` table in `book.toml` with the name of the preprocessor.
2929
For example, if you have a preprocessor called `mdbook-example`, then you can include it with:
@@ -42,7 +42,7 @@ For example, if our example preprocessor needed some extra configuration options
4242
some-extra-feature = true
4343
```
4444

45-
## Locking a Preprocessor dependency to a renderer
45+
## Locking a preprocessor dependency to a renderer
4646

4747
You can explicitly specify that a preprocessor should run for a renderer by
4848
binding the two together.
@@ -52,7 +52,7 @@ binding the two together.
5252
renderers = ["html"] # example preprocessor only runs with the HTML renderer
5353
```
5454

55-
## Provide Your Own Command
55+
## Provide your own command
5656

5757
By default when you add a `[preprocessor.foo]` table to your `book.toml` file,
5858
`mdbook` will try to invoke the `mdbook-foo` executable. If you want to use a
@@ -76,7 +76,7 @@ optional = true
7676

7777
This demotes the error to a warning.
7878

79-
## Require A Certain Order
79+
## Require a certain order
8080

8181
The order in which preprocessors are run can be controlled with the `before` and `after` fields.
8282
For example, suppose you want your `linenos` preprocessor to process lines that may have been `{{#include}}`d; then you want it to run after the built-in `links` preprocessor, which you can require using either the `before` or `after` field:

0 commit comments

Comments
 (0)