forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document pants.ini configuration options.
Mostly a repost of https://rbcommons.com/s/twitter/r/67/ post move to pantsbuild. Add a simple system to register pants.ini options so we can generate a configuration reference page on our website. Lots of required, undocumented keys in pants.ini has been identified as an issue for new users and this change lays the groundwork. Once the pattern has been defined I'll move all options over to this style in a few future reviews. Similar to command-line flags, pants developers explicitly define options rather than fetching keys from the config directly. We register these keys enabling the generation of a docs site. A few examples are provided here, and we'll do the rest after reaching consensus on the format. The goal is generating documentation for our users, so we explicitly avoid going overboard and rewriting the whole config system (e.g.: unifying pants.ini & command-line flags which is out of scope for this change). Eliminate two options that are not obviosuly desiarable to allow users to tweak. In 67 we agreed to remove these rather than document as tuneable: tasks.build_invalidator, reporting.reports_dir Reviewed at https://rbcommons.com/s/twitter/r/183/
- Loading branch information
1 parent
2b2a83b
commit 3616cf0
Showing
11 changed files
with
180 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ targets.rst | |
tasks.rst | ||
build_dictionary.rst | ||
goals_reference.rst | ||
pants_ini_reference.rst |
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
27 changes: 27 additions & 0 deletions
27
src/python/pants/tasks/templates/builddictionary/pants_ini_reference.mustache
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
******************* | ||
pants.ini Reference | ||
******************* | ||
|
||
All repos using pants have a ``pants.ini`` file at the root, | ||
in `configparser <http://docs.python.org/2/library/configparser.html>`_ format. | ||
Users can override the default config with a ``~/.pants.new.rc`` file. | ||
|
||
.. NOTE:: As of April 2014, this configuration reference is incomplete while migrating | ||
options to the format used to generate this reference. | ||
|
||
|
||
The following configuration options are provided: | ||
|
||
{{#sections}} | ||
|
||
.. _configref_section_{{section}} | ||
|
||
{{section}} section | ||
----------------------------------------------------------------------------- | ||
|
||
{{#options}} | ||
``{{option}}`` - {{help}} (default: ``{{default}}``) | ||
|
||
{{/options}} | ||
|
||
{{/sections}} |