-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: updated documentation and dependencies
- Loading branch information
1 parent
868722a
commit 053dffe
Showing
14 changed files
with
356 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
nav: | ||
- getting-started.md | ||
- setup | ||
- reference | ||
- samples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Base | ||
|
||
The configuration of the `exporter` plugin. | ||
|
||
## Schemas | ||
|
||
You can find the source code of the following schemas [here](https://github.com/adrienbrignon/mkdocs-exporter/blob/master/mkdocs_exporter/config.py). | ||
|
||
### `Configuration` | ||
|
||
| Name | Type | Default | Description | | ||
|----------------------|------------------------|----------|--------------------------------------------------------------| | ||
| `theme` | `str` | | Overrides the theme used by your MkDocs instance. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Extras | ||
|
||
The configuration of the `exporter-extras` plugin. | ||
|
||
## Schemas | ||
|
||
You can find the source code of the following schemas [here](https://github.com/adrienbrignon/mkdocs-exporter/blob/master/mkdocs_exporter/plugins/extras/config.py). | ||
|
||
### `Configuration` | ||
|
||
| Name | Type | Default | Description | | ||
|----------------------|--------------------------------------|----------|--------------------------------------------------------------| | ||
| `enabled` | `bool` | `true` | Should the plugin be enabled? | | ||
| `buttons` | <code>list[[Button](#button)]</code> | | The custom buttons to define. | | ||
|
||
### `Button` | ||
|
||
| Name | Type | Default | Description | | ||
|----------------------|--------------------------------------|----------|--------------------------------------------------------------| | ||
| `enabled` | `bool | Callable` | `true` | Is this button enabled (visible)? | | ||
| `title` | `str | Callable` | | The button's title. | | ||
| `icon` | `str | Callable` | | The button's icon. | | ||
| `attributes` | `dict | Callable` | | Custom HTML attributes to apply to the button. | | ||
|
||
## Example | ||
|
||
```yaml | ||
plugins: | ||
- exporter-extras: | ||
buttons: | ||
- title: Download as PDF | ||
icon: material-file-download-outline | ||
enabled: !!python/name:mkdocs_exporter.plugins.pdf.button.enabled | ||
attributes: | ||
href: !!python/name:mkdocs_exporter.plugins.pdf.button.href | ||
download: !!python/name:mkdocs_exporter.plugins.pdf.button.download | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
|
||
The configuration of the `exporter-pdf` plugin. | ||
|
||
## Schemas | ||
|
||
You can find the source code of the following schemas [here](https://github.com/adrienbrignon/mkdocs-exporter/blob/master/mkdocs_exporter/plugins/pdf/config.py). | ||
|
||
### `Configuration` | ||
|
||
| Name | Type | Default | Description | | ||
|----------------------|--------------------------------------|----------|----------------------------------------------------------------------| | ||
| `enabled` | `bool` | `true` | Should the plugin be enabled? | | ||
| `explicit` | `bool` | `false` | Should pages specify explicitly that they should be rendered as PDF? | | ||
| `concurrency` | `int` | `4` | The maximum number of concurrent PDF generation tasks. | | ||
| `stylesheets` | `list[str]` | | A list of custom stylesheets to apply before rendering documents. | | ||
| `scripts` | `list[str]` | | A list of custom scripts to inject before rendering documents. | | ||
| `covers` | <code>[Covers](#covers)</code> | | The document's cover pages. | | ||
| `browser` | <code>[Browser](#browser)</code> | | The browser's configuration. | | ||
| `url` | `str` | | The base URL that'll be prefixed to links with a relative path. | | ||
|
||
### `Covers` | ||
|
||
| Name | Type | Default | Description | | ||
|----------------------|--------------------------------------|----------|-------------------------------------------------------------------| | ||
| `front` | `str` | | The front cover template location. | | ||
| `back` | `str` | | The back cover template location. | | ||
|
||
### `Browser` | ||
|
||
| Name | Type | Default | Description | | ||
|----------------------|--------------------------------------|----------|-------------------------------------------------------------------| | ||
| `debug` | `bool` | `false` | Should console messages sent to the browser be logged? | | ||
| `headless` | `bool` | `true` | Should the browser start in headless mode? | | ||
| `timeout` | `int` | `60000` | The timeout (in milliseconds) when waiting for the PDF to render. | | ||
|
||
## Example | ||
|
||
```yaml | ||
plugins: | ||
- exporter-pdf: | ||
concurrency: 8 | ||
enabled: !ENV [MKDOCS_EXPORTER_PDF, true] | ||
stylesheets: | ||
- resources/stylesheets/pdf.scss | ||
covers: | ||
front: resources/templates/covers/front.html.j2 | ||
back: resources/templates/covers/back.html.j2 | ||
browser: | ||
debug: false | ||
headless: true | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.