-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #197 from freee/develop
RELEASE Ver. 202403.0 (2024-03-04)
- Loading branch information
Showing
584 changed files
with
12,093 additions
and
1,741 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
html/* | ||
node_modules/* | ||
.vscode/* | ||
build/* | ||
source/__pycache__/* | ||
source/inc/* | ||
source/faq/* | ||
*/build/* | ||
*/source/inc/* | ||
*/source/faq/* | ||
.DS_Store | ||
/incfiles.mk | ||
*/incfiles.mk | ||
__pycache__/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,33 @@ | ||
PYTHON?= python | ||
YAML2RST= $(PYTHON) tools/yaml2rst/yaml2rst.py | ||
BUILD_PROCEDURE_VERSION = 1 | ||
SUBDIRS = ja en | ||
|
||
# Minimal makefile for Sphinx documentation | ||
# | ||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = source | ||
BUILDDIR = build | ||
SPHINX_PREDEFINED_TARGETS := $(shell $(SPHINXBUILD) -M help . .|sed -r '/^\S+/d;s/^\s+(\S+).+/\1/;/^clean/d') | ||
PREDEFINED_TARGETS = $(SPHINX_PREDEFINED_TARGETS) check-includes | ||
INCLUDED_FILES := $(shell grep -ohRE '^\.\. include:: +.+' $(SOURCEDIR) | sed -r "s%^\.\. include:: +%$(SOURCEDIR)%") | ||
export ROOTDIR = $(CURDIR) | ||
export SPHINXBUILD ?= sphinx-build | ||
export SPHINX_PREDEFINED_TARGETS := $(shell $(SPHINXBUILD) -M help . .|sed -r '/^\S+/d;s/^\s+(\S+).+/\1/;/^clean/d') | ||
export PREDEFINED_TARGETS = check-includes clean | ||
export ALL_PREDEFINED_TARGETS = $(SPHINX_PREDEFINED_TARGETS) $(PREDEFINED_TARGETS) | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
.PHONY: all $(SUBDIRS) $(ALL_PREDEFINED_TARGETS) build-procedure-version | ||
|
||
.PHONY: help incfiles clean Makefile | ||
all: html | ||
|
||
incfiles.mk: $(wildcard data/yaml/gl/*/*.yaml data/yaml/checks/*/*.yaml data/yaml/faq/**/*.yaml) | ||
@if [ ! -f incfiles.mk ]; then \ | ||
${YAML2RST}; \ | ||
else \ | ||
${YAML2RST} incfiles.mk; \ | ||
fi | ||
|
||
incfiles:| $(SOURCEDIR)/inc | ||
|
||
ifneq ($(filter $(MAKECMDGOALS),$(PREDEFINED_TARGETS)),) | ||
include incfiles.mk | ||
endif | ||
|
||
# | ||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
$(SPHINX_PREDEFINED_TARGETS): incfiles.mk incfiles Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
clean: | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
@$(RM) -rf $(SOURCEDIR)/inc $(SOURCEDIR)/faq incfiles.mk | ||
|
||
$(SOURCEDIR)/inc: | ||
@$(YAML2RST) | ||
|
||
check-includes: | ||
@for file in $(ALL_INC_FILES); do \ | ||
if ! echo $(INCLUDED_FILES) | grep -q $$file; then \ | ||
echo "Error: File $$file is not referenced"; \ | ||
exit 1; \ | ||
fi; \ | ||
$(ALL_PREDEFINED_TARGETS): | ||
@for dir in $(SUBDIRS); do \ | ||
$(MAKE) -C $$dir $@ || exit 1; \ | ||
done | ||
|
||
# $(SUBDIRS): | ||
# @target="$(MAKECMDGOALS)"; \ | ||
# for subdir_target in $(ALL_PREDEFINED_TARGETS); do \ | ||
# if [ "$$target" = "$$subdir_target" ]; then \ | ||
# echo "Running make $$target in subdirectory $@"; \ | ||
# $(MAKE) -C $@ $$target || exit 1; \ | ||
# break; \ | ||
# fi; \ | ||
# done | ||
|
||
# %: $(SUBDIRS) | ||
# @: | ||
|
||
build-procedure-version: | ||
@echo $(BUILD_PROCEDURE_VERSION) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
rootdir = $(ROOTDIR) | ||
PYTHON?= python | ||
YAML2RST= $(PYTHON) $(rootdir)/tools/yaml2rst/yaml2rst.py -b $(rootdir) -l $(lang) | ||
|
||
ifneq ($(BASE_URL),) | ||
html_baseurl = $(BASE_URL) | ||
else | ||
html_baseurl = | ||
endif | ||
baseurl_ja = $(html_baseurl) | ||
baseurl_en = $(html_baseurl)en/ | ||
base_url_options=-D html_baseurl=$(html_baseurl)$(base_url_suffix) -A baseurl_ja=$(baseurl_ja) -A baseurl_en=$(baseurl_en) | ||
|
||
SPHINXOPTS= $(sphinx_options) $(base_url_options) | ||
SOURCEDIR = source | ||
BUILDDIR = build | ||
INCLUDED_FILES := $(shell grep -ohRE '^\.\. include:: +.+' $(SOURCEDIR) | sed -r "s%^\.\. include:: +%$(CURDIR)/$(SOURCEDIR)%") | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help incfiles clean Makefile $(SPHINX_PREDEFINED_TARGETS) | ||
|
||
incfiles.mk: $(wildcard $(rootdir)/data/yaml/gl/*/*.yaml $(rootdir)/data/yaml/checks/*/*.yaml $(rootdir)/data/yaml/faq/**/*.yaml) | ||
@if [ ! -f incfiles.mk ]; then \ | ||
${YAML2RST}; \ | ||
else \ | ||
${YAML2RST} incfiles.mk; \ | ||
fi | ||
|
||
incfiles:| $(SOURCEDIR)/inc | ||
|
||
ifneq ($(filter $(MAKECMDGOALS),$(ALL_PREDEFINED_TARGETS)),) | ||
include incfiles.mk | ||
endif | ||
|
||
# | ||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
$(SPHINX_PREDEFINED_TARGETS): incfiles.mk incfiles Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
clean: | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
@$(RM) -rf $(SOURCEDIR)/inc $(SOURCEDIR)/faq incfiles.mk | ||
|
||
$(SOURCEDIR)/inc: | ||
@$(YAML2RST) | ||
|
||
check-includes: | ||
@for file in $(ALL_INC_FILES); do \ | ||
if ! echo $(INCLUDED_FILES) | grep -q $$file; then \ | ||
echo "Error: File $$file is not referenced"; \ | ||
exit 1; \ | ||
fi; \ | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
} | ||
}, | ||
"additionalProperties": false, | ||
"required": ["ja"] | ||
"required": ["ja", "en"] | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.