-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement cli and config switches for breadcrumbs and indexes
* Add command line and config switch to toggle breadcrumbs and indexes in antsibull-docs collection, current, devel, and stable subommands * This integrates changes from felixfontein in: #288 * Create another mixin arg parser for options which toggle whole-site related content (breadcrumbs, indexes). whole-site features control creation of docsite-like sites. non-whole-site features deal with individual collections. * Comment each of the cli parsers created by stable.py and how they are used. * Config: * Alphabetize the fields * Add breadcrumbs and indexes to the config file * Add the new switches to the sample config file * Context: * Alphabetize the field names in _FIELDS_IN_APP_CTX and _FIELDS_IN_LIB_CTX * Add breadcrumbs and index to the context. * Update documentation on how to specify a cli flag in argparse so that it works with the context implementation. * Remove hardcoded ADD_TOCTREES setting in favor of the breadcrumbs flag. * Rename add_toctrees and tocrees parameters to breadcrumbs throughout the codebase. * Unrelated: correct rst `.. warning::` roles from `.. warn::`
- Loading branch information
Showing
14 changed files
with
202 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.