From a48cb221094ed8a1bae2cf66be379a786d0a6df4 Mon Sep 17 00:00:00 2001 From: Junki Mano Date: Tue, 24 Dec 2024 13:19:29 +0900 Subject: [PATCH] Add mermaid-filter (#202) --- build-resources-with-pandoc.sh | 5 +++-- documents/forOpenAPISpecification/index.md | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build-resources-with-pandoc.sh b/build-resources-with-pandoc.sh index 96b5ec52..f02ac501 100644 --- a/build-resources-with-pandoc.sh +++ b/build-resources-with-pandoc.sh @@ -26,8 +26,9 @@ pandoc ./AWSインフラリソース命名規約.md --toc --reference-doc=${STYL # OpenAPISpecification cd ${ROOT_DIR}/documents/forOpenAPISpecification -pandoc ./OpenAPI_Specification_2.0.md -s --self-contained --number-sections --toc -t html5 -c ${CSS_PATH} -o ${RESOURCES_DIR}/OpenAPI_Specification_2.0.html -pandoc ./OpenAPI_Specification_2.0.md --toc --reference-doc=${STYLE_DOCX_PATH} -s -o ${RESOURCES_DIR}/OpenAPI_Specification_2.0.docx +# OpenAPI規約はmeramid.jsによるUML表示を行うため、フィルターを追加 +pandoc ./OpenAPI_Specification_3.0.3.md -s --self-contained --number-sections --toc -t html5 -c ${CSS_PATH} --filter mermaid-filter -o ${RESOURCES_DIR}/OpenAPI_Specification_3.0.3.html +pandoc ./OpenAPI_Specification_3.0.3.md --toc --reference-doc=${STYLE_DOCX_PATH} -s --filter mermaid-filter -o ${RESOURCES_DIR}/OpenAPI_Specification_3.0.3.docx # Git cd ${ROOT_DIR}/documents/forGitBranch diff --git a/documents/forOpenAPISpecification/index.md b/documents/forOpenAPISpecification/index.md index 126835f6..697c96a4 100644 --- a/documents/forOpenAPISpecification/index.md +++ b/documents/forOpenAPISpecification/index.md @@ -55,8 +55,8 @@ OAS は次のように複数のバージョンが存在します。 (これらのファイルは[Pandoc]を利用して作成しています。) - [Markdown](https://github.com/future-architect/coding-standards/blob/master/documents/forOpenAPISpecification/OpenAPI_Specification_2.0.md) -- [HTML(Single File)](https://github.com/future-architect/coding-standards/blob/gh-pages/resources/OpenAPI_Specification_2.0.html) ([ブラウザで見る](https://future-architect.github.io/coding-standards/resources/OpenAPI_Specification_2.0.html)) -- [Word](https://github.com/future-architect/coding-standards/raw/gh-pages/resources/OpenAPI_Specification_2.0.docx) +- [HTML(Single File)](https://github.com/future-architect/coding-standards/blob/gh-pages/resources/OpenAPI_Specification_2.0.html) ([ブラウザで見る](https://future-architect.github.io/coding-standards/resources/OpenAPI_Specification_3.0.3.html)) +- [Word](https://github.com/future-architect/coding-standards/raw/gh-pages/resources/OpenAPI_Specification_3.0.3.docx) [pandoc]: https://pandoc.org/