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.
258 self.sphinxbuild = os.environ.get("SPHINXBUILD", "sphinx-build")
264 # Get directory locations for LaTeX build toolchain
290 Executes sphinx-build using current python3 command.
294 jobs, as we don't want sphinx-build to run in parallel with other
323 # We can't simply call python3 sphinx-build, as OpenSUSE
325 # between different versions of sphinx-build. So, only call it
375 """Build PDF files in parallel if possible"""
384 # non-zero even when build succeeds. So, let's do the best next thing:
385 # Ignore build errors. At the end, check if all PDF files were built,
448 a new build is needed to create the PDF output from the latex
460 # usage during xelatex build by passing the location of a config
489 # from POSIX jobserver. So, this covers the case where build comes
528 # In verbose mode, print a summary with the build results per file.
530 # On both cases, return code 1 indicates build failures,
557 sys.exit(f"Error: Can't build {n_failures} PDF file(s): {failures}")
642 def build(self, target, sphinxdirs=None,
646 Build documentation using Sphinx. This is the core function of this
647 module. It prepares all arguments required by sphinx-build.
654 # Cleandocs doesn't require sphinx-build
664 # Other targets require sphinx-build, so check if it exists
678 # Fill in base arguments for Sphinx build
710 # The sphinx-build tool has a bug: internally, it tries to set
720 # Step 1: Build each directory in separate.
761 sys.exit(f"Build failed: return code: {result}")
764 sys.exit(f"Build failed: {repr(e)}")
774 # sphinx-build finishes
825 - SPHINXBUILD: Documentation build tool (default: "sphinx-build").
848 help="Documentation target to build")
850 help="Specific directories to build")
865 help="place build in verbose mode")
868 help="Sets number of jobs to use with sphinx-build(default: auto)")
873 parser.add_argument('-s', '--skip-sphinx-build', action='store_true',
874 help="Skip sphinx-build step")
889 builder.build(args.target, sphinxdirs=args.sphinxdirs,