summaryrefslogtreecommitdiff
path: root/make-directive-index.py
Commit message (Collapse)AuthorAgeFilesLines
* man: add CONSTANTS section to systemd.directives(7)Zbigniew Jędrzejewski-Szmek2013-06-261-0/+18
|
* man: fix display of keys which appear in two sections in directive indexZbigniew Jędrzejewski-Szmek2013-05-301-9/+11
| | | | | | | | | | | | | | | When an index key appeared in multiple sections (e.g. CPUAffinity= was present in both "SYSTEM MANAGER DIRECTIVES" and "UNIT DIRECTIVES"), when lxml was used, the key would be not be displayed in all but one of those sections, and only an empty <term/> element would be present. This happens because lxml allows only one parent for each node, and when the same formatted element was used in multiple places, it was actually moved between them. Fix this by making a copy of the element. The bug was present since lxml support was introduced. Also fix some indentation issues.
* man: add various filenames to the indexZbigniew Jędrzejewski-Szmek2013-05-031-2/+11
| | | | | | | | | | Everything which is an absolute filename marked with <filename></filename> lands in the index, unless noindex= attribute is present. Should make it easier for people to find stuff when they are looking at a file on disk. Various formatting errors in manpages are fixed, kernel-install(1) is restored to formatting sanity.
* build-sys,man: use XML entities to substite stringsZbigniew Jędrzejewski-Szmek2013-03-291-8/+4
| | | | | | | | | | | | | | | | | | | | | This makes it easier to add substitutions to man pages, avoiding the separate transformation step. mkdir -p's are removed from the rule, because xsltproc will will create directories on it's own. All in all, two or three forks per man page are avoided, which should make things marginally faster. Unfortunately python parsers must too be tweaked to handle entities. This isn't particularly easy: with lxml a custom Resolver can be used, but the stdlib etree doesn't support external entities *at all*. So when running without lxml, the entities are just removed. Right now it doesn't matter, since the entities are not indexed anyway. But I intend to add indexing of filenames in the near future, and then the index generated without lxml might be missing a few lines. Oh well.
* man: use lxml for faster generation and pretty printingZbigniew Jędrzejewski-Szmek2013-03-091-2/+7
|
* man: drop rhs parts in snippets in directive indexZbigniew Jędrzejewski-Szmek2013-02-271-1/+4
| | | | | | - --exit-if-exists=file + --exit-if-exists= etc.
* man: add filenames to the indexZbigniew Jędrzejewski-Szmek2013-02-131-1/+31
| | | | | Limiting the addition to filenames from <refsynopsis> seems to give a good enough S/N ratio.
* build-sys: create Makefile-man.am automaticallyZbigniew Jędrzejewski-Szmek2013-02-061-1/+1
| | | | | | | | | | | | | | | | | | | man rules were repeating the same information in too many places, which was error prone. Those rules can be easily generated from .xml files. For efficiency and because python is not a required dependency, Makefile-man.am is only regenerated when requested with make update-man-list If no metadata in man/*.xml changed, this file should not change. So only when a new man page or a new alias is added, this file should show up in 'git diff'. The change should then be committed. If the support for building from git without python was dropped, we could drop Makefile-man.am from version control. This would also increase the partial build time (since more stuff would be rebuild whenever sources in man/*.xml would be modified), so it would probably wouldn't be worth it.
* make-directive-index: use original XML as index entriesZbigniew Jędrzejewski-Szmek2013-01-261-8/+15
| | | | | udev(7) fields are now display in whole, which looks much better.
* man: extend systemd.directives(7) to all manual pagesZbigniew Jędrzejewski-Szmek2013-01-261-24/+68
| | | | | | | | | | New sections are added: PAM options, crypttab options, commandline options, miscellaneous. The last category will be used for all untagged <varname> elements. Commandline options sections is meant to be a developer tool: when adding an option it is sometimes useful to be able to check if similarly named options exist elsewhere.
* man: add links to directive index to see-alsosZbigniew Jędrzejewski-Szmek2013-01-151-1/+1
| | | | | systemd.directives(5) is renamed to systemd.directives(7). Section 7 is "Miscellaneous".
* make-directive-index: link to systemd optionsZbigniew Jędrzejewski-Szmek2013-01-151-0/+17
|
* make-directive-index: count how many directives and pages are shownZbigniew Jędrzejewski-Szmek2013-01-151-0/+25
|
* make-directive-index: remove duplicated list of sectionsZbigniew Jędrzejewski-Szmek2013-01-151-14/+9
|
* man: add bootchart.conf to directives indexZbigniew Jędrzejewski-Szmek2013-01-151-0/+10
|
* lawyerese: add header to make-directive-indexZbigniew Jędrzejewski-Szmek2012-11-141-1/+19
|
* directive-index: journal directivesZbigniew Jędrzejewski-Szmek2012-09-171-0/+10
|
* directive-index: system manager directivesZbigniew Jędrzejewski-Szmek2012-09-171-0/+10
|
* directive-index: add UDEV fieldsZbigniew Jędrzejewski-Szmek2012-09-171-0/+10
|
* man: generate an index of directivesZbigniew Jędrzejewski-Szmek2012-09-171-0/+101
Systemd has a large (and growing) number of manpages. Sometimes it's not immediately obvious, where to look for a directive. Especially, when something is described in more than one place. Making sense of all the settings should be easier with an index.