forked from NativePHP/nativephp.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtorchlight.php
66 lines (52 loc) · 2.33 KB
/
torchlight.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
return [
// The Torchlight client caches highlighted code blocks. Here
// you can define which cache driver you'd like to use. If
// leave this blank your default app cache will be used.
'cache' => env('TORCHLIGHT_CACHE_DRIVER'),
// Cache blocks for 30 days.
'cache_seconds' => env('TORCHLIGHT_CACHE_TTL', 60 * 60 * 24 * 30),
// Which theme you want to use. You can find all of the themes at
// https://torchlight.dev/docs/themes.
'theme' => env('TORCHLIGHT_THEME', 'material-theme-palenight'),
// If you want to use two separate themes for dark and light modes,
// you can use an array to define both themes. Torchlight renders
// both on the page, and you will be responsible for hiding one
// or the other depending on the dark / light mode via CSS.
// 'theme' => [
// 'dark' => 'github-dark',
// 'light' => 'github-light',
// ],
// Your API token from torchlight.dev.
'token' => env('TORCHLIGHT_TOKEN'),
// If you want to register the blade directives, set this to true.
'blade_components' => true,
// The Host of the API.
'host' => env('TORCHLIGHT_HOST', 'https://api.torchlight.dev'),
// We replace tabs in your code blocks with spaces in HTML. Set
// the number of spaces you'd like to use per tab. Set to
// `false` to leave literal tabs in the HTML.
'tab_width' => 4,
// If you pass a filename to the code component or in a markdown
// block, Torchlight will look for code snippets in the
// following directories.
'snippet_directories' => [
resource_path()
],
// Global options to control blocks-level settings.
// https://torchlight.dev/docs/options
'options' => [
// Turn line numbers on or off globally.
// 'lineNumbers' => false,
// Control the `style` attribute applied to line numbers.
// 'lineNumbersStyle' => '',
// Turn on +/- diff indicators.
// 'diffIndicators' => true,
// If there are any diff indicators for a line, put them
// in place of the line number to save horizontal space.
// 'diffIndicatorsInPlaceOfLineNumbers' => true,
// When lines are collapsed, this is the text that will
// be shown to indicate that they can be expanded.
// 'summaryCollapsedIndicator' => '...',
]
];