Skip to content

Commit

Permalink
Merge pull request #631 from jaapio/cleanup/autofixes
Browse files Browse the repository at this point in the history
Remove unneeded autofixes
  • Loading branch information
SenseException authored Oct 22, 2024
2 parents f590d01 + 794f070 commit 9ed0421
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/Docs/RST/RSTCopier.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ private function fixRSTSyntax(Project $project, string $content): string
$content = str_replace('.. Note::', '.. note::', $content);

// fix :maxdepth: to :depth:
$content = str_replace(':maxdepth:', ':depth:', $content);
$content = str_replace('toctree::', 'menu::', $content);

// get rid of .. include:: toc.rst
Expand Down Expand Up @@ -141,9 +140,6 @@ private function fixRSTSyntax(Project $project, string $content): string

assert(is_string($content));

// replace .. code:: with .. code-block::
$content = str_replace('.. code::', '.. code-block::', $content);

// fix list syntax
$content = str_replace("\n- \n", "\n- ", $content);

Expand Down Expand Up @@ -176,11 +172,6 @@ private function fixRSTSyntax(Project $project, string $content): string
$content = str_replace('.. sidebar::', '', $content);
}

// we don't support :term:`*` syntax
$content = preg_replace('/:term:`(.*)`/', '$1', $content);

assert(is_string($content));

return $content;
}

Expand Down

0 comments on commit 9ed0421

Please sign in to comment.