Skip to content

Commit c383169

Browse files
author
Sychevskyi Henadii
committed
ASUP-340
1 parent b1bf9b1 commit c383169

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

mkdocs.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ copyright: Copyright © Virtuozzo, Inc.
77
#theme_center_lead: false
88

99

10-
theme_dir: './theme/readthedocs'
10+
theme:
11+
name: null
12+
custom_dir: 'theme/readthedocs'
1113
repo_url: 'https://github.com/virtuozzo/cloudscripting-docs/edit/master/docs/'
1214

1315
markdown_extensions:
@@ -32,7 +34,7 @@ markdown_extensions:
3234
- pymdownx.tasklist(custom_checkbox=true)
3335
- pymdownx.tilde
3436

35-
pages:
37+
nav:
3638

3739
- GETTING STARTED:
3840
- Overview: index.md

plugins/markdown-tabs/markdown-tabs.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ def run(self, lines):
3838
return new_lines
3939

4040
class TabsExtension(Extension):
41-
def extendMarkdown(self, md, md_globals):
41+
# Compatible with Markdown 2.x (md, md_globals) and 3.x (md) signatures
42+
def extendMarkdown(self, md, md_globals=None):
4243
md.registerExtension(self)
44+
# Old-style assignment still works; no need for md.preprocessors.register here
4345
md.preprocessors["tabs"] = TabsPreprocessor()
44-
pass
4546

4647

4748
def makeExtension(*args, **kwargs):

0 commit comments

Comments
 (0)