màj: utilisation de htmlserve au lieu de serve dans le Makefile (#1919)

This commit is contained in:
edith 2022-11-13 09:29:30 -05:00 committed by GitHub
parent 648077d02d
commit da21f1dbe0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 11 deletions

View File

@ -315,7 +315,7 @@ documentation local :
.. code-block:: bash
make serve
make htmlview
La documentation est publiée à l'adresse `<http://localhost:8000/library/sys.html>`_.
@ -329,7 +329,7 @@ nécessaire.
Poedit donne beaucoup d'avertissements, par exemple pour vous informer que
« la traduction devrait commencer par une majuscule » car c'est le cas pour
la source. Ces avertissements ne sont pas tous fondés. En cas de doute,
*affichez et relisez la page HTML produite* avec ``make serve``.
*affichez et relisez la page HTML produite* avec ``make htmlview``.
Quatrième étape : publier sa traduction
=======================================

View File

@ -98,7 +98,7 @@ all: ensure_prerequisites
-D latex_elements.inputenc= \
-D latex_elements.fontenc=' \
$(MODE)
@echo "Build success, open file://$(abspath venv/cpython/)/Doc/build/html/index.html or run 'make serve' to see them."
@echo "Build success, open file://$(abspath venv/cpython/)/Doc/build/html/index.html or run 'make htmlview' to see them."
# We clone cpython/ inside venv/ because venv/ is the only directory
@ -117,14 +117,9 @@ ensure_prerequisites: venv/cpython/.git/HEAD
exit 1; \
fi
.PHONY: serve
serve:
ifdef SERVE_PORT
$(MAKE) -C venv/cpython/Doc/ serve SERVE_PORT=$(SERVE_PORT)
else
$(MAKE) -C venv/cpython/Doc/ serve
endif
.PHONY: htmlview
htmlview: MODE=htmlview
htmlview: all
.PHONY: todo
todo: ensure_prerequisites