Skip to content

Commit e06a7bc

Browse files
committed
add desktop repo to release notes
1 parent fc2ed7c commit e06a7bc

File tree

2 files changed

+28
-6
lines changed

2 files changed

+28
-6
lines changed

app/Support/GitHub.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,26 @@ class GitHub
1313

1414
public const PACKAGE_LARAVEL = 'nativephp/laravel';
1515

16+
public const PACKAGE_DESKTOP = 'nativephp/desktop';
17+
1618
public const PACKAGE_PHP_BIN = 'nativephp/php-bin';
1719

1820
public function __construct(
1921
private string $package
2022
) {}
2123

24+
public static function desktop(): static
25+
{
26+
return new static(static::PACKAGE_DESKTOP);
27+
}
28+
29+
// V1
2230
public static function electron(): static
2331
{
2432
return new static(static::PACKAGE_ELECTRON);
2533
}
2634

35+
// V1
2736
public static function laravel(): static
2837
{
2938
return new static(static::PACKAGE_LARAVEL);

resources/views/docs/desktop/2/getting-started/releasenotes.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: Release Notes
33
order: 1100
44
---
55

6-
## NativePHP/electron
7-
@forelse (\App\Support\GitHub::electron()->releases()->take(10) as $release)
6+
## NativePHP/desktop
7+
@forelse (\App\Support\GitHub::desktop()->releases()->take(10) as $release)
88
### {{ $release->name }}
99
**Released: {{ \Carbon\Carbon::parse($release->published_at)->format('F j, Y') }}**
1010

@@ -15,8 +15,8 @@ order: 1100
1515
Not to worry, you can head over to GitHub to see the [latest release notes](https://github.com/NativePHP/electron/releases).
1616
@endforelse
1717

18-
## NativePHP/laravel
19-
@forelse (\App\Support\GitHub::laravel()->releases()->take(10) as $release)
18+
## NativePHP/php-bin
19+
@forelse (\App\Support\GitHub::phpBin()->releases()->take(10) as $release)
2020
### {{ $release->name }}
2121
**Released: {{ \Carbon\Carbon::parse($release->published_at)->format('F j, Y') }}**
2222

@@ -27,8 +27,8 @@ Not to worry, you can head over to GitHub to see the [latest release notes](http
2727
Not to worry, you can head over to GitHub to see the [latest release notes](https://github.com/NativePHP/electron/releases).
2828
@endforelse
2929

30-
## NativePHP/php-bin
31-
@forelse (\App\Support\GitHub::phpBin()->releases()->take(10) as $release)
30+
## NativePHP/electron (v1)
31+
@forelse (\App\Support\GitHub::electron()->releases()->take(10) as $release)
3232
### {{ $release->name }}
3333
**Released: {{ \Carbon\Carbon::parse($release->published_at)->format('F j, Y') }}**
3434

@@ -38,3 +38,16 @@ Not to worry, you can head over to GitHub to see the [latest release notes](http
3838
## We couldn't show you the latest release notes at this time.
3939
Not to worry, you can head over to GitHub to see the [latest release notes](https://github.com/NativePHP/electron/releases).
4040
@endforelse
41+
42+
## NativePHP/laravel (v1)
43+
@forelse (\App\Support\GitHub::laravel()->releases()->take(10) as $release)
44+
### {{ $release->name }}
45+
**Released: {{ \Carbon\Carbon::parse($release->published_at)->format('F j, Y') }}**
46+
47+
{{ $release->getBodyForMarkdown() }}
48+
---
49+
@empty
50+
## We couldn't show you the latest release notes at this time.
51+
Not to worry, you can head over to GitHub to see the [latest release notes](https://github.com/NativePHP/electron/releases).
52+
@endforelse
53+

0 commit comments

Comments
 (0)