mirror of
https://github.com/themsaid/ibis.git
synced 2025-01-17 05:28:32 +01:00
feat: configurable table of contents levels
This commit is contained in:
parent
e671d5e1ba
commit
a70a8ba355
@ -196,9 +196,7 @@ class BuildCommand extends Command
|
||||
|
||||
$pdf->setAutoBottomMargin = 'pad';
|
||||
|
||||
$tocLevels = [
|
||||
'H1' => 0, 'H2' => 1
|
||||
];
|
||||
$tocLevels = $config['toc_levels'];
|
||||
|
||||
$pdf->h2toc = $tocLevels;
|
||||
$pdf->h2bookmarks = $tocLevels;
|
||||
|
@ -33,6 +33,14 @@ return [
|
||||
'margin_top' => 14,
|
||||
],
|
||||
|
||||
/**
|
||||
* Table of Contents Levels
|
||||
*/
|
||||
'toc_levels' => [
|
||||
'H1' => 0,
|
||||
'H2' => 1,
|
||||
],
|
||||
|
||||
|
||||
/**
|
||||
* Cover photo position and dimensions
|
||||
@ -49,7 +57,7 @@ return [
|
||||
'sample' => [
|
||||
[1, 3],
|
||||
[80, 85],
|
||||
[100, 103]
|
||||
[100, 103],
|
||||
],
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user