Skip to content

Commit b7d7361

Browse files
committed
updated mkdocs setup to use public mkdocs-material 9.7.1 and removed insiders logic, as the insiders program is no longer supported and was merged into the public version
1 parent 842128c commit b7d7361

2 files changed

Lines changed: 4 additions & 25 deletions

File tree

docs/mkdocs_parent.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ markdown_extensions:
113113
permalink: 🔗
114114

115115
plugins:
116+
- typeset
116117
- search: { }
117118
- snippets:
118119
directory: "_snippets"
@@ -125,11 +126,7 @@ plugins:
125126
- mkdocs_parent.yml
126127
- setup-docs-dependencies.py
127128
- group:
128-
enabled: !ENV MKDOCS_MATERIAL_INSIDERS_ENABLED
129-
plugins:
130-
- typeset
131-
- group:
132-
enabled: !ENV MKDOCS_MATERIAL_INSIDERS_ENABLED_CI
129+
enabled: !ENV MKDOCS_MATERIAL_CI
133130
plugins:
134131
- optimize
135132

docs/setup-docs-dependencies.py

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,7 @@
55
'mkdocs-snippets',
66
'mike==2.1.3',
77
'mkdocs-exclude==1.0.2',
8+
'mkdocs-material==9.7.1',
89
]
910

10-
11-
def get_install_requires():
12-
mkdocs_token = os.environ.get('MKDOCS_MATERIAL_INSIDERS')
13-
if mkdocs_token:
14-
mkdocs_enabled = os.environ.get('MKDOCS_MATERIAL_INSIDERS_ENABLED')
15-
if mkdocs_enabled == 'true':
16-
return [
17-
f'git+https://{mkdocs_token}@github.com/squidfunk/mkdocs-material-insiders.git@9.6.2-insiders-4.53.15',
18-
'pillow',
19-
'cairosvg',
20-
] + common_dependencies
21-
print("\033[93m"
22-
+ "Warning: 'MKDOCS_MATERIAL_INSIDERS' is set "
23-
+ "but 'MKDOCS_MATERIAL_INSIDERS_ENABLED' is not set to 'true', "
24-
+ "so if you serve mkdocs you will serve the normal version!"
25-
+ "\033[0m")
26-
return ['mkdocs-material==9.6.2'] + common_dependencies
27-
28-
29-
subprocess.run(['pip', 'install'] + get_install_requires())
11+
subprocess.run(['pip', 'install'] + common_dependencies)

0 commit comments

Comments
 (0)