-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configurable default values for directive arguments (#122)
* Configurable default values for directive arguments * Add tests and documentation * Add test for 100% code coverage * Skip test on Windows * Fix error in tests
- Loading branch information
Showing
16 changed files
with
453 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
__title__ = 'mkdocs_include_markdown_plugin' | ||
__version__ = '3.7.1' | ||
__version__ = '3.8.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import mkdocs.config.config_options | ||
|
||
|
||
CONFIG_DEFAULTS = { | ||
'opening_tag': '{%', | ||
'closing_tag': '%}', | ||
'encoding': 'utf-8', | ||
'preserve_includer_indent': True, | ||
'dedent': False, | ||
'trailing_newlines': True, | ||
'comments': True, | ||
} | ||
|
||
CONFIG_SCHEME = ( | ||
( | ||
'opening_tag', | ||
mkdocs.config.config_options.Type( | ||
str, default=CONFIG_DEFAULTS['opening_tag'], | ||
), | ||
), | ||
( | ||
'closing_tag', | ||
mkdocs.config.config_options.Type( | ||
str, default=CONFIG_DEFAULTS['closing_tag'], | ||
), | ||
), | ||
( | ||
'encoding', | ||
mkdocs.config.config_options.Type( | ||
str, default=CONFIG_DEFAULTS['encoding'], | ||
), | ||
), | ||
( | ||
'preserve_includer_indent', | ||
mkdocs.config.config_options.Type( | ||
bool, default=CONFIG_DEFAULTS['preserve_includer_indent'], | ||
), | ||
), | ||
( | ||
'dedent', | ||
mkdocs.config.config_options.Type( | ||
bool, default=CONFIG_DEFAULTS['dedent'], | ||
), | ||
), | ||
( | ||
'trailing_newlines', | ||
mkdocs.config.config_options.Type( | ||
bool, default=CONFIG_DEFAULTS['trailing_newlines'], | ||
), | ||
), | ||
( | ||
'comments', | ||
mkdocs.config.config_options.Type( | ||
bool, default=CONFIG_DEFAULTS['comments'], | ||
), | ||
), | ||
) |
Oops, something went wrong.