question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use page.edit_url for repository link in header

See original GitHub issue

Description

Right now, the setting page.edit_url is used for creating an edit icon within a page’s body, but the setting is ignored when creating the header link.

This has been confusing our users, both since it differs from the default mkdocs theme’s behavior, and because the edit link within the body will scroll off of the top of the page as the user scrolls down.

Expected behavior

page.edit_url is used in the header when present.

Actual behavior

Only config.repo_url is used.

Package versions

  • Python: 3.7.1
  • MkDocs: 1.0.4
  • Material: 4.4.0

Project configuration

site_name: My Site
repo_url: https://github.com/jkinkead/doesnotexist
repo_name: Click to Edit (not really)
edit_uri: edit/master/
theme:
  name: material

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jkinkeadcommented, Aug 30, 2019

I realize this was closed a while ago - but thanks for the quick, respectful answers to my asks. 😃

0reactions
squidfunkcommented, Jun 29, 2019

Housekeeping.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create a link to the header of another page in Github
I want to have a table of contents that can link to the sub-sections of each wiki page as well as to the...
Read more >
Creating Links in Markdown
Instructions on how to create links in AnVIL markdown. ... Use the "relative path" to the page omitting the protocol and domain name....
Read more >
Using pagination in the REST API
The link header contains URLs that you can used to fetch additional pages of results. To see the response headers if you are...
Read more >
Link to Pages
To create a link between pages, start by typing [ and a scrollable menu of available pages to link to will appear. As...
Read more >
Add Links — RST | Sphinx | Sublime | GitHub documentation
You can link from text to a heading in any other part of the document by using the :ref: command with the heading...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found