fix(techdocs-core): formatting

This commit is contained in:
Sebastian Qvarfordt
2020-07-29 12:52:53 +02:00
parent 044b1d4201
commit 276dd590f1
@@ -21,18 +21,17 @@ from mkdocs_monorepo_plugin.plugin import MonorepoPlugin
import tempfile
import os
class TechDocsCore(BasePlugin):
class TechDocsCore(BasePlugin):
def on_config(self, config):
fp = open(os.path.join(tempfile.gettempdir(), 'techdocs_metadata.json'), 'w+')
fp.write('{\n "site_name": "{{ config.site_name }}",\n "site_description": "{{ config.site_description }}"\n}')
fp = open(os.path.join(tempfile.gettempdir(), "techdocs_metadata.json"), "w+")
fp.write(
'{\n "site_name": "{{ config.site_name }}",\n "site_description": "{{ config.site_description }}"\n}'
)
# Theme
config["theme"] = Theme(
name="material",
static_templates=[
"techdocs_metadata.json",
],
name="material", static_templates=["techdocs_metadata.json",],
)
config["theme"].dirs.append(tempfile.gettempdir())