1import os 2 3# Configuration file for the Sphinx documentation builder. 4# 5# This file only contains a selection of the most common options. For a full 6# list see the documentation: 7# https://www.sphinx-doc.org/en/master/usage/configuration.html 8 9# -- Path setup -------------------------------------------------------------- 10 11# If extensions (or modules to document with autodoc) are in another directory, 12# add these directories to sys.path here. If the directory is relative to the 13# documentation root, use os.path.abspath to make it absolute, like shown here. 14# 15# import os 16# import sys 17# sys.path.insert(0, os.path.abspath('.')) 18 19# -- Project information ----------------------------------------------------- 20 21# We want the current project version rather than today's date in the 22# documentation where a date would normally appear; e.g., the last line 23# of a man page. 24ksh_version = os.getenv('KSH_VERSION', default='1111.22.33') 25today = ksh_version 26 27project = 'Korn Shell v' + ksh_version 28copyright = '2019, David J. Korn, et.al.' 29author = 'David J. Korn, et.al.' 30 31# -- General configuration --------------------------------------------------- 32 33# Add any Sphinx extension module names here, as strings. They can be 34# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom 35# ones. 36extensions = [ 37] 38 39# Add any paths that contain templates here, relative to this directory. 40templates_path = ['_templates'] 41 42# List of patterns, relative to source directory, that match files and 43# directories to ignore when looking for source files. 44# This pattern also affects html_static_path and html_extra_path. 45exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] 46 47# -- Options for HTML output ------------------------------------------------- 48 49# The theme to use for HTML and HTML Help pages. See the documentation for 50# a list of builtin themes. 51# 52# html_theme = 'classic' 53html_theme = 'alabaster' 54 55# Add any paths that contain custom static files (such as style sheets) here, 56# relative to this directory. They are copied after the builtin static files, 57# so a file named "default.css" will overwrite the builtin "default.css". 58html_static_path = ['_static'] 59 60# Control which documents get converted to man pages by `make man`. 61man_pages = [ 62 # External commands. 63 ('shcomp', 'shcomp', 'compile a shell script', 64 'David J. Korn, et. al.', '1'), 65 66 # Builtin commands. 67 ('alias', 'alias', 'define or display aliases', 68 'David J. Korn, et. al.', '1'), 69 ('bg', 'bg', 'resume jobs in the background', 70 'David J. Korn, et. al.', '1'), 71 ('break', 'break', 'break out of loop', 72 'David J. Korn, et. al.', '1'), 73 ('builtin', 'builtin', 'add, delete, or display shell built-ins', 74 'David J. Korn, et. al.', '1'), 75 ('cd', 'cd', 'change working directory', 76 'David J. Korn, et. al.', '1'), 77 ('command', 'command', 'execute a simple command', 78 'David J. Korn, et. al.', '1'), 79 ('compgen', 'compgen', 'command completion', 80 'David J. Korn, et. al.', '1'), 81 ('complete', 'complete', 'command completion', 82 'David J. Korn, et. al.', '1'), 83 ('continue', 'continue', 'continue execution at top of the loop', 84 'David J. Korn, et. al.', '1'), 85 ('disown', 'disown', 'disassociate a job from the current shell', 86 'David J. Korn, et. al.', '1'), 87 ('echo', 'echo', 'output a line of text', 88 'David J. Korn, et. al.', '1'), 89 ('enum', 'enum', 'create an enumeration type', 90 'David J. Korn, et. al.', '1'), 91 ('eval', 'eval', 'create a shell command and process it', 92 'David J. Korn, et. al.', '1'), 93 ('exec', 'exec', 'execute command, open/close/duplicate file descriptors', 94 'David J. Korn, et. al.', '1'), 95 ('exit', 'exit', 'exit the current shell', 96 'David J. Korn, et. al.', '1'), 97 ('export', 'export', 'set export attribute on variables', 98 'David J. Korn, et. al.', '1'), 99 ('fg', 'fg', 'move jobs to the foreground', 100 'David J. Korn, et. al.', '1'), 101 ('hist', 'hist', 'move jobs to the foreground', 102 'David J. Korn, et. al.', '1'), 103 ('jobs', 'jobs', 'display status of jobs', 104 'David J. Korn, et. al.', '1'), 105 ('kill', 'kill', 'terminate or signal process', 106 'David J. Korn, et. al.', '1'), 107 ('let', 'let', 'evaluate arithmetic expressions', 108 'David J. Korn, et. al.', '1'), 109 ('print', 'print', 'write arguments to standard output', 110 'David J. Korn, et. al.', '1'), 111 ('printf', 'printf', 'write formatted output', 112 'David J. Korn, et. al.', '1'), 113 ('pwd', 'pwd', 'write working directory name', 114 'David J. Korn, et. al.', '1'), 115 ('read', 'read', 'read a line from standard input', 116 'David J. Korn, et. al.', '1'), 117 ('readonly', 'readonly', 'set readonly attribute on variables', 118 'David J. Korn, et. al.', '1'), 119 ('return', 'return', 'return from a function or dot script', 120 'David J. Korn, et. al.', '1'), 121 ('shift', 'shift', 'shift positional parameters', 122 'David J. Korn, et. al.', '1'), 123 ('sleep', 'sleep', 'suspend execution for an interval', 124 'David J. Korn, et. al.', '1'), 125 ('source', 'source', 'execute commands in the current environment', 126 'David J. Korn, et. al.', '1'), 127 ('test', 'test', 'evaluate expression', 128 'David J. Korn, et. al.', '1'), 129 ('times', 'times', 'display CPU usage by the shell and child processes', 130 'David J. Korn, et. al.', '1'), 131 ('trap', 'trap', 'trap signals and conditions', 132 'David J. Korn, et. al.', '1'), 133 ('ulimit', 'ulimit', 'set or display resource limits', 134 'David J. Korn, et. al.', '1'), 135 ('umask', 'umask', 'get or set the file creation mask', 136 'David J. Korn, et. al.', '1'), 137 ('unalias', 'unalias', 'remove alias definitions', 138 'David J. Korn, et. al.', '1'), 139 ('unset', 'unset', 140 'unset values and attributes of variables and functions', 141 'David J. Korn, et. al.', '1'), 142 ('wait', 'wait', 'wait for process or job completion', 143 'David J. Korn, et. al.', '1'), 144 ('whence', 'whence', 'locate a command and describe its type', 145 'David J. Korn, et. al.', '1'), 146 147 # External commands available as builtins. 148 ('basename', 'basename', 'strip directory and suffix from filenames', 149 'David J. Korn, et. al.', '1'), 150 ('cat', 'cat', 'concatenate files', 151 'David J. Korn, et. al.', '1'), 152 ('chmod', 'chmod', 'change the access permissions of files', 153 'David J. Korn, et. al.', '1'), 154 ('cmp', 'cmp', 'compare two files', 155 'David J. Korn, et. al.', '1'), 156 ('cut', 'cut', 'cut out selected columns or fields of each line of a file', 157 'David J. Korn, et. al.', '1'), 158 ('dirname', 'dirname', 'return directory portion of file name', 159 'David J. Korn, et. al.', '1'), 160 ('head', 'head', 'output beginning portion of one or more files', 161 'David J. Korn, et. al.', '1'), 162 ('logname', 'logname', 'return the user\'s login name', 163 'David J. Korn, et. al.', '1'), 164 ('mkdir', 'mkdir', 'make directories', 165 'David J. Korn, et. al.', '1'), 166 ('sync', 'sync', 'schedule file/file system updates', 167 'David J. Korn, et. al.', '1'), 168 ('uname', 'uname', 'identify the current system', 169 'David J. Korn, et. al.', '1'), 170 ('wc', 'wc', 'print the number of bytes, words, and lines in files', 171 'David J. Korn, et. al.', '1'), 172] 173