Skip to content

Commit 3dcafe3

Browse files
committed
Standardise YAML file extension from .yml to .yaml
1 parent d6382c0 commit 3dcafe3

16 files changed

Lines changed: 23 additions & 20 deletions

File tree

docs/configuration.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
```
66
project/
7-
├── kiwipycon.yml # Main configuration
7+
├── kiwipycon.yaml # Main configuration
88
├── material_specs/ # A document
9-
│ ├── config.yml # Document configuration
9+
│ ├── config.yaml # Document configuration
1010
│ ├── images/ # Images
1111
│ ├── pages/ # Page configurations
1212
│ └── templates/ # SVG templates
1313
└── prospectus/ # Another document
14-
├── config.yml
14+
├── config.yaml
1515
├── images/
1616
├── pages/
1717
└── templates/
@@ -21,7 +21,7 @@ project/
2121

2222
| Option | Type | Default | Description |
2323
| ----------------- | ------- | ------------ | ------------------------------------------------------------------------------------------------------------------ |
24-
| `documents` | array | Yes | List of document directories. Each directory must contain a `config.yml` file |
24+
| `documents` | array | Yes | List of document directories. Each directory must contain a `config.yaml` file |
2525
| `style` | object | No | Global style definitions that may reference `theme` values |
2626
| `theme` | object | No | Reusable values (colors, fonts, spacing, etc.) used by `style` |
2727
| `compress_pdf` | boolean | `false` | Whether to compress the final PDF. Requires Ghostscript. |
@@ -33,7 +33,7 @@ highlighted in the color specified by the `highlight_color` in your `style`.
3333
Example:
3434

3535
```yaml
36-
# kiwipycon.yml
36+
# kiwipycon.yaml
3737

3838
documents:
3939
- prospectus
@@ -74,13 +74,13 @@ for each document.
7474
| Option | Type | Required | Description |
7575
| ---------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------- |
7676
| `filename` | string | Yes | Filename (without extension) of the final PDF document. Can use variables, particularly `variant` (see [Variants](variants.md)) |
77-
| `pages` | array | Yes | List of page names. Each page must have a corresponding `.yml` file in the `pages/` directory |
77+
| `pages` | array | Yes | List of page names. Each page must have a corresponding `.yaml` file in the `pages/` directory |
7878
| `variants` | array | No | List of document variants (see [Variants](variants.md)) |
7979

8080
Example:
8181

8282
```yaml
83-
# prospectus/config.yml
83+
# prospectus/config.yaml
8484
8585
filename: "Kiwi PyCon {{ conference.year }} - Prospectus" # Use config values in config values!
8686
title: "Sponsorship Prospectus"
@@ -105,7 +105,7 @@ merged with this for access to all settings in your template.
105105
Example:
106106

107107
```yaml
108-
# pages/conference_schedule.yml
108+
# pages/conference_schedule.yaml
109109
110110
template: list_section.svg.j2
111111

docs/custom_processing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ from pdfbaker.document import PDFBakerDocument
1717

1818
def process_document(document: PDFBakerDocument) -> None:
1919
# Custom processing logic here
20-
return document.process()
20+
document.process()
2121
```
2222

2323
You will usually just manipulate the data for your templates, and then call `.process()`
@@ -27,5 +27,5 @@ the PDF as configured.
2727
See `examples/custom_processing/bake.py` for a simple example of how to do this.
2828

2929
If you need to fully customise the processing, make sure that your function returns a
30-
list of Path objects (the PDF files that were created) as that is the expected type of
31-
return value for logging.
30+
Path or list of Path objects (the PDF files that were created) as that is the expected
31+
type of return value for logging.

docs/overview.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,26 @@ For a quick introduction, see the [README](../README.md).
2525

2626
## Examples
2727

28-
See the [examples](../examples) directory for simple working examples:
28+
See the [examples](examples) directory:
2929

30-
- [minimal](../examples/minimal) - Basic single page
31-
- [regular](../examples/regular) - Using various features
32-
- [variants](../examples/variants) - Different PDFs of the same document
33-
- [custom_processing](../examples/custom_processing) - Custom Python code
30+
- [minimal](examples/minimal) - Basic usage
31+
- [regular](examples/regular) - Standard features
32+
- [variants](examples/variants) - Document variants
33+
- [custom_locations](examples/custom_locations) - Custom file/directory locations
34+
- [custom_processing](examples/custom_processing) - Custom processing with Python
3435

3536
## Example Project Structure
3637

3738
```
3839
project/
39-
├── kiwipycon.yml # Main configuration
40+
├── kiwipycon.yaml # Main configuration
4041
├── material_specs/ # A document
41-
│ ├── config.yml # Document configuration
42+
│ ├── config.yaml # Document configuration
4243
│ ├── images/ # Images
4344
│ ├── pages/ # Page configurations
4445
│ └── templates/ # SVG templates
4546
└── prospectus/ # Another document
46-
├── config.yml
47+
├── config.yaml
4748
├── images/
4849
├── pages/
4950
└── templates/

docs/variants.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ different content or settings. This is useful for:
1010

1111
## Basic Structure
1212

13-
Variants are defined in your document's `config.yml`:
13+
Variants are defined in your document's `config.yaml`:
1414

1515
```yaml
1616
filename: "My Document - {{ variant.name }}"
File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ documents:
22
- minimal
33
- regular
44
- variants
5+
- "./custom_locations/your_directory"
56
- custom_processing
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
template: main.svg.j2
12
filename: minimal_example
23
pages:
34
- main

0 commit comments

Comments
 (0)