1
0
Fork 0

Merge pull request #835 from yarda/docs-auto-rev

docs: auto update revname and revdate
This commit is contained in:
Jaroslav Škarvada 2026-03-19 16:01:19 +01:00 committed by GitHub
commit 9ff684522e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 4 deletions

View file

@ -1,9 +1,12 @@
.PHONY: clean
DOCVER=$(shell cd ../..; $$PYTHON -c 'import tuned.version as v; print(v.TUNED_VERSION_STR)')
DOCDATE=$(shell date '+%Y-%m-%d')
index.html: master.adoc assemblies/*.adoc meta/*.adoc modules/performance/*.adoc ../../tuned/plugins/plugin_*.py ../../tuned/profiles/functions/function_*.py
$(PYTHON) ./compile_plugin_docs.py ../../tuned/plugins plugin_ Plugin modules/performance/ref_available-tuned-plug-ins_intro.adoc modules/performance/ref_available-tuned-plug-ins.adoc
$(PYTHON) ./compile_plugin_docs.py ../../tuned/profiles/functions function_ Function modules/performance/ref_built-in-functions-available-in-tuned-profiles_intro.adoc modules/performance/ref_built-in-functions-available-in-tuned-profiles.adoc
asciidoctor -o index.html master.adoc || asciidoc -d book -o index.html master.adoc
asciidoctor -a revnumber=$(DOCVER) -a revdate=$(DOCDATE) -o index.html master.adoc || asciidoc -a revnumber=$(DOCVER) -a revdate=$(DOCDATE) -d book -o index.html master.adoc
install: index.html
install -Dpm 0644 index.html $(DESTDIR)$(DOCDIR)/manual/index.html

View file

@ -1,9 +1,9 @@
:revnumber: 2.27.0
:revdate: 2026-03-03
:revnumber: 0.0.0
:revdate: 2000-01-01
:keywords: documentation, tuned, performance, power, linux
:toc:
// The revnumber attribute is intended to show the TuneD version for which the document has been updated
// The revnumber and revdate attributes are automatically updated during build
[id="{tuned-documentation}"]
= TuneD documentation: Optimizing system throughput, latency, and power consumption