From eee3a5563309375c55edfae5b7b9cd4adc52a3f0 Mon Sep 17 00:00:00 2001 From: Sebastian Qvarfordt Date: Wed, 24 Jun 2020 10:57:04 +0200 Subject: [PATCH] fix(mkdocs): update sample md file --- .../container/techdocs-core/src/core.py | 12 ++++---- .../techdocs/mkdocs/mock-docs/docs/index.md | 28 +++++++++++++++++++ 2 files changed, 33 insertions(+), 7 deletions(-) diff --git a/plugins/techdocs/mkdocs/container/techdocs-core/src/core.py b/plugins/techdocs/mkdocs/container/techdocs-core/src/core.py index d9c33b2167..fddee3bfd1 100644 --- a/plugins/techdocs/mkdocs/container/techdocs-core/src/core.py +++ b/plugins/techdocs/mkdocs/container/techdocs-core/src/core.py @@ -32,7 +32,6 @@ class TechDocsCore(BasePlugin): config['plugins']['search'] = search_plugin # Markdown Extensions - print(config) config['markdown_extensions'].append('admonition') config['markdown_extensions'].append('abbr') config['markdown_extensions'].append('attr_list') @@ -51,11 +50,11 @@ class TechDocsCore(BasePlugin): config['markdown_extensions'].append('markdown.extensions.tables') config['markdown_extensions'].append('markdown_inline_graphviz') config['markdown_extensions'].append('plantuml_markdown') - config['markdown_extensions'].append('markdown_katex') - config['mdx_configs']['markdown_katex'] = { - 'no_inline_svg': True, - 'insert_fonts_css': True, - } + #config['markdown_extensions'].append('markdown_katex') + #config['mdx_configs']['markdown_katex'] = { + # 'no_inline_svg': True, + # 'insert_fonts_css': True, + #} config['markdown_extensions'].append('pymdownx.betterem') config['mdx_configs']['pymdownx.betterem'] = { 'smart_enable': 'all', @@ -77,7 +76,6 @@ class TechDocsCore(BasePlugin): 'custom_checkbox': True, } config['markdown_extensions'].append('pymdownx.tilde') - print(config) return config diff --git a/plugins/techdocs/mkdocs/mock-docs/docs/index.md b/plugins/techdocs/mkdocs/mock-docs/docs/index.md index 72f7a776a8..e8ba4e2d6d 100644 --- a/plugins/techdocs/mkdocs/mock-docs/docs/index.md +++ b/plugins/techdocs/mkdocs/mock-docs/docs/index.md @@ -2,3 +2,31 @@ !!! test Testing somethin + +Some text about MOCDOC + +\*[MOCDOC]: Mock Documentation + +This is a paragraph. +{: #test_id .test_class } + +Apple +: Pomaceous fruit of plants of the genus Malus in +the family Rosaceae. + +```javascript +import { test } from 'something'; + +const addThingToThing = (a, b) a + b; +``` + +- [abc](#abc) +- [xyz](#xyz) + +## abc + +This is a b c. + +## xyz + +This is x y z.