diff options
author | Jan-Erik Rediger <janerik@fnordig.de> | 2022-06-27 10:11:32 +0200 |
---|---|---|
committer | Jan-Erik Rediger <janerik@fnordig.de> | 2022-06-27 10:11:32 +0200 |
commit | f84a4e46e42c83892bb590503a76603940625c6b (patch) | |
tree | 14655e1a8957c5e56078ab1aad898ba56d287937 /README.md | |
parent | c7ad3bb975c428e61e79632edbad2e81dd437745 (diff) |
Add a way to change the footer text
Closes #4
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 21 |
1 files changed, 12 insertions, 9 deletions
@@ -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> |