Skip to contentSkip to conversation

meson: build Xe test documentation

PATCH Superseded Mauro Carvalho Chehab 1 participant 1 message Mar 14, 2023 Arm/Amlogic Meson SoC support

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 meson: build Xe test documentation

From: Mauro Carvalho Chehab <[email protected]>

Add the remaining changes at meson for it to build Xe documentation.

---
 docs/meson.build           |  1 +
 docs/testplan/conf.py      | 32 ++++++++++++++++++++++++++++
 docs/testplan/testplan.css |  7 +++++++
 meson_options.txt          |  8 +++++++
 scripts/gen_rst_index      | 43 ++++++++++++++++++++++++++++++++++++++
 scripts/meson.build        |  3 +++
 6 files changed, 94 insertions(+)
 create mode 100644 docs/testplan/conf.py
 create mode 100644 docs/testplan/testplan.css
 create mode 100755 scripts/gen_rst_index
docs/meson.build +1 -0
index ead14c4015d9..01edf64f04a8 100644
@@ -1 +1,2 @@
 subdir('reference')
+subdir('testplan')
docs/testplan/conf.py new file +32 -0
new file mode 100644
index 000000000000..38fcf13aa979
@@ -0,0 +1,32 @@
+# -*- coding: utf-8 -*-
+
+import sys
+import os
+
+extensions = []
+
+source_suffix = '.rst'
+master_doc = 'index'
+
+project = 'IGT Test Tools'
+copyright = 'Intel'
+author = 'IGT developers'
+language = 'en'
+
+exclude_patterns = []
+todo_include_todos = False
+
+html_theme = "nature"
+
+html_css_files = []
+html_static_path = ['.']
+html_copy_source = False
+
+html_use_smartypants = False
+html_sidebars = { '**': ['searchbox.html', 'localtoc.html']}
+htmlhelp_basename = 'IGT'
+
+html_theme_options = {
+    "body_max_width": "1520px",
+    "sidebarwidth": "400px",
+}
docs/testplan/testplan.css new file +7 -0
new file mode 100644
index 000000000000..8aa7b7105c19
@@ -0,0 +1,7 @@
+@import url(html4css1.css);
+
+.literal {
+	background: lightgrey;
+        color: darkblue;
+        font-size: 14px;
+}
meson_options.txt +8 -0
index d978813b4feb..d4e373d6cfc4 100644
@@ -20,6 +20,14 @@ option('man',
        type : 'feature',
        description : 'Build man pages')
 
+option('testplan',
+       type : 'feature',
+       description : 'Build testplan documentation pages in ReST and html')
+
+option('sphinx',
+       type : 'feature',
+       description : 'Build testplan documentation using Sphinx')
+
 option('docs',
        type : 'feature',
        description : 'Build documentation')
scripts/gen_rst_index new file +43 -0

43 lines not on this page · raw message

scripts/meson.build +3 -0
index 342972e66078..ce12aa02e946 100644
@@ -11,3 +11,6 @@ if build_tests
 		install_data(prog, install_dir : bindir, install_mode : 'r-xr-xr-x')
 	endforeach
 endif
+
+igt_doc_script = find_program('igt_doc.py')
+gen_rst_index = find_program('gen_rst_index')
Signature · 1 line
2.39.2