feat: Add copy_standard_markdown parameter to plugin

This parameter controls whether the standard markdown extensions will
  be added to the include_extensions or not.

  Resolves #1.
This commit is contained in:
Glen Whitney 2021-01-08 10:40:06 -08:00
parent ec9c7e57ce
commit cf4d538fd0
3 changed files with 42 additions and 8 deletions

View file

@ -6,13 +6,18 @@ plugins:
- search
- semiliterate:
merge_docs_dir: false
ignore_folders: [dist]
ignore_folders: [dist, build]
include_extensions: [LICENSE]
# semiliterate:
# - pattern: '(\.md)$'
# replace: [['^(.*)<!-- repo: -->.*<!-- site:(.*?) -->(.*\s*)$', '\1\2\3']]
semiliterate:
- pattern: '(\.md)$'
start: '^(.*\s*)'
replace: [['^(.*)<!-- repo: -->.*<!-- site:(.*?) -->(.*\s*)$', '\1\2\3']]
- pattern: '(\.py)$'
start: '"""\smd'
stop: '"""'
markdown_extensions:
- abbr
- def_list
theme:
name: readthedocs
docs_dir: mkdocs_semiliterate # dummy