Skip to content

Commit

Permalink
Add warning when using --dirtyreload, see #57
Browse files Browse the repository at this point in the history
  • Loading branch information
timvink committed Oct 20, 2021
1 parent 8f79dbd commit ad73023
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions mkdocs_print_site_plugin/plugin.py
@@ -1,6 +1,7 @@
import os
import re
import logging
import sys

from mkdocs.plugins import BasePlugin
from mkdocs.config import config_options
Expand Down Expand Up @@ -63,6 +64,11 @@ def on_config(self, config, **kwargs):
msg += "Please update the 'plugins:' section in your mkdocs.yml"
logger.warning(msg)

if "--dirtyreload" in sys.argv:
msg = "[mkdocs-print-site] Note the 'print-site' page does render all pages "
msg += "when using the --dirtyreload option."
logger.warning(msg)

# Get abs path to cover_page_template
self.cover_page_template_path = ""
if self.config.get("add_cover_page"):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -9,7 +9,7 @@

setup(
name="mkdocs-print-site-plugin",
version="2.0.2",
version="2.0.3",
description="MkDocs plugin that combines all pages into one, allowing for easy export to PDF and standalone HTML.",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit ad73023

Please sign in to comment.