You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`documents`**required**| array |`[]`| List of document configurations. A simple string specifies the name of a directory containing a `config.yaml` file. You can also specify `path` and `name` to a specific configuration YAML file. |
30
-
|`directories.base`**read-only**| string | directory containing the config file | Other directories are relative to this base directory. |
31
-
|`directories.build`| string |`"build"`| Intermediary SVG and PDF files are written here. Deleted unless `bake` is run with `--keep-build`|
32
-
|`directories.dist`| string |`"dist"`| Final PDF files are written here. |
33
-
|`directories.documents`| string |`"documents"`| Location of document configurations. |
34
-
|`directories.images`| string |`"images"`| Location of image files. |
35
-
|`directories.pages`| string |`"pages"`| Location of page configurations. |
36
-
|`directories.templates`| string |`"templates"`|Final PDF files are written here.|
37
-
|`jinja2_extensions`| array |`[]`| jinja2_extensions (like `jinja2.ext.do`) to load and use in templates. |
38
-
|`template_renderers`| array |`["render_highlight"]`| List of automatically applied renderers. `render_highlight` is currently the only available one and enabled by default. It will replace `<highlight>...</highlight>` with `<tspan>` using the colour `style.color` to let you highlight words inside YAML text. |
39
-
|`template_filters`| array |`["wordwrap"]`| List of filters made available to templates. `wordwrap` is currently the only available filter. It splits text into lines so that full words have to fit within the specified total number of character for example `{% set desc_lines = item.desc \| wordwrap(40) %}`. |
40
-
|`svg2pdf_backend`| string |`"cairosvg"`| Backend to use for SVG to PDF conversion. `"cairosvg"` is built-in, the alternative `"inkscape"` requires Inkscape to be installed |
41
-
|`compress_pdf`| boolean |`false`| Whether to compress the final PDF. Requires Ghostscript to be installed. |
42
-
|`keep_build`| boolean |`false`| Whether to keep the `build` directory and its intermediary files. You can also pass `bake --keep-build` on individual calls to do this. |
43
-
|_additional custom setting_||| Any settings you want to make available to all pages of all documents. |
|`documents`**required**| array |`[]`| List of document configurations. A simple string specifies the name of a directory containing a `config.yaml` file. You can also specify `path` and `name` to a specific configuration YAML file. |
30
+
|`directories.base`**readonly**| string | directory containing the config file | Other directories are relative to this base directory. |
31
+
|`directories.build`| string |`"build"`| Intermediary SVG and PDF files are written here. Deleted unless `bake` is run with `--keep-build`|
32
+
|`directories.dist`| string |`"dist"`| Final PDF files are written here. |
33
+
|`directories.documents`| string |`"documents"`| Location of document configurations. |
34
+
|`directories.images`| string |`"images"`| Location of image files. |
35
+
|`directories.pages`| string |`"pages"`| Location of page configurations. |
36
+
|`directories.templates`| string |`"templates"`|Location of SVG template files. |
37
+
|`jinja2_extensions`| array |`[]`| jinja2_extensions (like `jinja2.ext.do`) to load and use in templates. |
38
+
|`template_renderers`| array |`["render_highlight"]`| List of automatically applied renderers. `render_highlight` is currently the only available one and enabled by default. It will replace `<highlight>...</highlight>` with `<tspan>` using the colour `style.color` to let you highlight words inside YAML text. |
39
+
|`template_filters`| array |`["wordwrap"]`| List of filters made available to templates. `wordwrap` is currently the only available filter. It splits text into lines so that full words have to fit within the specified total number of character for example `{% set desc_lines = item.desc \| wordwrap(40) %}`. |
40
+
|`svg2pdf_backend`| string |`"cairosvg"`| Backend to use for SVG to PDF conversion. `"cairosvg"` is built-in, the alternative `"inkscape"` requires Inkscape to be installed |
41
+
|`compress_pdf`| boolean |`false`| Whether to compress the final PDF. Requires Ghostscript to be installed. |
42
+
|`keep_build`| boolean |`false`| Whether to keep the `build` directory and its intermediary files. You can also pass `bake --keep-build` on individual calls to do this. |
43
+
|_additional custom setting_||| Any settings you want to make available to all pages of all documents. |
44
44
45
45
<details>
46
46
<summary>Example Main Configuration File</summary>
@@ -122,7 +122,7 @@ At least `template` has to be specified.
122
122
| _any main or document setting_ | | | Any of the Main Configuration File settings can be overridden for a particular document. |
123
123
| `template` **required** | string | | Filename of the SVG template (must be in the document's `templates/` directory) |
124
124
| `images` | array | | List of images to use in the page. Each image must have a `name` (filename in the document's `images/` directory) and optionally a `type` (defaults to "default") |
125
-
| `page_number` **read-only** | integer | | The number of the current page within its document |
125
+
| `page_number` **readonly** | integer | | The number of the current page within its document |
126
126
| _additional custom setting_ | | | Any settings you want to make available to this page. This allows you to have a template purely for layout purposes. |
0 commit comments