diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 39beeaf3..428d0318 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -78,10 +78,10 @@ workflow: variables: BUILD_OS: debian FDO_DISTRIBUTION_VERSION: trixie - FDO_DISTRIBUTION_PACKAGES: 'build-essential pkg-config libexpat1-dev libffi-dev libxml2-dev doxygen graphviz xmlto xsltproc docbook-xsl meson ninja-build' + FDO_DISTRIBUTION_PACKAGES: 'build-essential pkg-config libexpat1-dev libffi-dev libxml2-dev doxygen graphviz xmlto xsltproc docbook-xsl mdbook meson ninja-build' # bump this tag every time you change something which requires rebuilding the # base image - FDO_DISTRIBUTION_TAG: "2025-12-27.0" + FDO_DISTRIBUTION_TAG: "2026-01-31.0" .debian-x86_64: extends: diff --git a/doc/book/meson.build b/doc/book/meson.build new file mode 100644 index 00000000..139c77ed --- /dev/null +++ b/doc/book/meson.build @@ -0,0 +1,67 @@ +srcs = files( + 'src/Protocol.md', + 'src/Foreword.md', + 'src/Xwayland.md', + 'src/SUMMARY.md', + 'src/Content_Updates.md', + 'src/Color.md', + 'src/Message_XML.md', + 'src/Architecture.md', + 'src/Introduction.md', + 'src/images/content-updates/sync-to-desync-subsurf-3.png', + 'src/images/content-updates/sync-subsurf-case1.drawio', + 'src/images/content-updates/sync-subsurf-case2-2.png', + 'src/images/content-updates/simple-synchronized-state-4.png', + 'src/images/content-updates/sync-subsurf-case2-3.png', + 'src/images/content-updates/simple-desynchronized.drawio', + 'src/images/content-updates/sync-to-desync-transition-2.png', + 'src/images/content-updates/simple-desynchronized-state-4.png', + 'src/images/content-updates/simple-synchronized-state-3.png', + 'src/images/content-updates/simple-synchronized.drawio', + 'src/images/content-updates/simple-synchronized-state-1.png', + 'src/images/content-updates/sync-subsurf-case1-4.png', + 'src/images/content-updates/sync-to-desync-subsurf-1.png', + 'src/images/content-updates/simple-desynchronized-state-1.png', + 'src/images/content-updates/simple-desynchronized-state-3.png', + 'src/images/content-updates/sync-subsurf-case2.drawio', + 'src/images/content-updates/simple-desynchronized-state-6.png', + 'src/images/content-updates/sync-subsurf-case1-2.png', + 'src/images/content-updates/sync-subsurf-case1-1.png', + 'src/images/content-updates/simple-synchronized-state-5.png', + 'src/images/content-updates/simple-synchronized-state-2.png', + 'src/images/content-updates/simple-desynchronized-state-2.png', + 'src/images/content-updates/content-update-legend.png', + 'src/images/content-updates/sync-to-desync-subsurf.drawio', + 'src/images/content-updates/sync-to-desync-subsurf-2.png', + 'src/images/content-updates/sync-to-desync-transition-3.png', + 'src/images/content-updates/sync-subsurf-case2-1.png', + 'src/images/content-updates/content-updates.drawio', + 'src/images/content-updates/sync-subsurf-case1-5.png', + 'src/images/content-updates/sync-subsurf-case1-3.png', + 'src/images/content-updates/sync-to-desync-transition.drawio', + 'src/images/content-updates/simple-desynchronized-state-5.png', + 'src/images/content-updates/sync-to-desync-transition-1.png', + 'src/images/icon.svg', + 'src/images/x-architecture.gv', + 'src/images/x-architecture.png', + 'src/images/wayland.png', + 'src/images/wayland-architecture.gv', + 'src/images/wayland-architecture.png', + 'src/images/xwayland-architecture.png', + 'src/Compositors.md', +) + +custom_target( + 'Wayland-book', + command: [ + mdbook, + 'build', + '-d', meson.current_build_dir() / 'book', + meson.current_source_dir(), + ], + depend_files: srcs, + output: 'book', + build_by_default: true, + install: true, + install_dir: publican_install_prefix, +) diff --git a/doc/meson.build b/doc/meson.build index 44fda2ab..b9f6fcba 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -6,6 +6,7 @@ dot = find_program('dot') doxygen = find_program('doxygen') xsltproc = find_program('xsltproc') xmlto = find_program('xmlto') +mdbook = find_program('mdbook') cmd = run_command(doxygen, '--version', check: true) message('doxygen: ' + cmd.stdout().strip()) @@ -39,3 +40,4 @@ publican_html_dir = 'html' subdir('doxygen') subdir('publican') +subdir('book')