Lines Matching full:build
36 Sphinx build wrapper that handles Kernel-specific business rules:
38 - it gets the Kernel build environment vars;
96 Handles a sphinx-build target, adding needed arguments to build
150 Get the number of jobs to be used for docs build passed via command
165 # by sphinx-build time. Among them, it may contain sphinx verbosity
174 # Other sphinx-build arguments go as-is, so place them
180 # Build a list of sphinx args, honoring verbosity here if specified
227 # versions of Python and sphinx-build.
263 self.sphinxbuild = os.environ.get("SPHINXBUILD", "sphinx-build")
269 # Get directory locations for LaTeX build toolchain
295 Executes sphinx-build using current python3 command.
299 jobs, as we don't want sphinx-build to run in parallel with other
328 # We can't simply call python3 sphinx-build, as OpenSUSE
330 # between different versions of sphinx-build. So, only call it
380 """Build PDF files in parallel if possible"""
389 # non-zero even when build succeeds. So, let's do the best next thing:
390 # Ignore build errors. At the end, check if all PDF files were built,
453 a new build is needed to create the PDF output from the latex
465 # usage during xelatex build by passing the location of a config
494 # from POSIX jobserver. So, this covers the case where build comes
533 # In verbose mode, print a summary with the build results per file.
535 # On both cases, return code 1 indicates build failures,
562 sys.exit(f"Error: Can't build {n_failures} PDF file(s): {failures}")
649 def build(self, target, sphinxdirs=None,
653 Build documentation using Sphinx. This is the core function of this
654 module. It prepares all arguments required by sphinx-build.
661 # Cleandocs doesn't require sphinx-build
671 # Other targets require sphinx-build, so check if it exists
685 # Fill in base arguments for Sphinx build
717 # The sphinx-build tool has a bug: internally, it tries to set
727 # Step 1: Build each directory in separate.
768 sys.exit(f"Build failed: return code: {result}")
771 sys.exit(f"Build failed: {repr(e)}")
781 # sphinx-build finishes
832 - SPHINXBUILD: Documentation build tool (default: "sphinx-build").
855 help="Documentation target to build")
857 help="Specific directories to build")
872 help="place build in verbose mode")
875 help="Sets number of jobs to use with sphinx-build(default: auto)")
880 parser.add_argument('-s', '--skip-sphinx-build', action='store_true',
881 help="Skip sphinx-build step")
896 builder.build(args.target, sphinxdirs=args.sphinxdirs,