Skip to content

Commit d51f392

Browse files
committed
Release
1 parent cd813b9 commit d51f392

File tree

2 files changed

+22
-13
lines changed

2 files changed

+22
-13
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
## 0.1.0 - 2021-08-04
6+
7+
- First

README.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
# Torchlight Client for Ibis
22

3-
4-
🚨 This package is currently waiting on [a PR to be merged](https://github.com/themsaid/ibis/pull/40) for Ibis. 🚨
5-
6-
It won't work until then.
7-
8-
----
9-
103
A [Torchlight](https://torchlight.dev) syntax highlighting extension for the ebook builder [Ibis](https://github.com/themsaid/ibis).
114

125
Torchlight is a VS Code-compatible syntax highlighter that requires no JavaScript, supports every language, every VS Code theme, line highlighting, git diffing, and more.
@@ -24,18 +17,25 @@ If you haven't already, Composer will ask you to create a `composer.json` file i
2417
In your `ibis.php` file, add the following to your configuration:
2518

2619
```php
27-
'configure_commonmark' => function ($environment) {
28-
TorchlightExtension::make()->register($environment);
29-
},
20+
return [
21+
/**
22+
* The book title.
23+
*/
24+
'title' => 'Laravel Queues in Action',
25+
26+
// .....
27+
28+
'configure_commonmark' => function ($environment) {
29+
\Torchlight\Ibis\TorchlightExtension::make()->register($environment);
30+
},
31+
];
3032
```
3133

32-
At the top of your `ibis.php` file, you'll also need to add the composer autoloader and import the Torchlight namespace:
34+
At the top of your `ibis.php` file, you'll also need to add the composer autoloader if it's not already there:
3335

3436
```php
3537
<?php
3638

37-
use Torchlight\Ibis\TorchlightExtension;
38-
3939
require_once __DIR__ . '/vendor/autoload.php';
4040

4141
return [
@@ -45,6 +45,10 @@ return [
4545
'title' => 'Laravel Queues in Action',
4646

4747
// .....
48+
49+
'configure_commonmark' => function ($environment) {
50+
\Torchlight\Ibis\TorchlightExtension::make()->register($environment);
51+
},
4852
];
4953
```
5054

0 commit comments

Comments
 (0)