Closed astraw99 closed 1 year ago
It looks like your book has overridden the theme/index.hbs
file. That is where the icons are defined. You'll need to update that file with the latest changes. The latest version can be found here: https://github.com/rust-lang/mdBook/blob/master/src/theme/index.hbs
Added the git-edit code block, then edit icon shows.
{{#if git_repository_edit_url}}
<a href="{{git_repository_edit_url}}" title="Suggest an edit" aria-label="Suggest an edit">
<i id="git-edit-button" class="fa fa-edit"></i>
</a>
{{/if}}
But when click the edit icon, it just redirect to page https://github.com/kubernetes-sigs/kubebuilder/tree/master/docs/book/src
, not the corresponding page that can edit directly.
Any config I miss?
I don't offhand know. Can you post your edits to a branch I can check out? Can you also include which version of mdbook you are using?
I don't offhand know. Can you post your edits to a branch I can check out? Can you also include which version of mdbook you are using?
You can check at this branch: https://github.com/astraw99/kubebuilder/blob/ftr-add-faq/docs/book/book.toml
mdbook --version
mdbook v0.4.21
OK, I will check it. Thanks.
BTW, please help to check in by branch, why the print
feature did not work?
Sorry, I don't have the time to debug an external plugin. I'm going to close as this seems to be an issue with external tooling.
Tried to set
book.toml
like this:Then
mdbook serve
locally, but only showed the git-repo icon, no edit icon.