docs: fixed docs generation on centos-7
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
parent
42c3837f40
commit
300444b236
4 changed files with 4 additions and 4 deletions
2
Makefile
2
Makefile
|
|
@ -38,7 +38,7 @@ export SBINDIR = $(PREFIX)/sbin
|
|||
export SYSCONFDIR = /etc
|
||||
export DATADIR = $(PREFIX)/share
|
||||
export DOCDIR = $(DATADIR)/doc/$(NAME)
|
||||
PYTHON = $(BINDIR)/python3
|
||||
export PYTHON = $(BINDIR)/python3
|
||||
PYLINT = pylint-3
|
||||
ifeq ($(PYTHON),python2)
|
||||
PYLINT = pylint-2
|
||||
|
|
|
|||
|
|
@ -31,6 +31,6 @@ with open(args.out, "w") as out_file:
|
|||
plugin_file = inspect.getfile(plugin)
|
||||
plugin_name = os.path.basename(plugin_file)[7:-3]
|
||||
out_file.write("\n")
|
||||
out_file.write(f"== **{plugin_name}**\n")
|
||||
out_file.write("== **%s**\n" % plugin_name)
|
||||
out_file.write(inspect.cleandoc(plugin.__doc__))
|
||||
out_file.write("\n")
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
.PHONY: clean
|
||||
|
||||
index.html: master.adoc assemblies/*.adoc meta/*.adoc modules/performance/*.adoc ../../tuned/plugins/plugin_*.py
|
||||
python3 ../../compile_plugin_docs.py modules/performance/ref_available-tuned-plug-ins_intro.adoc modules/performance/ref_available-tuned-plug-ins.adoc
|
||||
$(PYTHON) ../../compile_plugin_docs.py modules/performance/ref_available-tuned-plug-ins_intro.adoc modules/performance/ref_available-tuned-plug-ins.adoc
|
||||
asciidoctor -o index.html master.adoc || asciidoc -d book -o index.html master.adoc
|
||||
|
||||
install: index.html
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import threading
|
|||
# perf is optional
|
||||
try:
|
||||
import perf
|
||||
except ModuleNotFoundError:
|
||||
except ImportError:
|
||||
# if perf is unavailable, it will be disabled later
|
||||
pass
|
||||
import select
|
||||
|
|
|
|||
Loading…
Reference in a new issue