170 Commits

Author SHA1 Message Date
Jairo Llopis
6e7cff8b37 Allow multidoc copier.yml with glob include
Before this patch, using `!include` was a bit absurd because it would fail under any useful scenario:

- Including with a glob.
- Trying to include more than 1 file.

Now all those are supported, and they can coexist. Besides, the patch is quite simple, which makes it more attractive.

Fix #237.
2020-09-05 11:22:42 +00:00
Jairo Llopis
d6324eb7a4 Fix admonitions
Little bug that made these docs look like code instead of normal docs.
2020-08-13 12:14:48 +00:00
Jairo Llopis
1e464dad0f Add --prereleases support
Before this patch, Copier didn't ignore prereleases when detecting latest template tag.

This is mostly a bug because there's no way to safely upgrade a template to the latest non-prerelease tag automatically.

This a behavioral change that probably didn't hit anybody out there, but enough to make a new big release.
2020-08-13 11:45:18 +00:00
Jairo Llopis
8be4bbe93a Better docs for CLI
- Add `only_diff` docs.
- Link CLI docs with those from configuration.
- Add link on `copier --help` to the docs.
- Include `copier --help-all` in the online docs.
2020-08-13 10:17:23 +00:00
Jairo Llopis
cdb563a96d Add 4-space indentation to .md files
Mkdocs uses `python-markdown`, and [they say](https://python-markdown.github.io/#differences):

> The syntax rules clearly state that when a list item consists of multiple paragraphs, “each subsequent paragraph in a list item must be indented by either 4 spaces or one tab” (emphasis added). However, many implementations do not enforce this rule and allow less than 4 spaces of indentation. The implementers of Python-Markdown consider it a bug to not enforce this rule.

As we were using 2 spaces for markdown files (which looks better in source code), some indented lists were not displaying properly in the docs page.

Thus I change the setting to 4 spaces. Prettier will now enforce them, and mkdocs will display things properly.
2020-08-10 12:59:07 +00:00
Jairo Llopis
a456f59b7a A little polish on docs
- Prepare for a new release.
- Add configuring page, with more explicit docs and examples for each option.
- Remove configuration stuff from creation page.
- Comparisons are ugly, so remove them from the index page.
2020-08-10 11:27:52 +00:00
Jairo Llopis
55de4aeeea Add readthedocs configuration 2020-08-03 14:02:13 +01:00
Alexandre Chaussier
173db40a1d Docs: Add a warning about "!include" usage with YAML files 2020-08-03 13:09:58 +01:00
Timothée Mazzucotelli
b94b7f4042 Prettify code 2020-07-31 15:02:58 +02:00
Timothée Mazzucotelli
3ad2c67a20 Autodoc 2020-07-31 15:02:58 +02:00
Juan-Pablo Scaletti
5cea5d7ac7 Voodoo -> Copier 2019-02-11 22:32:34 -05:00
Juan Pablo Scaletti
e96a5c0932 merge template-dirs and master 2015-10-09 12:22:33 -05:00
Juan-Pablo Scaletti
a6345abed2 BSD -> MIT 2015-04-04 21:35:37 -05:00
Juan-Pablo Scaletti
ca3bdff935 Uses a public git url for testing 2015-03-27 13:03:32 -05:00
Juan-Pablo Scaletti
e00a3dc466 voodo_setup 2015-03-26 20:55:50 -05:00
Javier Olaechea
0a5d25baa6 Update docs to reflect usage 2015-02-26 12:36:22 -05:00
Juan-Pablo Scaletti
fb0af38085 Add travis.ci support 2015-02-20 10:54:43 -05:00
Juan-Pablo Scaletti
e9075a8bde Use normalized pypackage template 2013-08-29 15:50:20 -05:00
Juan-Pablo Scaletti
b3b73cb3b3 ... 2013-06-30 16:00:41 -05:00
Juan-Pablo Scaletti
7c1e75fa7e Supporting files update 2013-06-19 00:01:51 -05:00