Commit Graph

76 Commits

Author SHA1 Message Date
David\ Beitey
9ad0ddc549 Allow parent relative includes in state files
This implements the solution to #25477.  Any ``include`` directives
within state files can use multiple dot notation (influenced by Python
relative imports) to refer to a parent state.

This also implements the same functionality inside the stateconf
renderer
(http://docs.saltstack.com/en/latest/ref/renderers/all/salt.renderers.stateconf.html),
which supported relative includes, excludes, and prefixed states.  This
PR expands on existing tests for stateconf.

This also updates the documentation accordingly.
2015-07-21 16:32:38 +10:00
Arnold Bechtoldt
2ad37d0bca adding renderers to doc salt.renderers reference 2015-01-24 22:41:54 +01:00
Thomas Jackson
85864eca4a Comma cleanup 2014-12-12 11:37:59 -08:00
Thomas Jackson
7da2bbc457 fix usage of e.g (no comma) 2014-12-12 11:37:48 -08:00
Thomas Jackson
9db7f8f7e9 Whitespace cleanup 2014-12-11 07:53:19 -08:00
Thomas Jackson
3859204103 Fix typo in renderers doc, the directory name was wrong 2014-12-10 18:42:16 -08:00
Jakob Gillich
0112f70d9c remove example duplicate 2014-08-22 16:06:09 +02:00
Seth House
6517e7f378 Added generated new module docs 2014-07-24 15:56:19 -06:00
Seth House
81af51bf50 Added new module docs 2014-07-24 15:28:11 -06:00
Khris Richardson
1acd82f3f1 add sphinx spelling extension. enforce en_us 2014-07-13 13:43:33 -05:00
Erik Johnson
2849950bce Docs cleanup
Fixes double-colons by making them code-block directives, so they do not
erroneously show up as "PYTHON" blocks. Also corrects a few instances of
2nd person pronoun usage.
2014-07-13 11:02:33 -05:00
Thomas S Hatch
b8897a5b0d rename the sls renderer to the yamlex renderer 2014-05-30 09:28:20 -06:00
Thomas S Hatch
185eae31cd Merge branch 'serializers-migration' of https://github.com/johnnoone/salt into johnnoone-serializers-migration
Conflicts:
	salt/pillar/__init__.py
2014-05-30 09:16:21 -06:00
Seth House
1610bda84b Pulled Jinja docs back into the code
We were accumulating two versions of the docs since people update
docstrings as they hack but only one was getting rendered on the site.

Hopefully this is a happy middle-ground by spreading the docs around a
bit and pulling them in to a central location.
2014-04-17 14:24:15 -06:00
Seth House
14515c3c8b Added generated templates for the new additions 2014-04-17 12:20:07 -06:00
Seth House
d2f057b0fd Combed through all the module types to add recent additions to the docs 2014-04-17 12:16:26 -06:00
Xavier Barbosa
ce2cf98518 implements sls renderer 2014-04-09 06:45:10 +02:00
Thomas Güttler
7d25e086d3 "Full List of Renderes" was a sub section of "Examples" before. 2014-04-07 09:27:21 +02:00
Seth House
12481b9e38 Added ref anchor for renderer docs 2014-02-27 19:38:57 -07:00
Mike Place
826bad4cfb Merge conflict and rebase.
Conflicts:
	doc/ref/renderers/index.rst
2014-02-26 13:32:08 -07:00
Henrik Holmboe
de1548aeb0 Missing comma 2014-02-24 14:21:57 +01:00
Henrik Holmboe
09321799bf Add automodule and autosummary doc for the pyobjects renderer 2014-02-24 14:21:02 +01:00
Mike Place
a485eceac9 Fix all broken links in docs. Ignore certain known-good links. Adjust many links that are returning 301.
Conflicts:
	doc/topics/installation/index.rst
2014-02-20 16:16:59 -07:00
Mike Place
e32b0077d8 Moved YAML documentation into renderer page.
Conflicts:
	doc/topics/yaml/index.rst
2014-02-20 10:15:50 -07:00
Mike Place
6186eeab68 Renderer index re-write for clarity. 2014-02-19 13:55:34 -07:00
Thomas S Hatch
a7baf5936c Revert "add sequence filter for jinja"
This reverts commit cbe04b8231.
2014-02-11 15:59:22 -07:00
Xavier Barbosa
cbe04b8231 add sequence filter for jinja 2014-02-11 20:42:40 +01:00
Seth House
cd1df50d25 Added `python` Jinja filter to jinja renderer docs 2014-01-23 19:41:16 -07:00
Sergey
2da8e454e7 fix grammar in salt.renderers.jinja.rst 2013-11-05 18:28:21 +02:00
Joe Healy
aece0976a6 Fixed pedantic spelling errors picked up by lintian
joe@unstable-builder:~/salt_017rc/salt$ lintian -I ../*.deb
I: salt-common: spelling-error-in-manpage usr/share/man/man7/salt.7.gz softwares software - done
I: salt-common: spelling-error-in-manpage usr/share/man/man7/salt.7.gz specifed specified - done
I: salt-common: spelling-error-in-manpage usr/share/man/man7/salt.7.gz Targetting Targeting - done
I: salt-common: spelling-error-in-manpage usr/share/man/man7/salt.7.gz targetted targeted - done
I: salt-common: spelling-error-in-manpage usr/share/man/man7/salt.7.gz Dependant Dependent - done
I: salt-common: FSSTND-dir-in-manual-page usr/share/man/man7/salt.7.gz:57301 /var/named/ - not done - example
I: salt-common: FSSTND-dir-in-manual-page usr/share/man/man7/salt.7.gz:57320 /var/named/ - not done - example
I: salt-common: FSSTND-dir-in-manual-page usr/share/man/man7/salt.7.gz:57339 /var/named/ - not done - example
I: salt-common: spelling-error-in-manpage usr/share/man/man7/salt.7.gz recieve receive - done
I: salt-common: spelling-error-in-manpage usr/share/man/man7/salt.7.gz allows to allows one to - done
I: salt-common: spelling-error-in-manpage usr/share/man/man7/salt.7.gz allows to allows one to - done
I: salt-common: spelling-error-in-manpage usr/share/man/man7/salt.7.gz dont don't - done
I: salt-common: spelling-error-in-manpage usr/share/man/man7/salt.7.gz succesfully successfully - done
I: salt-common: spelling-error-in-manpage usr/share/man/man7/salt.7.gz softwares software - done
I: salt-common: spelling-error-in-manpage usr/share/man/man7/salt.7.gz These package This package - not done - legitimate
2013-09-20 22:01:20 +10:00
Erik Johnson
c490a73517 pkg, not package 2013-08-01 13:01:49 -05:00
Xavier Barbosa
45677a9875 added doc 2013-07-26 09:30:41 +02:00
Pedro Algarvio
1ff844dfb6 Link to the datetime python documentation. 2013-07-23 18:03:42 +01:00
Xavier Barbosa
f8bf53b682 added doc for yaml / json tags 2013-07-19 16:02:29 +02:00
Xavier Barbosa
22e1da9148 changed dateutil by timelib saltstack/salt#6088 2013-07-15 11:12:23 +02:00
Xavier Barbosa
2c63eb00cf added documentation saltstack/salt#6088 2013-07-15 11:12:23 +02:00
Thomas S Hatch
46700b2e6c Merge pull request #6039 from johnnoone/config-extension
Serialize dataset into file states and jinja templates
2013-07-12 10:28:47 -07:00
Erik Johnson
1b876fc53a Clarify docs on custom types 2013-07-08 21:36:34 -05:00
Xavier Barbosa
02f48b7480 added 2 jinja filters: yaml and json 2013-07-08 14:26:39 +02:00
Colton Myers
5971b0e8a8 Fix syntax error in jinja context examples
Bad indentation meant it would pass in the pieces of context as part of
the **kwargs, rather than as part of the context kwarg.
2013-05-21 13:42:00 -06:00
Chris Rebert
4f4fe73d05 salt.renderers.stateconf.rst: add more missing spaces before open parens 2013-05-14 14:38:19 -07:00
Chris Rebert
571fdd7299 some copyediting of the stateconf renderer docs 2013-05-14 14:32:34 -07:00
Hank Donnay
64fefdabce Add blurb about template inheritance and search path 2013-04-12 17:05:49 -05:00
Gary Wilson Jr
bd499e5640 Fixed several minor misspellings and acronym capitalizations. 2013-03-18 16:42:57 -05:00
Jack Kuan
deee61c51a Fix a regression in the stateconf renderer and updated docs. 2013-03-01 09:35:45 -05:00
Seth House
231e17d610 Minor rST fixes 2013-02-08 21:02:41 -07:00
Anthony Johnson
73cfc00839 Add Jinja docs and examples
* Adds if, for, macro, and import examples to salt.renderers.jinja
2013-02-06 01:44:47 -08:00
Seth House
01cd56c80f Specified current module in stateconf renderer module docs 2013-01-24 09:49:53 -07:00
Seth House
0fac9992ad Fixed heading underline 2013-01-22 13:06:44 -07:00
Jack Kuan
e37ad858f9 add pydsl renderer doc. 2013-01-20 01:22:16 -05:00