Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
"name": "tempest/docs",
"type": "project",
"description": "Documentation website for the Tempest framework",
"repositories": [
{"type": "path", "url": "../tempest-framework", "symlink": true}
],
"require": {
"tempest/framework": "^2.14.0",
"tempest/framework": "^3.x-dev",
"league/commonmark": "^2.8.0",
"symfony/yaml": "^7.4.1",
"spatie/yaml-front-matter": "^2.1.1",
Expand Down
212 changes: 147 additions & 65 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@
. ~/.nvm/nvm.sh

# Dependencies
php8.4 /usr/local/bin/composer install --no-dev
php8.5 /usr/local/bin/composer install --no-dev
/home/forge/.bun/bin/bun --version
/home/forge/.bun/bin/bun install

# Tempest
php8.4 tempest cache:clear --force --internal --all
php8.4 tempest discovery:generate
php8.4 tempest migrate:up --force
php8.4 tempest static:clean --force
php8.5 tempest cache:clear --force --internal --all
php8.5 tempest discovery:generate
php8.5 tempest migrate:up --force
php8.5 tempest static:clean --force

# Build front-end
php8.4 tempest docs:pull --no-interaction
php8.4 tempest command-palette:index
php8.5 tempest docs:pull --no-interaction
php8.5 tempest command-palette:index
/home/forge/.bun/bin/bun run build
php8.4 tempest cache:clear --force
php8.4 tempest view:clear --force
php8.4 tempest static:generate --verbose=true
php8.5 tempest cache:clear --force
php8.5 tempest view:clear --force
php8.5 tempest static:generate --verbose=true

# Supervisor
sudo supervisorctl restart all
3 changes: 2 additions & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
declare(strict_types=1);

use Rector\Config\RectorConfig;
use Tempest\Upgrade\Set\TempestSetList;

return RectorConfig::configure()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->withSets([__DIR__ . '/vendor/tempest/framework/packages/upgrade/src/tempest2.php'])
->withSets([TempestSetList::TEMPEST_30])
// ->withPhpSets()
->withTypeCoverageLevel(0)
->withDeadCodeLevel(0)
Expand Down
4 changes: 2 additions & 2 deletions src/Markdown/Alerts/AlertBlockRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
use Override;
use Tempest\View\ViewRenderer;

use function Tempest\get;
use function Tempest\view;
use function Tempest\Container\get;
use function Tempest\View\view;

final class AlertBlockRenderer implements NodeRendererInterface
{
Expand Down
3 changes: 2 additions & 1 deletion src/Markdown/SubChapterExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace App\Markdown;

use function Tempest\Support\Arr\sort_by_callback;
use Tempest\Support\Arr;

use function Tempest\Support\Str\strip_tags;
Expand Down Expand Up @@ -40,7 +41,7 @@ public static function extract(string $content): array
}

return self::buildHierarchy(
headings: Arr\sort_by_callback($headings, static fn (array $a, array $b) => $a['position'] <=> $b['position']),
headings: sort_by_callback($headings, static fn (array $a, array $b) => $a['position'] <=> $b['position']),
);
}

Expand Down
3 changes: 2 additions & 1 deletion src/StoredEvents/CreateStoredEventTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@

namespace App\StoredEvents;

use Tempest\Database\MigratesUp;
use Override;
use Tempest\Database\QueryStatement;
use Tempest\Database\QueryStatements\CreateTableStatement;

final class CreateStoredEventTable implements \Tempest\Database\MigratesUp
final class CreateStoredEventTable implements MigratesUp
{
public string $name {
get => '00-00-0000-create_stored_events_table';
Expand Down
Loading
Loading