summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorJan-Erik Rediger <janerik@fnordig.de>2022-06-27 10:11:32 +0200
committerJan-Erik Rediger <janerik@fnordig.de>2022-06-27 10:11:32 +0200
commitf84a4e46e42c83892bb590503a76603940625c6b (patch)
tree14655e1a8957c5e56078ab1aad898ba56d287937 /README.md
parentc7ad3bb975c428e61e79632edbad2e81dd437745 (diff)
Add a way to change the footer text
Closes #4
Diffstat (limited to 'README.md')
-rw-r--r--README.md21
1 files changed, 12 insertions, 9 deletions
diff --git a/README.md b/README.md
index 7b0ed7a..d73152a 100644
--- a/README.md
+++ b/README.md
@@ -23,19 +23,22 @@ command = "mdbook-open-on-gh"
renderer = ["html"]
```
-Add a repository URL to use as a base in your `book.toml`:
+## Configuration
-```toml
-[output.html]
-git-repository-url = "https://github.com/mozilla/glean"
-```
+`mdbook-open-on-gh` is configured using additional options under `[output.html]`:
-By default it assumes the repository has a `main` branch.
-You can configure another branch using the `git-branch` option:
```toml
[output.html]
-git-branch = "trunk"
+# Required: Your repository URL used in the link.
+git-repository-url = "https://github.com/$user/$project"
+
+# Your git branch. Defaults to `main`
+git-branch = "main"
+
+# The text to use in the footer.
+# The link text is marked by `[]`
+open-on-text = "Found a bug? [Edit this page on GitHub.]"
```
To style the footer add a custom CSS file for your HTML output:
@@ -69,4 +72,4 @@ mdbook path/to/book
## License
MPL. See [LICENSE](LICENSE).
-Copyright (c) 2020 Jan-Erik Rediger <janerik@fnordig.de>
+Copyright (c) 2020-2022 Jan-Erik Rediger <janerik@fnordig.de>