Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lost edit icon in mkdocs 1.4.2 #3095

Closed
floriandeboissieu opened this issue Jan 8, 2023 · 4 comments
Closed

Lost edit icon in mkdocs 1.4.2 #3095

floriandeboissieu opened this issue Jan 8, 2023 · 4 comments

Comments

@floriandeboissieu
Copy link

Hi and many thanks for this very useful package.

In last mkdocs version (1.4.2) the edit icon (pencil) disappeared. I tested back with mkdocs 1.4.1, the edit icon is there on top right of each page.

The config on which I tested includes repo_url and edit_uri and my repo_url is starting by https://gitlab.com.

@oprypin
Copy link
Contributor

oprypin commented Jan 9, 2023

You'll have to share a site (complete sources) on which this happens so I can see it for myself

@martinbira
Copy link

@floriandeboissieu You don't happen to use the Material for MkDocs theme and upgrade to version 9? If so, see https://squidfunk.github.io/mkdocs-material/upgrade/#upgrading-from-8x-to-9x regarding the edit icon.

@floriandeboissieu
Copy link
Author

@martinbira You are right, it was due to Material update, sorry and many thanks to you and @oprypin for your reactivity.

@AlexFreik
Copy link

AlexFreik commented Mar 7, 2023

What was the solution? I recently rebuild my docs with the new material version and the edit page "pencil" disappeared...

UPD: I solved the issue. I added the following code:

# mkdocs.yml
theme:
  features:
    - content.action.edit

as it was adviced here https://squidfunk.github.io/mkdocs-material/setup/adding-a-git-repository/#edit-this-page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants