22 Commits

Author SHA1 Message Date
Axel H.
0a9644d249 feat(settings): add user settings support with defaults values (fix #235) 2025-01-29 19:46:06 +01:00
Kj
557c0d6144
feat: add dynamic file structures in loop using yield-tag (#1855)
Add jinja2 extension for yield tag, allow _render_path to generate multiple paths and contexts when yield tag is used.

The tag is only allowed in path render contexts. When rendering within a file, it doesn't make sense. Use the normal for tag there. If you use yield, you'll get an exception.

Fixes https://github.com/copier-org/copier/issues/1271
2025-01-18 08:24:32 +00:00
jeanluc
2e7629e3d6
docs: restructure context vars, add undocumented ones (#1856) 2024-11-12 21:54:40 +01:00
Sigurd Spieckermann
53b4b985a3 docs: enable automatic light/dark mode 2023-12-20 13:19:52 +01:00
Timothée Mazzucotelli
1196644aaf docs: Use pymdownx.highlight instead of codehilite 2023-10-07 20:11:26 +02:00
Sigurd Spieckermann
77358429da
docs: use MkDocs' builtin watch feature (#999) 2023-02-27 18:17:47 +00:00
Sigurd Spieckermann
474be856c1
docs: use tree fence for filesystem trees (#998)
* docs: use tree fence for filesystem trees

* docs: remove dashed lines in filesystem tree
2023-02-25 07:23:14 +00:00
Timothée Mazzucotelli
945238bdf6
docs: Document the context hook extension (#641)
Co-authored-by: Tom Verdaat <66591885+verdaatt@users.noreply.github.com>
2022-04-24 14:31:42 +01:00
Yajo
8156846a35 docs(subdirectory): explain how to use subdirectory to host multiple templates in a single git repository
Also explain why it's a bad idea.

Fixes https://github.com/copier-org/copier/issues/578
2022-03-06 10:16:28 +00:00
Timothée Mazzucotelli
3427b6d4ea docs: Use native Mermaid integration 2022-02-17 17:49:22 +00:00
Timothée Mazzucotelli
d2f5998b51
docs: Change diagram colors when switching between dark and light themes (#544) 2022-01-18 15:57:17 +01:00
eyllanesc
2dbdeaaa83 docs: enable footnotes and navigation.tracking 2022-01-15 15:41:45 +01:00
Yajo
1dc3a1bbce docs: fix some errors and lies, change colors
Old color palette wasn't easy to read in the dark.

New one is more readable and fits better with our logo.
2022-01-13 21:35:11 +01:00
Timothée Mazzucotelli
5d90ad967d docs: Add dark/light theme switch 2022-01-13 21:35:11 +01:00
Jairo Llopis
054b962d70 docs: enable mermaid code fences 2021-04-20 07:21:36 +01:00
Jairo Llopis
0441b86f0c
Refactor (#314)
* Refactor
* Fix #110.
* Rewrite test_config_exclude, test_config_exclude_overridden and test_config_include. These tests were badly designed, using a monkeypatch that would never happen in the real world, and actually producing false positives. I moved them to test_exclude.py and rewritten to test the what and not the how.
* Fix #214 by removing skip option. Relevant tests use the better skip_if_exists=["**"].
* Remove subdirectory flag from API/CLI. It was confusing and could lead to bad maintenance situations. Fixes #315.
* Remove extra_paths and fix #321
* Remember that you cannot use _copier_conf.src_path as a path now
* use dataclasses
* Create errors module, simplify some tests, fix many others
* Fix some tests, complete EnvOps removal
* Fix #214 and some tests related to it
* Reorder code
* Update docs and imports
* Modularize test_complex_questions
* Interlink worker and questionary a bit better
* Removal of Questionary class, which only had 1 meaningful method that is now merged into Worker to avoid circular dependencies.
* Fix #280 in a simple way: only user answers are type-casted inside API, and CLI transforms all `--data` using YAML always. Predictable.
* Use prereleases correctly.
* Reorder AnswersMap to have a more significative repr.
* Simpler cache for old `Question.get_choices()` method (renamed now).
* fix wrong test
* Fix test_subdirectory
* Fix test_tasks (and remove tests/demo_tasks)
* Fix path filter tests, and move it to test_exclude, where it belongs
* Make test_config pass
* Fix more wrongly designed tests
* Use cached_property backport if needed
* xfail test known to fail on mac
* force posix paths on windows
* Add typing_extensions for python < 3.8
* Sort dependencies in pyproject.toml
* Support python 3.6 str-to-datetime conversion
* Workaround https://bugs.python.org/issue43095
* xfail test_path_filter on windows
* Upgrade mkdocs and other dependencies to fix https://github.com/pawamoy/mkdocstrings/issues/222
* Add missing reference docs.
* Add workaround for https://github.com/pawamoy/mkdocstrings/pull/209
* Docs.
* Remove validators module
* Add workaround for https://github.com/pawamoy/mkdocstrings/issues/225
* Restore docs autorefs as explained in https://github.com/pawamoy/mkdocstrings/issues/226#issuecomment-775413562.
* Workaround https://github.com/pawamoy/pytkdocs/issues/86
2021-02-09 18:22:47 +00:00
Timothée Mazzucotelli
9e3f151eec Document the update process
Co-authored-by: Jairo Llopis <Yajo@users.noreply.github.com>
2020-09-27 22:21:21 +02:00
Jairo Llopis
aa1bfa1ded Fix broken docs links
Fixes some bugs introduced in #271 by mistake. That automerge bot was too fast.
2020-09-17 19:55:30 +02:00
Timothée Mazzucotelli
0a40b0b853 Update docs dependencies versions 2020-09-05 10:22:43 +01:00
Jairo Llopis
de12eec1f4 Make latest the default docs location
This will reduce friction while testing docs in PRs until https://github.com/pawamoy/mkdocstrings/issues/144 is fixed.
2020-08-13 11:58:46 +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
Timothée Mazzucotelli
3ad2c67a20 Autodoc 2020-07-31 15:02:58 +02:00