mkdocs-simple-plugin 3.2.1__tar.gz → 3.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mkdocs-simple-plugin
3
- Version: 3.2.1
3
+ Version: 3.2.2
4
4
  Summary: Plugin for adding simple wiki site creation from markdown files interspersed within your code with MkDocs.
5
5
  Project-URL: Documentation, http://www.althack.dev/mkdocs-simple-plugin
6
6
  Project-URL: Homepage, http://www.althack.dev/mkdocs-simple-plugin
@@ -335,11 +335,15 @@ class SimplePlugin(BasePlugin):
335
335
  # Read previous config first so updates don't get overwritten
336
336
  config_site_dir = get_config_site_dir(config.config_file_path)
337
337
 
338
- # Set the build docs dir to tmp location if not set by user
339
- if not self.config['build_dir'] and self.config['merge_docs_dir']:
340
- self.config['build_dir'] = config['docs_dir']
341
- else:
342
- self.config['build_dir'] = self.tmp_build_dir
338
+ # If the build_dir isn't set by the user,
339
+ # set it to one of the following locations:
340
+ if not self.config['build_dir']:
341
+ if self.config['merge_docs_dir']:
342
+ # the build_dir to the docs_dir if merging
343
+ self.config['build_dir'] = config['docs_dir']
344
+ else:
345
+ # or a temp directory
346
+ self.config['build_dir'] = self.tmp_build_dir
343
347
 
344
348
  utils.log.info(
345
349
  "mkdocs-simple-plugin: build_dir: %s",
@@ -392,6 +396,7 @@ class SimplePlugin(BasePlugin):
392
396
  dest_dir=config.site_dir,
393
397
  use_directory_urls=config["use_directory_urls"]
394
398
  )
399
+ file.generated_by = "mkdocs_simple_plugin"
395
400
  if file.src_uri in files.src_uris:
396
401
  files.remove(file)
397
402
  files.append(file)