summaryrefslogtreecommitdiffstats
path: root/doc/rst_source/conf.py
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2012-03-28 21:11:01 +0000
committerGreg Hudson <ghudson@mit.edu>2012-03-28 21:11:01 +0000
commitdd19c21d26e80d9e6e622353ec4cf2e073da04b0 (patch)
tree704dd6f10811b48cdd72275efa6d9d781b57d710 /doc/rst_source/conf.py
parentd604fed1d0c8700cbdbd828556413f100ecfb84d (diff)
downloadkrb5-dd19c21d26e80d9e6e622353ec4cf2e073da04b0.tar.gz
krb5-dd19c21d26e80d9e6e622353ec4cf2e073da04b0.tar.xz
krb5-dd19c21d26e80d9e6e622353ec4cf2e073da04b0.zip
Use reference substitutions for paths in docs
For the default doc build (used for the web site and release tarball), substitute path variables with links to the paths table in mitK5defaults.rst, using symbolic names for the link text. The substitution of kdcdir for man pages is slightly altered as a side-effect of this commit. Regenerate the man pages to match. The rendered man pages are unchanged. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25794 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'doc/rst_source/conf.py')
-rw-r--r--doc/rst_source/conf.py30
1 files changed, 15 insertions, 15 deletions
diff --git a/doc/rst_source/conf.py b/doc/rst_source/conf.py
index 8381fb4772..4f856f3a49 100644
--- a/doc/rst_source/conf.py
+++ b/doc/rst_source/conf.py
@@ -209,24 +209,24 @@ latex_documents = [
#latex_domain_indices = True
if 'mansubs' in tags:
- bindir = '@BINDIR@'
- sbindir = '@SBINDIR@'
- libdir = '@LIBDIR@'
- localstatedir = '@LOCALSTATEDIR@'
- sysconfdir = '@SYSCONFDIR@'
+ bindir = '``@BINDIR@``'
+ sbindir = '``@SBINDIR@``'
+ libdir = '``@LIBDIR@``'
+ localstatedir = '``@LOCALSTATEDIR@``'
+ sysconfdir = '``@SYSCONFDIR@``'
else:
- bindir = '/usr/local/bin'
- sbindir = '/usr/local/sbin'
- libdir = '/usr/local/lib'
- localstatedir = '/usr/local/var'
- sysconfdir = '/usr/local/etc'
+ bindir = ':ref:`BINDIR <paths>`'
+ sbindir = ':ref:`SBINDIR <paths>`'
+ libdir = ':ref:`LIBDIR <paths>`'
+ localstatedir = ':ref:`LOCALSTATEDIR <paths>`'
+ sysconfdir = ':ref:`SYSCONFDIR <paths>`'
rst_epilog = '\n'
-rst_epilog += '.. |bindir| replace:: ``%s``\n' % bindir
-rst_epilog += '.. |sbindir| replace:: ``%s``\n' % sbindir
-rst_epilog += '.. |libdir| replace:: ``%s``\n' % libdir
-rst_epilog += '.. |kdcdir| replace:: ``%s/krb5kdc``\n' % localstatedir
-rst_epilog += '.. |sysconfdir| replace:: ``%s``\n' % sysconfdir
+rst_epilog += '.. |bindir| replace:: %s\n' % bindir
+rst_epilog += '.. |sbindir| replace:: %s\n' % sbindir
+rst_epilog += '.. |libdir| replace:: %s\n' % libdir
+rst_epilog += '.. |kdcdir| replace:: %s\\ ``/krb5kdc``\n' % localstatedir
+rst_epilog += '.. |sysconfdir| replace:: %s\n' % sysconfdir
rst_epilog += '''
.. |keytab| replace:: ``/etc/krb5.keytab``
.. |krb5conf| replace:: ``/etc/krb5.conf``