Skip to content

Commit 250b1f3

Browse files
author
neatc0der
committed
Merge branch 'release/v2.2.0' into feature/encryptcontent
2 parents 89d71c1 + fa63503 commit 250b1f3

File tree

11 files changed

+27
-13
lines changed

11 files changed

+27
-13
lines changed

.github/workflows/distribute.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Prepare Python
1717
uses: actions/setup-python@v2
1818
with:
19-
python-version: 3.8
19+
python-version: 3.9
2020

2121
- name: Install Dependencies
2222
run: |
@@ -28,4 +28,4 @@ jobs:
2828
env:
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3030
TWINE_PASSWORD: ${{ secrets.TWINE_TOKEN }}
31-
run: inv distribute --tag ${GITHUB_REF#refs/*/} --no-dry-run
31+
run: inv distribute --tag v$(python setup.py --version 2> /dev/null) --no-dry-run

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Prepare Python
1717
uses: actions/setup-python@v2
1818
with:
19-
python-version: 3.8
19+
python-version: 3.9
2020

2121
- name: Install Dependencies
2222
run: |

.github/workflows/verify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Prepare Python
1717
uses: actions/setup-python@v2
1818
with:
19-
python-version: 3.8
19+
python-version: 3.9
2020

2121
- name: Install Dependencies
2222
run: |

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This is a plugin and an extension for [mkdocs](https://github.com/mkdocs/mkdocs/
1414

1515
This plugin was tested with, but is not limited to:
1616

17-
* Python 3.8
17+
* Python 3.9
1818
* mkdocs 1.1
1919

2020
## Quickstart
@@ -73,7 +73,7 @@ plugins:
7373
encoding: utf-8
7474
file_extension: .mm.md
7575
d3_version: 6.7.0
76-
lib_version: 0.11.5
76+
lib_version: 0.11.6
7777
view_version: 0.2.6
7878
```
7979
@@ -82,7 +82,7 @@ In addition, feel free to define your favourite source urls like this:
8282
```yaml
8383
extra_javascript:
8484
- https://unpkg.com/[email protected]/dist/d3.min.js
85-
- https://unpkg.com/[email protected].5/dist/browser/index.min.js
85+
- https://unpkg.com/[email protected].6/dist/browser/index.min.js
8686
- https://unpkg.com/[email protected]/dist/index.min.js
8787
```
8888
@@ -92,6 +92,15 @@ extra_javascript:
9292
* `markmap-lib`
9393
* `markmap-view`
9494
95+
96+
## Troubleshooting
97+
98+
### Nav tree lists markmaps
99+
100+
1. Move your markmap files to a separate folder next to `docs`, e.g. `mindmaps`
101+
2. Configure `base_path` accordingly (see [Advanced Settings](#advanced-settings))
102+
103+
95104
## Credits :clap:
96105
97106
Some of the development approaches are based on implementations provided by the following projects:

changelog/v2.1.2.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22

33
* Fixes [superfences bug](https://github.com/neatc0der/mkdocs-markmap/issues/19)
44
* Updates distribute workflow
5-

changelog/v2.1.3.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# v2.1.3
2+
3+
* Fixes [superfences 9.0 bug](https://github.com/neatc0der/mkdocs-markmap/issues/27)

changelog/v2.2.0.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# v2.2.0
2+
3+
* Fixes distribute workflow

mkdocs_markmap/__meta__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PACKAGE_NAME = 'mkdocs_markmap'
22
PROJECT_NAME = PACKAGE_NAME.replace('_', '-')
3-
PROJECT_VERSION = '2.1.2'
3+
PROJECT_VERSION = '2.2.0'
44

55
OWNER = 'neatc0der'
66
REPOSITORY_NAME = f'{OWNER}/{PROJECT_NAME}'

mkdocs_markmap/defaults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class JsModuleConfig(object):
1414
)
1515

1616
MARKMAP_LIB: JsModuleConfig = JsModuleConfig(
17-
version='0.11.5',
17+
version='0.11.6',
1818
uri='https://unpkg.com/markmap-lib@{}/dist/browser/index.min.js',
1919
)
2020

mkdocs_markmap/extension.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,18 @@ def extendMarkdown(self, md: Markdown, md_globals: Dict[str, str]) -> None:
9494
md.preprocessors.register(MarkmapPreprocessor(md, self.getConfigs()), 'include_markmap', 102)
9595
for extension in md.registeredExtensions:
9696
if extension.__class__.__name__ == 'SuperFencesCodeExtension':
97+
log.info(f'superfences detected by markmap')
9798
try:
9899
from pymdownx.superfences import default_validator, fence_code_format, _formatter, _validator
99100
extension.extend_super_fences(
100101
'markmap',
101102
partial(_formatter, class_name='language-markmap', _fmt=fence_code_format),
102-
partial(_validator, validator=default_validator, _legacy=False)
103+
partial(_validator, validator=default_validator)
103104
)
104105
break
105106

106107
except ImportError as e:
107-
log.warning(f'detected pymdownx.superfences, but import is not working: {e}')
108+
log.warning(f'markmap detected pymdownx.superfences, but import is not working: {e}')
108109

109110
except Exception as e:
110111
log.error(f'unexpected error: {e}')

0 commit comments

Comments
 (0)