We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9fbb0c7 + 4b3a690 commit 66a263cCopy full SHA for 66a263c
2 files changed
packages/framework/src/Console/Commands/RebuildPageCommand.php
@@ -76,7 +76,7 @@ public function handle(): void
76
public function printFinishMessage(): void
77
{
78
$this->createdSiteFile(Command::fileLink(
79
- Pages::getPage($this->path)->getOutputPath()
+ Hyde::sitePath(Pages::getPage($this->path)->getOutputPath())
80
))->withExecutionTime();
81
}
82
packages/framework/tests/Feature/Commands/RebuildPageCommandTest.php
@@ -16,7 +16,9 @@ public function testHandleIsSuccessfulWithValidPath()
16
17
$this->file('_pages/test-page.md', 'foo');
18
19
- $this->artisan('rebuild _pages/test-page.md')->assertExitCode(0);
+ $this->artisan('rebuild _pages/test-page.md')
20
+ ->expectsOutputToContain('_site/test-page.html')
21
+ ->assertExitCode(0);
22
23
$this->assertFileExists(Hyde::path('_site/test-page.html'));
24
0 commit comments