xref: /freebsd/crypto/krb5/doc/conf.py (revision 7f2fe78b9dd5f51c821d771b63d2e096f6fd49e9)
1# -*- coding: utf-8 -*-
2#
3# MIT Kerberos documentation build configuration file, created by
4# sphinx-quickstart on Wed Oct 13 09:14:03 2010.
5#
6# This file is execfile()d with the current directory set to its containing dir.
7#
8# Note that not all possible configuration values are present in this
9# autogenerated file.
10#
11# All configuration values have a default; values that are commented out
12# serve to show the default.
13
14import sys, os
15
16# If extensions (or modules to document with autodoc) are in another directory,
17# add these directories to sys.path here. If the directory is relative to the
18# documentation root, use os.path.abspath to make it absolute, like shown here.
19#sys.path.insert(0, os.path.abspath('.'))
20
21# -- General configuration -----------------------------------------------------
22
23# If your documentation needs a minimal Sphinx version, state it here.
24#needs_sphinx = '1.0'
25
26# Add any Sphinx extension module names here, as strings. They can be extensions
27# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
28#extensions = ['sphinx.ext.autodoc', 'sphinxcontrib.doxylink']
29extensions = ['sphinx.ext.autodoc']
30
31# Add any paths that contain templates here, relative to this directory.
32templates_path = ['_templates']
33
34# The suffix of source filenames.
35source_suffix = '.rst'
36
37# The encoding of source files.
38#source_encoding = 'utf-8-sig'
39
40# The master toctree document.
41if 'notice' in tags:
42    master_doc = 'notice'
43else:
44    master_doc = 'index'
45
46# General information about the project.
47project = u'MIT Kerberos'
48copyright = u'1985-2024, MIT'
49
50# The version info for the project you're documenting, acts as replacement for
51# |version| and |release|, also used in various other places throughout the
52# built documents.
53exec(open("version.py").read())
54# The short X.Y version.
55r_list = [r_major, r_minor]
56if r_patch:
57    r_list += [r_patch]
58version = '.'.join(map(str, r_list))
59# The full version, including alpha/beta/rc tags.
60release = version
61if r_tail:
62    release += '-' + r_tail
63
64# The language for content autogenerated by Sphinx. Refer to documentation
65# for a list of supported languages.
66#language = None
67
68# There are two options for replacing |today|: either, you set today to some
69# non-false value, then it is used:
70today = ' '
71# Else, today_fmt is used as the format for a strftime call.
72#today_fmt = '%B %d, %Y'
73
74# List of patterns, relative to source directory, that match files and
75# directories to ignore when looking for source files.
76exclude_patterns = []
77
78# The reST default role (used for this markup: `text`) to use for all documents.
79#default_role = None
80
81# If true, '()' will be appended to :func: etc. cross-reference text.
82#add_function_parentheses = True
83
84# If true, the current module name will be prepended to all description
85# unit titles (such as .. function::).
86#add_module_names = True
87
88# If true, sectionauthor and moduleauthor directives will be shown in the
89# output. They are ignored by default.
90#show_authors = False
91
92# The name of the Pygments (syntax highlighting) style to use.
93pygments_style = 'sphinx'
94
95# A list of ignored prefixes for module index sorting.
96#modindex_common_prefix = []
97
98
99# -- Options for HTML output ---------------------------------------------------
100
101# When we can rely on Sphinx 1.8 (released Sep 2018) we can just set:
102#   html_css_files = ['kerb.css']
103# But in the meantime, we add this file using either a way that works
104# after 1.8 or a way that works before 4.0.
105def setup(app):
106    if callable(getattr(app, 'add_css_file', None)):
107        app.add_css_file('kerb.css')
108    else:
109        app.add_stylesheet('kerb.css')
110
111# The theme to use for HTML and HTML Help pages.  See the documentation for
112# a list of builtin themes.
113# html_theme = 'default'
114html_theme = 'agogo'
115
116# Theme options are theme-specific and customize the look and feel of a theme
117# further.  For a list of options available for each theme, see the
118# documentation.
119html_theme_options = { "linkcolor": "#881f0d", "footerbg":  "#5d1509",
120                       "bgcolor": "#5d1509", "documentwidth": "80%",
121                       "pagewidth": "auto", "sidebarwidth": "20%" }
122
123# Add any paths that contain custom themes here, relative to this directory.
124#html_theme_path = []
125
126# The name for this set of Sphinx documents.  If None, it defaults to
127# "<project> v<release> documentation".
128html_title = "MIT Kerberos Documentation"
129
130# A shorter title for the navigation bar.  Default is the same as html_title.
131#html_short_title = None
132
133# The name of an image file (relative to this directory) to place at the top
134# of the sidebar.
135if os.environ.get('HTML_LOGO'):
136    html_logo = os.environ['HTML_LOGO']
137
138# The name of an image file (within the static path) to use as favicon of the
139# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
140# pixels large.
141#html_favicon = None
142
143# Add any paths that contain custom static files (such as style sheets) here,
144# relative to this directory. They are copied after the builtin static files,
145# so a file named "default.css" will overwrite the builtin "default.css".
146html_static_path = ['_static']
147
148# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
149# using the given strftime format.
150#html_last_updated_fmt = '%b %d, %Y'
151
152# Custom sidebar templates, maps document names to template names.
153#html_sidebars = {}
154
155# Additional templates that should be rendered to pages, maps page names to
156# template names.
157#html_additional_pages = {}
158
159# If false, no module index is generated.
160#html_domain_indices = True
161
162# If false, no index is generated.
163#html_use_index = True
164
165# If true, the index is split into individual pages for each letter.
166html_split_index = True
167
168# If true, links to the reST sources are added to the pages.
169html_show_sourcelink = False
170
171# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
172#html_show_sphinx = True
173
174# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
175#html_show_copyright = True
176
177# If true, an OpenSearch description file will be output, and all pages will
178# contain a <link> tag referring to it.  The value of this option must be the
179# base URL from which the finished HTML is served.
180#html_use_opensearch = ''
181
182# This is the file name suffix for HTML files (e.g., ".xhtml").
183#html_file_suffix = None
184
185# Output file base name for HTML help builder.
186htmlhelp_basename = 'MIT Kerberos'
187
188pointsize = '10pt'
189
190# -- Options for LaTeX output --------------------------------------------------
191
192# The paper size ('letter' or 'a4').
193#latex_paper_size = 'letter'
194
195# The font size ('10pt', '11pt' or '12pt').
196#latex_font_size = '10pt'
197
198# Grouping the document tree into LaTeX files. List of tuples
199# (source start file, target name, title, author, documentclass [howto/manual]).
200latex_documents = [
201  ('admin/index', 'admin.tex', u"Kerberos Administration Guide", u'MIT',
202   'manual'),
203  ('appdev/index', 'appdev.tex', u"Kerberos Application Developer Guide",
204   u'MIT', 'manual'),
205  ('basic/index', 'basic.tex', u"Kerberos Concepts", u'MIT', 'manual'),
206  ('build/index', 'build.tex', u"Building MIT Kerberos", u'MIT', 'manual'),
207  ('plugindev/index', 'plugindev.tex', u"Kerberos Plugin Module Developer Guide",
208   u'MIT', 'manual'),
209  ('user/index', 'user.tex', u"Kerberos User Guide", u'MIT', 'manual')
210]
211
212# The name of an image file (relative to this directory) to place at the top of
213# the title page.
214#latex_logo = None
215
216# For "manual" documents, if this is true, then toplevel headings are parts,
217# not chapters.
218#latex_use_parts = False
219
220# If true, show page references after internal links.
221#latex_show_pagerefs = False
222
223# If true, show URL addresses after external links.
224#latex_show_urls = False
225
226# Additional stuff for the LaTeX preamble.
227#latex_preamble = ''
228
229# Documents to append as an appendix to all manuals.
230#latex_appendices = []
231
232# If false, no module index is generated.
233#latex_domain_indices = True
234
235if 'mansubs' in tags:
236    bindir = '``@BINDIR@``'
237    sbindir = '``@SBINDIR@``'
238    libdir = '``@LIBDIR@``'
239    localstatedir = '``@LOCALSTATEDIR@``'
240    runstatedir = '``@RUNSTATEDIR@``'
241    sysconfdir = '``@SYSCONFDIR@``'
242    ccache = '``@CCNAME@``'
243    keytab = '``@KTNAME@``'
244    ckeytab = '``@CKTNAME@``'
245    pkcs11_modname = '``@PKCS11MOD@``'
246elif 'pathsubs' in tags:
247    # Read configured paths from a file produced by the build system.
248    exec(open("paths.py").read())
249else:
250    bindir = ':ref:`BINDIR <paths>`'
251    sbindir = ':ref:`SBINDIR <paths>`'
252    libdir = ':ref:`LIBDIR <paths>`'
253    localstatedir = ':ref:`LOCALSTATEDIR <paths>`'
254    runstatedir = ':ref:`RUNSTATEDIR <paths>`'
255    sysconfdir = ':ref:`SYSCONFDIR <paths>`'
256    ccache = ':ref:`DEFCCNAME <paths>`'
257    keytab = ':ref:`DEFKTNAME <paths>`'
258    ckeytab = ':ref:`DEFCKTNAME <paths>`'
259    pkcs11_modname = ':ref:`PKCS11_MODNAME <paths>`'
260
261rst_epilog = '\n'
262
263if 'notice' in tags:
264    exclude_patterns = [ 'admin', 'appdev', 'basic', 'build',
265                         'plugindev', 'user' ]
266    exclude_patterns += [ 'about.rst', 'build_this.rst', 'copyright.rst',
267                          'index.rst', 'mitK5*.rst', 'resources.rst' ]
268    rst_epilog += '.. |copy| replace:: \(C\)'
269else:
270    exclude_patterns += [ 'notice.rst' ]
271    rst_epilog += '.. |bindir| replace:: %s\n' % bindir
272    rst_epilog += '.. |sbindir| replace:: %s\n' % sbindir
273    rst_epilog += '.. |libdir| replace:: %s\n' % libdir
274    rst_epilog += '.. |kdcdir| replace:: %s\\ ``/krb5kdc``\n' % localstatedir
275    rst_epilog += '.. |kdcrundir| replace:: %s\\ ``/krb5kdc``\n' % runstatedir
276    rst_epilog += '.. |sysconfdir| replace:: %s\n' % sysconfdir
277    rst_epilog += '.. |ccache| replace:: %s\n' % ccache
278    rst_epilog += '.. |keytab| replace:: %s\n' % keytab
279    rst_epilog += '.. |ckeytab| replace:: %s\n' % ckeytab
280    rst_epilog += '.. |pkcs11_modname| replace:: %s\n' % pkcs11_modname
281    rst_epilog += '''
282.. |krb5conf| replace:: ``/etc/krb5.conf``
283.. |defkeysalts| replace:: ``aes256-cts-hmac-sha1-96:normal aes128-cts-hmac-sha1-96:normal``
284.. |defetypes| replace:: ``aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 aes256-cts-hmac-sha384-192 aes128-cts-hmac-sha256-128 des3-cbc-sha1 arcfour-hmac-md5 camellia256-cts-cmac camellia128-cts-cmac``
285.. |defmkey| replace:: ``aes256-cts-hmac-sha1-96``
286.. |copy| unicode:: U+000A9
287'''
288
289# -- Options for manual page output --------------------------------------------
290
291# One entry per manual page. List of tuples
292# (source start file, name, description, authors, manual section).
293man_pages = [
294    ('user/user_commands/kinit', 'kinit', u'obtain and cache Kerberos ticket-granting ticket', [u'MIT'], 1),
295    ('user/user_commands/klist', 'klist', u'list cached Kerberos tickets', [u'MIT'], 1),
296    ('user/user_commands/kdestroy', 'kdestroy', u'destroy Kerberos tickets', [u'MIT'], 1),
297    ('user/user_commands/kswitch', 'kswitch', u'switch primary ticket cache', [u'MIT'], 1),
298    ('user/user_commands/kpasswd', 'kpasswd', u'change a user\'s Kerberos password', [u'MIT'], 1),
299    ('user/user_commands/kvno', 'kvno', u'print key version numbers of Kerberos principals', [u'MIT'], 1),
300    ('user/user_commands/ksu', 'ksu', u'Kerberized super-user', [u'MIT'], 1),
301    ('user/user_commands/krb5-config', 'krb5-config', u'tool for linking against MIT Kerberos libraries', [u'MIT'], 1),
302    ('user/user_config/k5login', 'k5login', u'Kerberos V5 acl file for host access', [u'MIT'], 5),
303    ('user/user_config/k5identity', 'k5identity', u'Kerberos V5 client principal selection rules', [u'MIT'], 5),
304    ('user/user_config/kerberos', 'kerberos', u'Overview of using Kerberos', [u'MIT'], 7),
305    ('admin/admin_commands/krb5kdc', 'krb5kdc', u'Kerberos V5 KDC', [u'MIT'], 8),
306    ('admin/admin_commands/kadmin_local', 'kadmin', u'Kerberos V5 database administration program', [u'MIT'], 1),
307    ('admin/admin_commands/kprop', 'kprop', u'propagate a Kerberos V5 principal database to a replica server', [u'MIT'], 8),
308    ('admin/admin_commands/kproplog', 'kproplog', u'display the contents of the Kerberos principal update log', [u'MIT'], 8),
309    ('admin/admin_commands/kpropd', 'kpropd', u'Kerberos V5 replica KDC update server', [u'MIT'], 8),
310    ('admin/admin_commands/kdb5_util', 'kdb5_util', u'Kerberos database maintenance utility', [u'MIT'], 8),
311    ('admin/admin_commands/ktutil', 'ktutil', u'Kerberos keytab file maintenance utility', [u'MIT'], 1),
312    ('admin/admin_commands/k5srvutil', 'k5srvutil', u'host key table (keytab) manipulation utility', [u'MIT'], 1),
313    ('admin/admin_commands/kadmind', 'kadmind', u'KADM5 administration server', [u'MIT'], 8),
314    ('admin/admin_commands/kdb5_ldap_util', 'kdb5_ldap_util', u'Kerberos configuration utility', [u'MIT'], 8),
315    ('admin/conf_files/krb5_conf', 'krb5.conf', u'Kerberos configuration file', [u'MIT'], 5),
316    ('admin/conf_files/kdc_conf', 'kdc.conf', u'Kerberos V5 KDC configuration file', [u'MIT'], 5),
317    ('admin/conf_files/kadm5_acl', 'kadm5.acl', u'Kerberos ACL file', [u'MIT'], 5),
318    ('user/user_commands/sclient', 'sclient', u'sample Kerberos version 5 client', [u'MIT'], 1),
319    ('admin/admin_commands/sserver', 'sserver', u'sample Kerberos version 5 server', [u'MIT'], 8),
320]
321