このページは、まだ日本語ではご利用いただけません。翻訳中です。
旧バージョンのドキュメントを参照しています。 最新のドキュメントはこちらをご参照ください。
Markdown Rendering Module
The Kong Developer Portal supports Github-flavored markdown (GFM) that can be used in lieu of the templates. Instead of having to create an HTML layout and partials for your templates, you can use custom CSS with the improved markdown rendering module. The extended markdown support improves rendering significantly, especially for tables.
Prerequisites
- Access to Kong Manager
- The Developer Portal is enabled and running
Specify the markdown rendering module in a document
- Create a markdown file for your Dev Portal documentation.
- Call the markdown module using the
layoutparameter. -
Specify the
.cssfile you want to use. You can use the default Github.cssas shown, or specify your own custom.css.- All markdown CSS classes should be prepended by
.markdown-body. This is to ensure that markdown styles do not bleed into other areas of the portal. - The
.cssfile should be placed in the current theme’s/assetsdirectory. - The renderer assumes the
.csspath will begin from the/assetsdirectory. See the example below. - Other classes defined in any other Dev Portal CSS external to the
markdown.cssmay pollute your rendered markdown. If you want to unset particular styles, you can do so using the/assets/style/markdown-fixes.cssfile.
- All markdown CSS classes should be prepended by
Example
/content/markdown-example.md
---
layout: system/markdown.html
css: assets/style/markdown.css
---