initial COmmit: Add KB Antora Importer plugin files
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace KbAntoraImporter\Antora;
|
||||
|
||||
final class AntoraResourceResolver
|
||||
{
|
||||
public function imagePath(string $imageName, string $module = 'ROOT'): string
|
||||
{
|
||||
return 'modules/' . trim($module, '/') . '/images/' . ltrim($imageName, '/');
|
||||
}
|
||||
|
||||
public function partialPath(string $partialName, string $module = 'ROOT'): string
|
||||
{
|
||||
return 'modules/' . trim($module, '/') . '/partials/' . ltrim($partialName, '/');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user