We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
set_edit_path()
edit_uri_template
I'm using the Mkdocs option edit_uri_template, which is mutually exclusive with edit_uri.
edit_uri
set_edit_path() has no effect in my setup (the page.edit_url remains empty). It's caused by this section:
page.edit_url
mkdocs-gen-files/mkdocs_gen_files/plugin.py
Lines 47 to 55 in b02016c
With mkdocs 1.6, it is possible to set file.edit_uri: Enabling true generated files and expanding the File API
file.edit_uri
File
I'm not sure what version of mkdocs you are targeting. For now I'm working around it with this hook:
def on_files(files: Files, config: MkDocsConfig, **kwargs) -> Files: edit_paths = config.plugins['gen-files']._edit_paths for src_uri in list(edit_paths.keys()): edit_uri = edit_paths.pop(src_uri) files.get_file_from_path(src_uri).edit_uri = edit_uri return files
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm using the Mkdocs option
edit_uri_template
, which is mutually exclusive withedit_uri
.set_edit_path()
has no effect in my setup (thepage.edit_url
remains empty). It's caused by this section:mkdocs-gen-files/mkdocs_gen_files/plugin.py
Lines 47 to 55 in b02016c
With mkdocs 1.6, it is possible to set
file.edit_uri
:Enabling true generated files and expanding the
File
APII'm not sure what version of mkdocs you are targeting. For now I'm working around it with this hook:
The text was updated successfully, but these errors were encountered: