Skip to content

Commit 5abf911

Browse files
committed
fix docs config
1 parent adc8484 commit 5abf911

File tree

7 files changed

+8
-26
lines changed

7 files changed

+8
-26
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Documentation conventions
2+

.ai/guidelines/xentral-testing.blade.php

Lines changed: 0 additions & 20 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ coverage
77
.phpunit.result.cache
88
/.idea
99
.php-cs-fixer.cache
10-
qase.config.json
10+
qase.config.json
11+
docs

src/Console/Commands/GenerateMKDocsCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ public function handle(MkDocsGenerator $generator): int
102102

103103
private function extractDocumentationNodes(): array
104104
{
105-
dd(config('docs'));
106105
$parser = (new ParserFactory)->createForNewestSupportedVersion();
107106
$files = Finder::create()
108107
->files()

src/DocsServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class DocsServiceProvider extends ServiceProvider
1010
{
1111
public function boot(): void
1212
{
13-
$this->mergeConfigFrom(__DIR__.'/../config/docs.php', 'xentral-docs');
13+
$this->mergeConfigFrom(__DIR__.'/../config/docs.php', 'docs');
1414
$this->publishes([
1515
dirname(__DIR__).'/.ai/guidelines/documentation.blade.php' => base_path('.ai/guidelines/documentation.blade.php'),
1616
], 'xentral-docs');

workbench/app/Providers/WorkbenchServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class WorkbenchServiceProvider extends ServiceProvider
1313
*/
1414
public function register(): void
1515
{
16-
$this->mergeConfigFrom(dirname(__DIR__, 2).'/config/docs.php', 'xentral-docs');
16+
$this->mergeConfigFrom(dirname(__DIR__, 2).'/config/docs.php', 'docs');
1717
$this->app->bind(GuidelineComposer::class, PackageGuidelineComposer::class);
1818
}
1919

workbench/config/docs.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php declare(strict_types=1);
22

33
return [
4-
'paths' => [dirname(__DIR__).'/src'],
5-
'output' => base_path('docs'),
4+
'paths' => [dirname(__DIR__, 2).'/src', dirname(__DIR__).'/app'],
5+
'output' => dirname(__DIR__, 2).'/docs',
66
'commands' => [
77
// {path} and {port} will be replaced with the configured/passed values
88
'build' => 'docker run --rm -v {path}:/docs squidfunk/mkdocs-material build',

0 commit comments

Comments
 (0)