From 4dad6f7536b7f4d9954b9291ed77fcf72e70285b Mon Sep 17 00:00:00 2001 From: Takumi Sueda Date: Sun, 18 Oct 2020 04:08:50 +0900 Subject: [PATCH] Small fixes --- Makefile | 6 +----- Wikiの管理.md | 7 ++++++- generate_toc.py => gen_sidebar.py | 0 3 files changed, 7 insertions(+), 6 deletions(-) rename generate_toc.py => gen_sidebar.py (100%) diff --git a/Makefile b/Makefile index 7960983..1b4fe03 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,9 @@ .PHONY: -install-dependency: - npm install -g doctoc - pip3 install -r requirements.txt - .PHONY: doctoc: doctoc --title "### 目次" . .PHONY: generate-sidebar: - python3 generate_toc.py + python3 gen_sidebar.py diff --git a/Wikiの管理.md b/Wikiの管理.md index 89e0951..9e36d4b 100644 --- a/Wikiの管理.md +++ b/Wikiの管理.md @@ -14,9 +14,14 @@ $ git clone https://github.com/brain-hackers/README.wiki.git ``` +# 各文章内の目次生成 + +各文章内の目次は、[doctoc](https://github.com/thlorenz/doctoc)で生成している。 `make doctoc` で呼ぶことが出来る。 + + # ファイル名とサイドバーの関係 -サイドバーの目次は `generate_toc.py` でWikiに含まれるMarkdown文書のファイル名から自動生成している。 +サイドバーの目次は、Wikiに含まれるMarkdown文書のファイル名から `gen_sidebar.py` で自動生成している。 `make generate-sidebar` で呼ぶことが出来る。Wiki に文書を追加する度に実行してコミットする。 ファイル名に ` > `(前後にスペース必須)が含まれていると、その左側はセクション名と解釈される。 diff --git a/generate_toc.py b/gen_sidebar.py similarity index 100% rename from generate_toc.py rename to gen_sidebar.py