Skip to content

Commit 2765731

Browse files
committed
➕ ajout et configuration du package spactie/google-fonts
1 parent 1285d71 commit 2765731

File tree

5 files changed

+132
-4
lines changed

5 files changed

+132
-4
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"sentry/sentry-laravel": "^2.10",
3232
"socialiteproviders/twitter": "^4.1",
3333
"spatie/laravel-feed": "^4.1",
34+
"spatie/laravel-google-fonts": "^1.2",
3435
"spatie/laravel-health": "^1.11",
3536
"spatie/laravel-medialibrary": "^9.0.0",
3637
"spatie/laravel-permission": "^5.1",

composer.lock

Lines changed: 81 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/google-fonts.php

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
* Here you can register fonts to call from the @googlefonts Blade directive.
7+
* The google-fonts:fetch command will prefetch these fonts.
8+
*/
9+
'fonts' => [
10+
'default' => 'https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&family=Lexend:wght@700&family=JetBrains+Mono',
11+
],
12+
13+
/*
14+
* This disk will be used to store local Google Fonts. The public disk
15+
* is the default because it can be served over HTTP with storage:link.
16+
*/
17+
'disk' => 'public',
18+
19+
/*
20+
* Prepend all files that are written to the selected disk with this path.
21+
* This allows separating the fonts from other data in the public disk.
22+
*/
23+
'path' => 'fonts',
24+
25+
/*
26+
* By default, CSS will be inlined to reduce the amount of round trips
27+
* browsers need to make in order to load the requested font files.
28+
*/
29+
'inline' => true,
30+
31+
/*
32+
* When something goes wrong fonts are loaded directly from Google.
33+
* With fallback disabled, this package will throw an exception.
34+
*/
35+
'fallback' => ! env('APP_DEBUG'),
36+
37+
/*
38+
* This user agent will be used to request the stylesheet from Google Fonts.
39+
* This is the Safari 14 user agent that only targets modern browsers. If
40+
* you want to target older browsers, use different user agent string.
41+
*/
42+
'user_agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15',
43+
44+
];

config/markdown.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use League\CommonMark\Extension\Attributes\AttributesExtension;
1414
use League\CommonMark\Extension\HeadingPermalink\HeadingPermalinkExtension;
1515
use League\CommonMark\Extension\Mention\MentionExtension;
16+
use League\CommonMark\Extension\TableOfContents\TableOfContentsExtension;
1617
use Torchlight\Commonmark\V2\TorchlightExtension;
1718

1819
return [
@@ -55,6 +56,7 @@
5556
MentionExtension::class,
5657
AttributesExtension::class,
5758
TorchlightExtension::class,
59+
TableOfContentsExtension::class,
5860
],
5961

6062
/*
@@ -80,7 +82,8 @@
8082

8183
'heading_permalink' => [
8284
'html_class' => 'anchor !text-skin-primary !no-underline hover:!text-skin-primary-hover focus:!text-skin-primary-hover focus:outline-none',
83-
'symbol' => '',
85+
'id_prefix' => '',
86+
'symbol' => '#',
8487
'aria_hidden' => true,
8588
],
8689

@@ -128,7 +131,7 @@
128131
|
129132
*/
130133

131-
'html_input' => 'strip',
134+
'html_input' => 'allow',
132135

133136
/*
134137
|--------------------------------------------------------------------------

config/torchlight.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// We replace tabs in your code blocks with spaces in HTML. Set
2323
// the number of spaces you'd like to use per tab. Set to
2424
// `false` to leave literal tabs in the HTML.
25-
'tab_width' => 2,
25+
'tab_width' => 4,
2626

2727
// Global options to control blocks-level settings.
2828
// https://torchlight.dev/docs/options

0 commit comments

Comments
 (0)