From e21bbbe516921e227f92a79aee8f907ee2563828 Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Thu, 5 Dec 2019 17:54:12 +0900 Subject: Wiki support 1st version Renesas contracted service provider will stop Redmine at 2021. But, We want to keep it. This patch start to support Wiki at PeriJect. 100% compatible is difficult, but some of them can be. These are known un-compatiblity. - list "-" doesn't work - line "---" doesn't work - [[link]] doesn't work (periject supports similar one) - !image! doesn't work (periject supports similar one) -
...
doesn't allow white line - {{toc}} doesn't work Signed-off-by: Kuninori Morimoto --- Makefile | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0070d73..827f7b7 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,10 @@ -HTML = ./scripts/html.py +HTML = ./scripts/myhtml.py FIND = ./scripts/find.py ALLYAML = $(shell ${FIND} -all) -FOLDERS = $(subst ./,,$(shell cd ./projects; find -type d)) -HTMLDIR = $(addprefix html/, ${FOLDERS}) +PROJECT = $(subst ./,,$(shell cd ./projects; find -type d)) +WIKI = $(shell find wiki -name "*.wiki") +WIKIDIR = html/wiki +HTMLDIR = $(addprefix html/, ${PROJECT}) PRODIR = $(shell find ./projects -type d) TEAM = Core IO MM MEMBER = BSP Geert Jacopo Kaneko Kieran Laurent Magnus Marek Morimoto Niklas Shimoda Simon Ulrich Wolfram NoAssignee @@ -11,13 +13,14 @@ NOPARAM = menu subindex body index all: @make -s .git/hooks/pre-commit - @make -s ${HTMLDIR} + @make -s ${HTMLDIR} ${WIKIDIR} @make -s LISTS="${MEMBER}" TARGET=finds EXP1=member EXP2=-a loop @make -s LISTS="${STATUS}" TARGET=finds EXP1=status EXP2=-s loop @make -s LISTS="${TEAM}" TARGET=finds EXP1=team EXP2=-t loop @make -s LISTS="${ALLYAML}" TARGET=file loop @make -s LISTS="${NOPARAM}" TARGET=noparam loop - @make -s LISTS="${FOLDERS}" TARGET=summary loop + @make -s LISTS="${PROJECT}" TARGET=summary loop + @make -s LISTS="${WIKI}" TARGET=wikis loop @make -s bsp @make -s index.html @@ -27,7 +30,7 @@ all: index.html: @ln html/index.html . -${HTMLDIR}: +${HTMLDIR} ${WIKIDIR}: mkdir -p $@ ${FILE}: ${HTML_OPTION2} ${HTML} @@ -50,6 +53,8 @@ bsp: make HTML_OPTION1=bsp HTML_OPTION2="${ALLYAML}" FILE=html/bsp.html basic finds: make HTML_OPTION1="${EXP1} ${PARAM}" HTML_OPTION2="$(shell ${FIND} ${EXP2} ${PARAM})" FILE=html/${PARAM}.html basic +wikis: + make HTML_OPTION1=wiki HTML_OPTION2="${PARAM}" FILE=$(addprefix html/,$(subst .wiki,.html,${PARAM})) basic clean: @rm -fr html @rm -fr *.html -- cgit v1.2.3