Skip to content

Commit

Permalink
Add generated_by attribute to page.file (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
timvink committed Apr 27, 2023
1 parent 10034c5 commit 61233e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mkdocs_gen_files/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def _get_file(self, name: str, new: bool = False) -> str:
dest_dir=self.config["site_dir"],
use_directory_urls=self.config["use_directory_urls"],
)
new_f.generated_by = "mkdocs-gen-files" # type: ignore
normname = pathlib.PurePath(name).as_posix()

if new or normname not in self._files:
Expand Down

0 comments on commit 61233e6

Please sign in to comment.