Files
dagu/docs/Makefile
T
Yota Hamada 25a2c64c56 Update Docs (#432)
* setup sphinx

* add sphinx docs

* fix sphinx doc setup

* fix reference

* fix Makefile

* add depenedency to sphinx-intl

* update doc

* add translation files

* remove rest api doc

* move examples readme to sphinx
2023-04-15 01:42:21 +09:00

46 lines
1.1 KiB
Makefile

# 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
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile build
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
local:
sphinx-autobuild --watch docs --port 8000 --open-browser --delay 1 source docs/build/html
install-dependencies:
python -m pip install -r requirements.txt
install-libs:
pip install sphinx sphinx-autobuild
build:
sphinx-build -b html source/ build/html
gettext-ja:
sphinx-build -b gettext source/ build/html
sphinx-intl update -p _build/gettext -l ja
PYTHON_VER = 3.7.16
venv:
pyenv local $(PYTHON_VER)
python -m venv .venv
install-python:
@pyenv install $(PYTHON_VER)