73 Commits

Author SHA1 Message Date
Waket Zheng
7a6ddbcc54 Move docxcompose to optional dependency 2025-09-23 18:25:51 +08:00
Pablo Esteban
606d189787 - The get_undeclared_template_variables method now analyzes the original template, regardless of whether it has been rendered.
- Added optional context parameter to return only variables not present in the provided context.
- Added test tests/get_undeclared_variables.py:
    - Verifies behavior before rendering (all variables)
    - Verifies after rendering with incomplete context (only missing variables)
    - Verifies after rendering with complete context (empty set)
    - Verifies compatibility with custom Jinja2 environment
- All tests use asserts and are ready for CI integration.

Closes #585
2025-07-11 14:32:20 +02:00
Eric Lapouyade
399761f9c9 Update sphynx conf.py 2025-05-06 16:22:18 +02:00
Eric Lapouyade
4477729a57 move requirements.txt 2025-05-06 16:21:27 +02:00
Eric Lapouyade
b391b213eb update sphinx theme 2025-05-06 16:17:56 +02:00
Eric Lapouyade
e766040c5b Add .readthedocs.yaml 2025-05-06 16:04:07 +02:00
Eric Lapouyade
fb0e3583da v0.20.0 2025-05-06 15:51:54 +02:00
Eric Lapouyade
40861400b3 black 2025-05-02 16:42:32 +02:00
Eric Lapouyade
9392b06da4 add RichTextParagraph class 2025-05-02 16:29:22 +02:00
jkpet
0642badebc
Update index.rst
Updating 'sub-document' documentation to make explicit what was already implicit.
2024-07-19 17:03:07 +10:00
giancab25
006d5bc506 Improved the readability of the Sub-documents section of the documentation 2022-08-24 20:28:32 -04:00
Eric Lapouyade
4047845c3a Reorganize documentation 2022-08-05 11:10:11 +02:00
Eric Lapouyade
1a4a5f5723 Reorganize documentation 2022-08-05 11:04:07 +02:00
Eric Lapouyade
4857a6ed72 Modify PR to be more generic 2022-08-04 10:27:02 +02:00
Tim Gates
2fd2140caf
docs: Fix a few typos
There are small typos in:
- docs/index.rst
- docxtpl/__main__.py
- docxtpl/template.py
- tests/embedded.py

Fixes:
- Should read `surrounding` rather than `surronding`.
- Should read `rendering` rather than `rendring`.
- Should read `providing` rather than `provinding`.
- Should read `optionally` rather than `optionnally`.
- Should read `optional` rather than `optionnal`.
- Should read `necessary` rather than `neccessary`.
- Should read `existing` rather than `exsting`.
- Should read `embedded` rather than `embdded`.
- Should read `dictionaries` rather than `dictionnaries`.
- Should read `cleaning` rather than `cleanning`.
- Should read `catches` rather than `cacthes`.

Signed-off-by: Tim Gates <tim.gates@iress.com>
2022-07-21 08:16:56 +10:00
elapouya
624bc15a10 fix #443 2022-06-12 10:30:44 +02:00
Eric Lapouyade
9b4e623c3c Add documentation for jinja-like comments in templates 2022-04-16 12:18:07 +02:00
Eric Lapouyade
b95a23395f fix #422 2022-03-12 18:31:03 +01:00
Andreas **Felix** Häberle
d2037d2a54
added interface function to check variables in document 2021-12-22 18:49:35 +01:00
Eric Lapouyade
e574b6c650 remove f-string for python < 3.6 compability 2021-12-20 16:31:29 +01:00
Eric Lapouyade
1f3ef9b236 Add quiet option, update doc, modify test 2021-09-30 17:08:05 +02:00
DeanWunder
9708802400
Update index.rst, fixed a misspell. 2021-08-16 08:39:08 +10:00
Eric Lapouyade
61c8924663 V0.12.0 2021-08-15 15:50:45 +02:00
Vishesh Mangla
883e9f7e0b
Added attribute names for InlineImage 2021-05-03 22:58:56 +05:30
Vishesh Mangla
2c578949b9
Update index.rst 2021-05-03 22:57:28 +05:30
Eric Lapouyade
44a0819625 \n, \a, \t and \f are now accepted in simple context string 2020-10-19 13:59:36 +02:00
JEACO
e67b27f06e Add conda install instructions 2020-10-15 13:33:18 +02:00
Tim Gates
53ed9bba32
docs: Fix simple typo, embdded -> embedded
There is a small typo in docs/index.rst, docxtpl/__init__.py.

Should read `embedded` rather than `embdded`.
2020-09-14 06:28:17 +10:00
Dusty Phillips
6c21fab272
Fix spelling mistake 2020-08-15 16:53:13 -03:00
elapouya
4d81ef8eaa Update doc 2020-07-31 18:43:14 +02:00
Eric Lapouyade
1b9ec6f253 Merge remote-tracking branch 'origin/master' 2020-05-24 11:55:53 +02:00
Eric Lapouyade
7363428782 v0.10.0 2020-05-24 11:54:49 +02:00
Craig Booth
8bf2fa511d
Fix typo in index.rst 2020-05-18 20:25:58 -05:00
Eric Lapouyade
01fd27df11 Update doc 2020-04-29 14:41:27 +02:00
Edwin Smulders
9175f0cbd6 Fix codestyling according to flake8 rules 2020-04-16 23:06:57 +02:00
Eric Lapouyade
ccdf20a121 v0.9.0 2020-04-15 15:11:47 +02:00
Eric Lapouyade
227abbbb54
Merge pull request #262 from komawar/minor-ref-fix
Reference RichText section
2020-04-09 14:29:02 +02:00
Eric Lapouyade
444f862efa Add replace_zipname() 2020-04-09 14:26:22 +02:00
Nikhil Komawar
4efd49c8f2 Reference RichText section
This will enabling RichText section in the documentation as it appears
after the concerened section. Easier to navigate and avoid confusion.
2020-04-08 12:44:47 +05:30
Nikhil Komawar
b65d04750e Fix grammar in index.rst
This commit fixes grammar errors in index.rst related to the issue
opened in issue #259
2020-04-06 11:34:54 +05:30
Max Podolskii
5f6a5c4d6c Added PAGE_BREAK feature: use '\f' in your text to get a manual page break rendered. 2018-12-27 22:21:46 -08:00
elapouya
32e39b7b67 Update doc 2018-12-05 09:28:44 +01:00
elapouya
25825a79f1 Update doc 2018-12-05 09:24:25 +01:00
elapouya
cd89aa33aa Update doc 2018-12-05 09:14:55 +01:00
elapouya
0382ece29d Update doc 2018-12-05 09:08:41 +01:00
elapouya
77043c1a66 Update doc 2018-12-05 09:07:33 +01:00
Nick Gashkov
9aa6019d25 Add horizontal merge '{% hm %}' tag support 2018-11-16 16:44:12 +03:00
elapouya
bc9820e7cf Render can now autoescape context dict 2018-11-07 16:56:25 +01:00
elapouya
23fbe8c048 Add Hyperlink in RichText 2018-08-03 15:26:56 +02:00
elapouya
7437268425 Better tabs and spaces management for MS Word 2016 2018-05-16 13:56:50 +02:00