Skip to content

Commit

Permalink
Add mermaid-filter (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
ma91n authored Dec 24, 2024
1 parent 06cdadb commit a48cb22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions build-resources-with-pandoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions documents/forOpenAPISpecification/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/

Expand Down

0 comments on commit a48cb22

Please sign in to comment.