LoginSignup
0
0

More than 3 years have passed since last update.

docker/getting-started のドキュメントを編集してみる (MkDocs)

Last updated at Posted at 2021-04-29

docker/getting-startedMkDocsで作られている様子。

getting-started の構成

  • docs : ドキュメントが入っている
  • docs/index.md : tutorial へのリダイレクト設定
  • docs/tutorial/index.md : tutorial の内容
  • app/src/static/index.html : .mdから.htmlに変換されたもの
cd getting-started

日本語検索 参考 公式

mkdocs.yml
  theme:
    name: material
-   language: en
+   language: ja

...

  extra:
    social:
      - type: github-alt
        link: https://github.com/docker/getting-started
+   search:
+     language: ja
docker-compose up
# ビルド
docker build -t docker/getting-started .

# 起動
docker run -d -p 80:80 docker/getting-started

良いところ

  • 空白を入れてもコードブロックとして認識してくれる。
  • 幅の指定などができる

Untitled.png

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0