From ec5c93d0c7468513c914b1e719d21e59936e7807 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Fri, 6 Dec 2019 00:20:30 +0100 Subject: [PATCH 1/2] Propose to directly open static files. --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4aded1c4c..10da53308 100644 --- a/Makefile +++ b/Makefile @@ -16,10 +16,11 @@ # documented in gen/src/3.6/Doc/Makefile as we're only delegating the # real work to the Python Doc Makefile. -CPYTHON_CLONE := ../cpython/ +CPYTHON_CLONE := $(realpath ../cpython/) SPHINX_CONF := $(CPYTHON_CLONE)/Doc/conf.py LANGUAGE := fr -VENV := $(shell pwd)/venv/ +CWD := $(shell pwd) +VENV := $(CWD)/venv/ PYTHON := $(shell which python3) MODE := html BRANCH = 3.8 @@ -36,7 +37,7 @@ endif ln -nfs $(shell $(PYTHON) -c 'import os; print(os.path.realpath("."))') $(CPYTHON_CLONE)/locales/$(LANGUAGE)/LC_MESSAGES $(MAKE) -C $(CPYTHON_CLONE)/Doc/ VENVDIR=$(VENV) PYTHON=$(PYTHON) \ SPHINXOPTS='-qW -j$(JOBS) -D locale_dirs=../locales -D language=$(LANGUAGE) -D gettext_compact=0 -D latex_engine=xelatex -D latex_elements.inputenc= -D latex_elements.fontenc=' \ - $(MODE) && echo "Build success, files in $(CPYTHON_CLONE)Doc/build/$(MODE), run 'make serve' or 'python3 -m http.server -d $(CPYTHON_CLONE)Doc/build/$(MODE)' to see them." + $(MODE) && echo "Build success, open file://$(CPYTHON_CLONE)/Doc/build/html/index.html or run 'make serve' to see them." .PHONY: serve From c9f8b4252202f4d3acffafb0891378284ebb0e7c Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Fri, 6 Dec 2019 00:22:55 +0100 Subject: [PATCH 2/2] Unrelated modification --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 10da53308..3ccec13ba 100644 --- a/Makefile +++ b/Makefile @@ -19,8 +19,7 @@ CPYTHON_CLONE := $(realpath ../cpython/) SPHINX_CONF := $(CPYTHON_CLONE)/Doc/conf.py LANGUAGE := fr -CWD := $(shell pwd) -VENV := $(CWD)/venv/ +VENV := $(shell pwd)/venv/ PYTHON := $(shell which python3) MODE := html BRANCH = 3.8