-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removing basePath, cleaning up config and adding deprecated directive
- Loading branch information
1 parent
bf55411
commit fe19252
Showing
10 changed files
with
50 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace SymfonyDocsBuilder\Directive; | ||
|
||
use Doctrine\RST\Directives\SubDirective; | ||
use Doctrine\RST\Nodes\Node; | ||
use Doctrine\RST\Parser; | ||
|
||
class DeprecatedDirective extends SubDirective | ||
{ | ||
public function getName(): string | ||
{ | ||
return 'deprecated'; | ||
} | ||
|
||
public function processSub(Parser $parser, ?Node $document, string $variable, string $data, array $options): ?Node | ||
{ | ||
$wrapperDiv = $parser->renderTemplate( | ||
'directives/deprecated.html.twig', | ||
[ | ||
'version' => $data, | ||
] | ||
); | ||
|
||
return $parser->getNodeFactory()->createWrapperNode($document, $wrapperDiv, '</div></div>'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div class="deprecated"><div><span class="versionmodified">Deprecated since version {{ version }}: </span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.