Skip to content

Commit a48cb22

Browse files
authored
Add mermaid-filter (#202)
1 parent 06cdadb commit a48cb22

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

build-resources-with-pandoc.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ pandoc ./AWSインフラリソース命名規約.md --toc --reference-doc=${STYL
2626
# OpenAPISpecification
2727
cd ${ROOT_DIR}/documents/forOpenAPISpecification
2828

29-
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
30-
pandoc ./OpenAPI_Specification_2.0.md --toc --reference-doc=${STYLE_DOCX_PATH} -s -o ${RESOURCES_DIR}/OpenAPI_Specification_2.0.docx
29+
# OpenAPI規約はmeramid.jsによるUML表示を行うため、フィルターを追加
30+
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
31+
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
3132

3233
# Git
3334
cd ${ROOT_DIR}/documents/forGitBranch

documents/forOpenAPISpecification/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ OAS は次のように複数のバージョンが存在します。
5555
(これらのファイルは[Pandoc]を利用して作成しています。)
5656

5757
- [Markdown](https://github.com/future-architect/coding-standards/blob/master/documents/forOpenAPISpecification/OpenAPI_Specification_2.0.md)
58-
- [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)
59-
- [Word](https://github.com/future-architect/coding-standards/raw/gh-pages/resources/OpenAPI_Specification_2.0.docx)
58+
- [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)
59+
- [Word](https://github.com/future-architect/coding-standards/raw/gh-pages/resources/OpenAPI_Specification_3.0.3.docx)
6060

6161
[pandoc]: https://pandoc.org/
6262

0 commit comments

Comments
 (0)