Update website
This commit is contained in:
parent
4413528994
commit
1d90fbf296
6865 changed files with 1091082 additions and 0 deletions
245
vendor/doctrine/rst-parser/tests/Functional/FunctionalTest.php
vendored
Normal file
245
vendor/doctrine/rst-parser/tests/Functional/FunctionalTest.php
vendored
Normal file
|
@ -0,0 +1,245 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Doctrine\Tests\RST\Functional;
|
||||
|
||||
use Doctrine\RST\Builder;
|
||||
use Doctrine\RST\Configuration;
|
||||
use Doctrine\RST\Formats\Format;
|
||||
use Doctrine\RST\Kernel;
|
||||
use Doctrine\RST\Parser;
|
||||
use Exception;
|
||||
use Gajus\Dindent\Indenter;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Finder\Finder;
|
||||
use Symfony\Component\Finder\SplFileInfo;
|
||||
use Throwable;
|
||||
|
||||
use function array_map;
|
||||
use function assert;
|
||||
use function explode;
|
||||
use function file_exists;
|
||||
use function file_get_contents;
|
||||
use function implode;
|
||||
use function in_array;
|
||||
use function is_string;
|
||||
use function rtrim;
|
||||
use function setlocale;
|
||||
use function sprintf;
|
||||
use function str_replace;
|
||||
use function strpos;
|
||||
use function trim;
|
||||
|
||||
use const LC_ALL;
|
||||
|
||||
class FunctionalTest extends TestCase
|
||||
{
|
||||
private const RENDER_DOCUMENT_FILES = ['main-directive'];
|
||||
private const SKIP_INDENTER_FILES = ['code-block-diff'];
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
setlocale(LC_ALL, 'en_US.utf8');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Format::* $format
|
||||
*
|
||||
* @dataProvider getBuildTests
|
||||
*/
|
||||
public function testBuild(
|
||||
string $file,
|
||||
Parser $parser,
|
||||
string $format,
|
||||
string $expected
|
||||
): void {
|
||||
$configuration = new Configuration();
|
||||
$configuration->setFileExtension(Format::HTML);
|
||||
$configuration->setUseCachedMetas(false);
|
||||
$kernel = new Kernel($configuration);
|
||||
$builder = new Builder($kernel);
|
||||
|
||||
$builder->build(__DIR__ . '/tests/build/' . $file, __DIR__ . '/output/build/' . $file);
|
||||
|
||||
$outputFileFinder = new Finder();
|
||||
$outputFileFinder
|
||||
->files()
|
||||
->in(__DIR__ . '/output/build/' . $file)
|
||||
->name('index.html');
|
||||
|
||||
foreach ($outputFileFinder as $outputFile) {
|
||||
$rendered = $outputFile->getContents();
|
||||
self::assertSame(
|
||||
$this->trimTrailingWhitespace($expected),
|
||||
$this->trimTrailingWhitespace($rendered)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param 'render'|'renderAll' $renderMethod
|
||||
* @param Format::* $format
|
||||
*
|
||||
* @dataProvider getRenderTests
|
||||
*/
|
||||
public function testRender(
|
||||
string $file,
|
||||
Parser $parser,
|
||||
string $renderMethod,
|
||||
string $format,
|
||||
string $rst,
|
||||
string $expected,
|
||||
bool $useIndenter = true
|
||||
): void {
|
||||
$expectedLines = explode("\n", $expected);
|
||||
$firstLine = $expectedLines[0];
|
||||
|
||||
if (strpos($firstLine, 'Exception:') === 0) {
|
||||
/** @psalm-var class-string<Throwable> */
|
||||
$exceptionClass = str_replace('Exception: ', '', $firstLine);
|
||||
$this->expectException($exceptionClass);
|
||||
|
||||
$expectedExceptionMessage = $expectedLines;
|
||||
unset($expectedExceptionMessage[0]);
|
||||
$expectedExceptionMessage = implode("\n", $expectedExceptionMessage);
|
||||
|
||||
$this->expectExceptionMessage($expectedExceptionMessage);
|
||||
}
|
||||
|
||||
$document = $parser->parse($rst);
|
||||
|
||||
$rendered = $document->$renderMethod();
|
||||
|
||||
if ($format === Format::HTML && $useIndenter) {
|
||||
$indenter = new Indenter();
|
||||
$rendered = $indenter->indent($rendered);
|
||||
}
|
||||
|
||||
self::assertSame(
|
||||
$this->trimTrailingWhitespace($expected),
|
||||
$this->trimTrailingWhitespace($rendered)
|
||||
);
|
||||
}
|
||||
|
||||
/** @return iterable<string, array{string, Parser, 'render'|'renderDocument', Format::*, string, string, bool}> */
|
||||
public function getRenderTests(): iterable
|
||||
{
|
||||
$tests = [];
|
||||
|
||||
foreach ($this->findSubDirectories(__DIR__ . '/tests/render') as $dir) {
|
||||
$rstFilename = $dir->getPathname() . '/' . $dir->getFilename() . '.rst';
|
||||
if (! file_exists($rstFilename)) {
|
||||
throw new Exception(sprintf('Could not find functional test file "%s"', $rstFilename));
|
||||
}
|
||||
|
||||
$rst = file_get_contents($rstFilename);
|
||||
assert(is_string($rst));
|
||||
$basename = $dir->getFilename();
|
||||
|
||||
foreach ($this->findRstFiles($dir) as $file) {
|
||||
$format = $file->getExtension();
|
||||
if (! in_array($format, [Format::HTML, Format::LATEX], true)) {
|
||||
throw new Exception(sprintf('Unexpected file extension in "%s"', $file->getPathname()));
|
||||
}
|
||||
|
||||
if (strpos($file->getFilename(), $dir->getFilename()) !== 0) {
|
||||
throw new Exception(sprintf('Test filename "%s" does not match directory name', $file->getPathname()));
|
||||
}
|
||||
|
||||
$renderMethod = in_array($basename, self::RENDER_DOCUMENT_FILES, true)
|
||||
? 'renderDocument'
|
||||
: 'render';
|
||||
|
||||
yield $basename . '_' . $format => [
|
||||
$basename,
|
||||
$this->getParser($format, __DIR__ . '/tests/render/' . $basename),
|
||||
$renderMethod,
|
||||
$format,
|
||||
$rst,
|
||||
trim($file->getContents()),
|
||||
! in_array($basename, self::SKIP_INDENTER_FILES, true),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** @return iterable<string, array{string, Parser, Format::*, string}> */
|
||||
public function getBuildTests(): iterable
|
||||
{
|
||||
foreach ($this->findSubDirectories(__DIR__ . '/tests/build') as $dir) {
|
||||
$rstFilename = $dir->getPathname() . '/index.rst';
|
||||
if (! file_exists($rstFilename)) {
|
||||
throw new Exception(sprintf('Could not find functional test file "%s"', $rstFilename));
|
||||
}
|
||||
|
||||
$basename = $dir->getFilename();
|
||||
|
||||
foreach ($this->findRstFiles($dir) as $file) {
|
||||
$format = $file->getExtension();
|
||||
if (! in_array($format, [Format::HTML, Format::LATEX], true)) {
|
||||
throw new Exception(sprintf('Unexpected file extension in "%s"', $file->getPathname()));
|
||||
}
|
||||
|
||||
if (strpos($file->getFilename(), 'index') !== 0) {
|
||||
throw new Exception(sprintf('Test filename "%s" does not match index', $file->getPathname()));
|
||||
}
|
||||
|
||||
yield $basename . '_' . $format => [
|
||||
$basename,
|
||||
$this->getParser($format, __DIR__ . '/tests/build/' . $basename),
|
||||
$format,
|
||||
trim($file->getContents()),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** @return iterable<SplFileInfo> */
|
||||
private function findSubDirectories(string $directory): iterable
|
||||
{
|
||||
$finder = new Finder();
|
||||
|
||||
return $finder
|
||||
->directories()
|
||||
->in($directory);
|
||||
}
|
||||
|
||||
/** @return iterable<SplFileInfo> */
|
||||
private function findRstFiles(SplFileInfo $dir): iterable
|
||||
{
|
||||
$fileFinder = new Finder();
|
||||
|
||||
return $fileFinder
|
||||
->files()
|
||||
->in($dir->getPathname())
|
||||
->notName('*.rst');
|
||||
}
|
||||
|
||||
/** @param Format::* $format */
|
||||
private function getParser(string $format, string $currentDirectory): Parser
|
||||
{
|
||||
$configuration = new Configuration();
|
||||
$configuration->setFileExtension($format);
|
||||
$configuration->silentOnError(true);
|
||||
|
||||
$kernel = new Kernel($configuration);
|
||||
$parser = new Parser($kernel);
|
||||
|
||||
$environment = $parser->getEnvironment();
|
||||
$environment->setCurrentDirectory($currentDirectory);
|
||||
|
||||
return $parser;
|
||||
}
|
||||
|
||||
private function trimTrailingWhitespace(string $string): string
|
||||
{
|
||||
$lines = explode("\n", $string);
|
||||
|
||||
$lines = array_map(static function (string $line): string {
|
||||
return rtrim($line);
|
||||
}, $lines);
|
||||
|
||||
return trim(implode("\n", $lines));
|
||||
}
|
||||
}
|
13
vendor/doctrine/rst-parser/tests/Functional/tests/build/toctree-titlesonly/index.html
vendored
Normal file
13
vendor/doctrine/rst-parser/tests/Functional/tests/build/toctree-titlesonly/index.html
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="toc"><ul><li id="page1-html" class="toc-item"><a href="page1.html">Page 1</a></li><li id="page2-html" class="toc-item"><a href="page2.html">Page 2</a></li></ul></div>
|
||||
|
||||
</body>
|
||||
</html>
|
6
vendor/doctrine/rst-parser/tests/Functional/tests/build/toctree-titlesonly/index.rst
vendored
Normal file
6
vendor/doctrine/rst-parser/tests/Functional/tests/build/toctree-titlesonly/index.rst
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
|
||||
.. toctree::
|
||||
:titlesonly:
|
||||
|
||||
page1
|
||||
page2
|
8
vendor/doctrine/rst-parser/tests/Functional/tests/build/toctree-titlesonly/page1.rst
vendored
Normal file
8
vendor/doctrine/rst-parser/tests/Functional/tests/build/toctree-titlesonly/page1.rst
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
Page 1
|
||||
======
|
||||
|
||||
Chapter 1
|
||||
---------
|
||||
|
||||
Chapter 2
|
||||
---------
|
4
vendor/doctrine/rst-parser/tests/Functional/tests/build/toctree-titlesonly/page2.rst
vendored
Normal file
4
vendor/doctrine/rst-parser/tests/Functional/tests/build/toctree-titlesonly/page2.rst
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
Page 2
|
||||
======
|
||||
|
||||
Lorem Ipsum Dolor
|
16
vendor/doctrine/rst-parser/tests/Functional/tests/build/toctree/index.html
vendored
Normal file
16
vendor/doctrine/rst-parser/tests/Functional/tests/build/toctree/index.html
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="section" id="index">
|
||||
<h1>index</h1>
|
||||
<div class="toc"><ul><li id="page1-html" class="toc-item"><a href="page1.html">Page 1</a><ul><li id="page1-html-chapter-1" class="toc-item"><a href="page1.html#chapter-1">Chapter 1</a></li><li id="page1-html-chapter-2" class="toc-item"><a href="page1.html#chapter-2">Chapter 2</a></li></ul></li><li id="page2-html" class="toc-item"><a href="page2.html">Page 2</a></li></ul></div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
7
vendor/doctrine/rst-parser/tests/Functional/tests/build/toctree/index.rst
vendored
Normal file
7
vendor/doctrine/rst-parser/tests/Functional/tests/build/toctree/index.rst
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
index
|
||||
=====
|
||||
|
||||
.. toctree::
|
||||
|
||||
page1
|
||||
page2
|
8
vendor/doctrine/rst-parser/tests/Functional/tests/build/toctree/page1.rst
vendored
Normal file
8
vendor/doctrine/rst-parser/tests/Functional/tests/build/toctree/page1.rst
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
Page 1
|
||||
======
|
||||
|
||||
Chapter 1
|
||||
---------
|
||||
|
||||
Chapter 2
|
||||
---------
|
4
vendor/doctrine/rst-parser/tests/Functional/tests/build/toctree/page2.rst
vendored
Normal file
4
vendor/doctrine/rst-parser/tests/Functional/tests/build/toctree/page2.rst
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
Page 2
|
||||
======
|
||||
|
||||
Lorem Ipsum Dolor
|
1
vendor/doctrine/rst-parser/tests/Functional/tests/render/anchor-failure/anchor-failure.html
vendored
Normal file
1
vendor/doctrine/rst-parser/tests/Functional/tests/render/anchor-failure/anchor-failure.html
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
<p>@Anchor Section</p>
|
1
vendor/doctrine/rst-parser/tests/Functional/tests/render/anchor-failure/anchor-failure.rst
vendored
Normal file
1
vendor/doctrine/rst-parser/tests/Functional/tests/render/anchor-failure/anchor-failure.rst
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
`@Anchor Section`_
|
8
vendor/doctrine/rst-parser/tests/Functional/tests/render/anchor/anchor.html
vendored
Normal file
8
vendor/doctrine/rst-parser/tests/Functional/tests/render/anchor/anchor.html
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
<div class="section" id="anchors">
|
||||
<h1>
|
||||
Anchors
|
||||
</h1>
|
||||
<a id="lists"></a>
|
||||
|
||||
<p><a href="#lists">go to lists</a></p>
|
||||
</div>
|
6
vendor/doctrine/rst-parser/tests/Functional/tests/render/anchor/anchor.rst
vendored
Normal file
6
vendor/doctrine/rst-parser/tests/Functional/tests/render/anchor/anchor.rst
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
Anchors
|
||||
-------
|
||||
|
||||
.. _lists:
|
||||
|
||||
`go to lists <#lists>`_
|
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/anchor/anchor.tex
vendored
Normal file
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/anchor/anchor.tex
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
\chapter{Anchors}
|
||||
\label{lists}
|
||||
\ref{#lists}
|
1
vendor/doctrine/rst-parser/tests/Functional/tests/render/anonymous/anonymous.html
vendored
Normal file
1
vendor/doctrine/rst-parser/tests/Functional/tests/render/anonymous/anonymous.html
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
<p>I love <a href="https://github.com/">GitHub</a>, <a href="https://gitlab.com/">GitLab</a> and <a href="https://facebook.com/">Facebook</a>. But I don't affect references to __CLASS__.</p>
|
5
vendor/doctrine/rst-parser/tests/Functional/tests/render/anonymous/anonymous.rst
vendored
Normal file
5
vendor/doctrine/rst-parser/tests/Functional/tests/render/anonymous/anonymous.rst
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
I love GitHub__, GitLab__ and `Facebook`__. But I don't affect references to __CLASS__.
|
||||
|
||||
.. __: https://github.com/
|
||||
.. __: https://gitlab.com/
|
||||
.. __: https://facebook.com/
|
1
vendor/doctrine/rst-parser/tests/Functional/tests/render/anonymous/anonymous.tex
vendored
Normal file
1
vendor/doctrine/rst-parser/tests/Functional/tests/render/anonymous/anonymous.tex
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
I love \href{https://github.com/}{GitHub}, \href{https://gitlab.com/}{GitLab} and \href{https://facebook.com/}{Facebook}. But I don't affect references to __CLASS__.
|
1
vendor/doctrine/rst-parser/tests/Functional/tests/render/bom/bom.html
vendored
Normal file
1
vendor/doctrine/rst-parser/tests/Functional/tests/render/bom/bom.html
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
|
1
vendor/doctrine/rst-parser/tests/Functional/tests/render/bom/bom.rst
vendored
Normal file
1
vendor/doctrine/rst-parser/tests/Functional/tests/render/bom/bom.rst
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
.. Should be a comment, with BOM
|
35
vendor/doctrine/rst-parser/tests/Functional/tests/render/class-directive/class-directive.html
vendored
Normal file
35
vendor/doctrine/rst-parser/tests/Functional/tests/render/class-directive/class-directive.html
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
<p class="special-paragraph1">Test special-paragraph1 1.</p>
|
||||
<p>Test special-paragraph1 2.</p>
|
||||
<p class="special-paragraph2">Test special-paragraph2 1.</p>
|
||||
<p class="special-paragraph2">Test special-paragraph2 2.</p>
|
||||
<div class="note">
|
||||
<p class="special-paragraph3">Test</p>
|
||||
</div>
|
||||
<ul class="special-list">
|
||||
<li class="dash">Test list item 1.</li>
|
||||
<li class="dash">Test list item 2.</li>
|
||||
</ul>
|
||||
<p class="rot-gelb-blau grun-2008">Weird class names.</p>
|
||||
<p class="level1">Level 1</p>
|
||||
<blockquote class="level1">
|
||||
<p class="level2">Level2 1</p>
|
||||
<p class="level2">Level2 2</p>
|
||||
</blockquote>
|
||||
<dl class="special-definition-list">
|
||||
<dt>term 1</dt>
|
||||
<dd> Definition 1 </dd>
|
||||
</dl>
|
||||
<table class="special-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>First col</th>
|
||||
<th>Second col</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Second row</td>
|
||||
<td>Other col</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
49
vendor/doctrine/rst-parser/tests/Functional/tests/render/class-directive/class-directive.rst
vendored
Normal file
49
vendor/doctrine/rst-parser/tests/Functional/tests/render/class-directive/class-directive.rst
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
.. class:: special-paragraph1
|
||||
|
||||
Test special-paragraph1 1.
|
||||
|
||||
Test special-paragraph1 2.
|
||||
|
||||
.. class:: special-paragraph2
|
||||
|
||||
Test special-paragraph2 1.
|
||||
|
||||
Test special-paragraph2 2.
|
||||
|
||||
.. note::
|
||||
|
||||
.. class:: special-paragraph3
|
||||
|
||||
Test
|
||||
|
||||
.. class:: special-list
|
||||
|
||||
- Test list item 1.
|
||||
- Test list item 2.
|
||||
|
||||
.. class:: Rot-Gelb.Blau Grün:+2008
|
||||
|
||||
Weird class names.
|
||||
|
||||
.. class:: level1
|
||||
|
||||
Level 1
|
||||
|
||||
.. class:: level2
|
||||
|
||||
Level2 1
|
||||
|
||||
Level2 2
|
||||
|
||||
.. class:: special-definition-list
|
||||
|
||||
term 1
|
||||
Definition 1
|
||||
|
||||
.. class:: special-table
|
||||
|
||||
=========== ==========
|
||||
First col Second col
|
||||
=========== ==========
|
||||
Second row Other col
|
||||
=========== ==========
|
14
vendor/doctrine/rst-parser/tests/Functional/tests/render/code-block-diff/code-block-diff.html
vendored
Normal file
14
vendor/doctrine/rst-parser/tests/Functional/tests/render/code-block-diff/code-block-diff.html
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
<pre><code class="diff">+ Added line
|
||||
- Removed line
|
||||
Normal line
|
||||
- Removed line
|
||||
+ Added line
|
||||
|
||||
</code></pre>
|
||||
<pre><code class="diff"> Normal line
|
||||
+ Added line
|
||||
- Removed line
|
||||
Normal line
|
||||
- Removed line
|
||||
+ Added line
|
||||
</code></pre>
|
18
vendor/doctrine/rst-parser/tests/Functional/tests/render/code-block-diff/code-block-diff.rst
vendored
Normal file
18
vendor/doctrine/rst-parser/tests/Functional/tests/render/code-block-diff/code-block-diff.rst
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
|
||||
.. code-block:: diff
|
||||
|
||||
+ Added line
|
||||
- Removed line
|
||||
Normal line
|
||||
- Removed line
|
||||
+ Added line
|
||||
|
||||
|
||||
.. code-block:: diff
|
||||
|
||||
Normal line
|
||||
+ Added line
|
||||
- Removed line
|
||||
Normal line
|
||||
- Removed line
|
||||
+ Added line
|
|
@ -0,0 +1,3 @@
|
|||
<pre><code class="">A
|
||||
B C
|
||||
</code></pre>
|
|
@ -0,0 +1,5 @@
|
|||
.. code-block::
|
||||
|
||||
A
|
||||
B
|
||||
C
|
4
vendor/doctrine/rst-parser/tests/Functional/tests/render/code-block/code-block.html
vendored
Normal file
4
vendor/doctrine/rst-parser/tests/Functional/tests/render/code-block/code-block.html
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
<pre><code class="c++">#include <iostream> using namespace std; int main(void)
|
||||
{ cout << "Hello world!" << endl;
|
||||
}
|
||||
</code></pre>
|
10
vendor/doctrine/rst-parser/tests/Functional/tests/render/code-block/code-block.rst
vendored
Normal file
10
vendor/doctrine/rst-parser/tests/Functional/tests/render/code-block/code-block.rst
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
.. code-block:: c++
|
||||
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main(void)
|
||||
{
|
||||
cout << "Hello world!" << endl;
|
||||
}
|
4
vendor/doctrine/rst-parser/tests/Functional/tests/render/code-java/code-java.html
vendored
Normal file
4
vendor/doctrine/rst-parser/tests/Functional/tests/render/code-java/code-java.html
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
<pre><code class="java">protected void f()
|
||||
{
|
||||
}
|
||||
</code></pre>
|
5
vendor/doctrine/rst-parser/tests/Functional/tests/render/code-java/code-java.rst
vendored
Normal file
5
vendor/doctrine/rst-parser/tests/Functional/tests/render/code-java/code-java.rst
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
.. code-block:: java
|
||||
|
||||
protected void f()
|
||||
{
|
||||
}
|
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/code-list/code-list.html
vendored
Normal file
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/code-list/code-list.html
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
<pre><code class="">* Testing
|
||||
* Hey
|
||||
</code></pre>
|
6
vendor/doctrine/rst-parser/tests/Functional/tests/render/code-list/code-list.rst
vendored
Normal file
6
vendor/doctrine/rst-parser/tests/Functional/tests/render/code-list/code-list.rst
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
.. This should not be interpreted as a list
|
||||
|
||||
.. code-block::
|
||||
|
||||
* Testing
|
||||
* Hey
|
|
@ -0,0 +1,2 @@
|
|||
<pre><code class="">Test code block with whitespace.
|
||||
</code></pre>
|
|
@ -0,0 +1,3 @@
|
|||
::
|
||||
|
||||
Test code block with whitespace.
|
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/code/code.html
vendored
Normal file
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/code/code.html
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
<p>Code block:</p>
|
||||
<pre><code class="">This is a code block You hou!
|
||||
</code></pre>
|
5
vendor/doctrine/rst-parser/tests/Functional/tests/render/code/code.rst
vendored
Normal file
5
vendor/doctrine/rst-parser/tests/Functional/tests/render/code/code.rst
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
Code block::
|
||||
|
||||
This is a code block
|
||||
|
||||
You hou!
|
8
vendor/doctrine/rst-parser/tests/Functional/tests/render/code/code.tex
vendored
Normal file
8
vendor/doctrine/rst-parser/tests/Functional/tests/render/code/code.tex
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
Code block:
|
||||
\lstset{language=}
|
||||
\begin{lstlisting}
|
||||
This is a code block
|
||||
|
||||
You hou!
|
||||
|
||||
\end{lstlisting}
|
1
vendor/doctrine/rst-parser/tests/Functional/tests/render/comment-3/comment-3.html
vendored
Normal file
1
vendor/doctrine/rst-parser/tests/Functional/tests/render/comment-3/comment-3.html
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
<p>... This is not a comment!</p>
|
2
vendor/doctrine/rst-parser/tests/Functional/tests/render/comment-3/comment-3.rst
vendored
Normal file
2
vendor/doctrine/rst-parser/tests/Functional/tests/render/comment-3/comment-3.rst
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
.. This is a comment!
|
||||
... This is not a comment!
|
4
vendor/doctrine/rst-parser/tests/Functional/tests/render/comment-empty/comment-empty.html
vendored
Normal file
4
vendor/doctrine/rst-parser/tests/Functional/tests/render/comment-empty/comment-empty.html
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
<p>this is not a comment</p>
|
||||
<blockquote>
|
||||
<p>this is a blockquote</p>
|
||||
</blockquote>
|
6
vendor/doctrine/rst-parser/tests/Functional/tests/render/comment-empty/comment-empty.rst
vendored
Normal file
6
vendor/doctrine/rst-parser/tests/Functional/tests/render/comment-empty/comment-empty.rst
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
..
|
||||
this is not a comment
|
||||
|
||||
..
|
||||
|
||||
this is a blockquote
|
2
vendor/doctrine/rst-parser/tests/Functional/tests/render/comment/comment.html
vendored
Normal file
2
vendor/doctrine/rst-parser/tests/Functional/tests/render/comment/comment.html
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
<p>Text before</p>
|
||||
<p>Text after</p>
|
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/comment/comment.rst
vendored
Normal file
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/comment/comment.rst
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
Text before
|
||||
.. Testing comment
|
||||
Text after
|
|
@ -0,0 +1 @@
|
|||
<p>this is not a comment</p>
|
|
@ -0,0 +1,3 @@
|
|||
.. header comment
|
||||
this is a comment
|
||||
this is not a comment
|
1
vendor/doctrine/rst-parser/tests/Functional/tests/render/comments-block/comments-block.html
vendored
Normal file
1
vendor/doctrine/rst-parser/tests/Functional/tests/render/comments-block/comments-block.html
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
<p>this is not a comment</p>
|
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/comments-block/comments-block.rst
vendored
Normal file
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/comments-block/comments-block.rst
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
..
|
||||
this is a comment
|
||||
this is not a comment
|
1
vendor/doctrine/rst-parser/tests/Functional/tests/render/comments/comments.html
vendored
Normal file
1
vendor/doctrine/rst-parser/tests/Functional/tests/render/comments/comments.html
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
|
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/comments/comments.rst
vendored
Normal file
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/comments/comments.rst
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
.. ==================================================
|
||||
.. FOR YOUR INFORMATION
|
||||
.. --------------------------------------------------
|
6
vendor/doctrine/rst-parser/tests/Functional/tests/render/crlf/crlf.html
vendored
Normal file
6
vendor/doctrine/rst-parser/tests/Functional/tests/render/crlf/crlf.html
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
<div class="section" id="hello-world">
|
||||
<h1>
|
||||
Hello world
|
||||
</h1>
|
||||
<p>Hey!</p>
|
||||
</div>
|
4
vendor/doctrine/rst-parser/tests/Functional/tests/render/crlf/crlf.rst
vendored
Normal file
4
vendor/doctrine/rst-parser/tests/Functional/tests/render/crlf/crlf.rst
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
Hello world
|
||||
===========
|
||||
|
||||
Hey!
|
1
vendor/doctrine/rst-parser/tests/Functional/tests/render/css/css.html
vendored
Normal file
1
vendor/doctrine/rst-parser/tests/Functional/tests/render/css/css.html
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
<p>Testing page!</p>
|
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/css/css.rst
vendored
Normal file
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/css/css.rst
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
.. stylesheet:: style.css
|
||||
|
||||
Testing page!
|
106
vendor/doctrine/rst-parser/tests/Functional/tests/render/definition-list/definition-list.html
vendored
Normal file
106
vendor/doctrine/rst-parser/tests/Functional/tests/render/definition-list/definition-list.html
vendored
Normal file
|
@ -0,0 +1,106 @@
|
|||
<div class="section" id="test">
|
||||
<h1>
|
||||
Test
|
||||
</h1>
|
||||
<div class="note">
|
||||
<p>Test</p>
|
||||
</div>
|
||||
<p>Text around the definition list.</p>
|
||||
<dl>
|
||||
<dt>term 1</dt>
|
||||
<dd> Definition 1 </dd>
|
||||
<dt>term 2</dt>
|
||||
<dd>
|
||||
<p class="first">Definition 1</p>
|
||||
<p>Definition 2</p>
|
||||
<p class="last">Definition 3</p>
|
||||
</dd>
|
||||
<dt> term 3 <span class="classifier-delimiter">:</span> <span class="classifier">classifier</span> </dt>
|
||||
<dd> Definition 1 </dd>
|
||||
<dt> term 4 <span class="classifier-delimiter">:</span> <span class="classifier">classifier one</span> <span class="classifier-delimiter">:</span> <span class="classifier">classifier two</span> </dt>
|
||||
<dd> Definition 1 </dd>
|
||||
<dt> term with & <span class="classifier-delimiter">:</span> <span class="classifier">classifier with &</span> </dt>
|
||||
<dd> Definition 1 with & </dd>
|
||||
<dt> term with & <span class="classifier-delimiter">:</span> <span class="classifier">classifier with &</span> <span class="classifier-delimiter">:</span> <span class="classifier">classifier with &</span> </dt>
|
||||
<dd>
|
||||
<p class="first">Definition 1 with &</p>
|
||||
<p class="last">Definition 2 with &</p>
|
||||
</dd>
|
||||
<dt>
|
||||
<code>term 5</code> <span class="classifier-delimiter">:</span>
|
||||
<span class="classifier"><code>classifier</code></span>
|
||||
</dt>
|
||||
<dd> Definition 1 </dd>
|
||||
<dt><strong>Complex:</strong> <code>int</code></dt>
|
||||
<dd> Colon must be surrounded by spaces to be a term identifier </dd>
|
||||
<dt>multi-line definition term</dt>
|
||||
<dd>
|
||||
<p class="first">Definition 1 line 1
|
||||
Definition 1 line 2</p>
|
||||
<p class="last">Definition 2 line 1
|
||||
Definition 2 line 2</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<div class="section" id="definition-list-in-a-directive">
|
||||
<h1>
|
||||
Definition List in a Directive
|
||||
</h1>
|
||||
<div class="note">
|
||||
<p><strong>Definition list in a directive</strong></p>
|
||||
<dl>
|
||||
<dt>term 1</dt>
|
||||
<dd>
|
||||
<p class="first">Definition 1 line 1
|
||||
Definition 1 line 2</p>
|
||||
<p class="last">Definition 2</p>
|
||||
</dd>
|
||||
<dt>term 2</dt>
|
||||
<dd>
|
||||
<p class="first">Definition 1 line 1
|
||||
Definition 1 line 2</p>
|
||||
<p class="last">Definition 2</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="definition-list-surrounded-by-paragraphs">
|
||||
<h1>
|
||||
Definition List Surrounded by Paragraphs
|
||||
</h1>
|
||||
<p>Paragraph 1</p>
|
||||
<dl>
|
||||
<dt>term 1</dt>
|
||||
<dd> definition 1
|
||||
definition 2 </dd>
|
||||
</dl>
|
||||
<p>Paragraph 2</p>
|
||||
<dl>
|
||||
<dt>term 2</dt>
|
||||
<dd> definition 1
|
||||
definition 2 </dd>
|
||||
</dl>
|
||||
</div>
|
||||
<div class="section" id="directive-in-definition-list">
|
||||
<h1>
|
||||
Directive in definition list
|
||||
</h1>
|
||||
<dl>
|
||||
<dt>term 1</dt>
|
||||
<dd>
|
||||
<div class="note">
|
||||
<p>directive in definition list</p>
|
||||
</div>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<div class="section" id="not-a-definition-list">
|
||||
<h1>
|
||||
Not a definition list
|
||||
</h1>
|
||||
<p>Single line followed by a blank line</p>
|
||||
<blockquote>
|
||||
<p>This line is indented, but because of the blank line, it should
|
||||
not be considered a term. It is a blockquote.</p>
|
||||
</blockquote>
|
||||
</div>
|
94
vendor/doctrine/rst-parser/tests/Functional/tests/render/definition-list/definition-list.rst
vendored
Normal file
94
vendor/doctrine/rst-parser/tests/Functional/tests/render/definition-list/definition-list.rst
vendored
Normal file
|
@ -0,0 +1,94 @@
|
|||
Test
|
||||
====
|
||||
|
||||
.. note::
|
||||
Test
|
||||
|
||||
Text around the definition list.
|
||||
|
||||
term 1
|
||||
Definition 1
|
||||
|
||||
term 2
|
||||
Definition 1
|
||||
|
||||
Definition 2
|
||||
|
||||
Definition 3
|
||||
|
||||
term 3 : classifier
|
||||
Definition 1
|
||||
|
||||
term 4 : classifier one : classifier two
|
||||
Definition 1
|
||||
|
||||
term with & : classifier with &
|
||||
Definition 1 with &
|
||||
|
||||
term with & : classifier with & : classifier with &
|
||||
Definition 1 with &
|
||||
|
||||
Definition 2 with &
|
||||
|
||||
``term 5`` : ``classifier``
|
||||
Definition 1
|
||||
|
||||
**Complex:** ``int``
|
||||
Colon must be surrounded by spaces to be a term identifier
|
||||
|
||||
multi-line definition term
|
||||
Definition 1 line 1
|
||||
Definition 1 line 2
|
||||
|
||||
Definition 2 line 1
|
||||
Definition 2 line 2
|
||||
|
||||
Definition List in a Directive
|
||||
==============================
|
||||
|
||||
.. note::
|
||||
|
||||
**Definition list in a directive**
|
||||
|
||||
term 1
|
||||
Definition 1 line 1
|
||||
Definition 1 line 2
|
||||
|
||||
Definition 2
|
||||
|
||||
term 2
|
||||
Definition 1 line 1
|
||||
Definition 1 line 2
|
||||
|
||||
Definition 2
|
||||
|
||||
Definition List Surrounded by Paragraphs
|
||||
=========================================
|
||||
|
||||
Paragraph 1
|
||||
|
||||
term 1
|
||||
definition 1
|
||||
definition 2
|
||||
|
||||
Paragraph 2
|
||||
|
||||
term 2
|
||||
definition 1
|
||||
definition 2
|
||||
|
||||
Directive in definition list
|
||||
============================
|
||||
|
||||
term 1
|
||||
.. note::
|
||||
|
||||
directive in definition list
|
||||
|
||||
Not a definition list
|
||||
=====================
|
||||
|
||||
Single line followed by a blank line
|
||||
|
||||
This line is indented, but because of the blank line, it should
|
||||
not be considered a term. It is a blockquote.
|
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/div/div.html
vendored
Normal file
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/div/div.html
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
<div class="testing">
|
||||
<p>Hello!</p>
|
||||
</div>
|
2
vendor/doctrine/rst-parser/tests/Functional/tests/render/div/div.rst
vendored
Normal file
2
vendor/doctrine/rst-parser/tests/Functional/tests/render/div/div.rst
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
.. div:: testing
|
||||
Hello!
|
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/empty-p/empty-p.html
vendored
Normal file
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/empty-p/empty-p.html
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
<p>Empty paragraph:</p>
|
||||
<pre><code class="">Code </code></pre>
|
||||
<p>Hello</p>
|
16
vendor/doctrine/rst-parser/tests/Functional/tests/render/empty-p/empty-p.rst
vendored
Normal file
16
vendor/doctrine/rst-parser/tests/Functional/tests/render/empty-p/empty-p.rst
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
Empty paragraph:
|
||||
|
||||
::
|
||||
|
||||
Code
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Hello
|
0
vendor/doctrine/rst-parser/tests/Functional/tests/render/empty/empty.html
vendored
Normal file
0
vendor/doctrine/rst-parser/tests/Functional/tests/render/empty/empty.html
vendored
Normal file
0
vendor/doctrine/rst-parser/tests/Functional/tests/render/empty/empty.rst
vendored
Normal file
0
vendor/doctrine/rst-parser/tests/Functional/tests/render/empty/empty.rst
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
<p>The second line of each enumerated list item is checked for validity:</p>
|
||||
<p>1. This is not a list.
|
||||
It's a paragraph starting with a number.</p>
|
||||
<p>1. Single line paragraphs starting with a number may use an escape.</p>
|
|
@ -0,0 +1,6 @@
|
|||
The second line of each enumerated list item is checked for validity:
|
||||
|
||||
1. This is not a list.
|
||||
It's a paragraph starting with a number.
|
||||
|
||||
\1. Single line paragraphs starting with a number may use an escape.
|
23
vendor/doctrine/rst-parser/tests/Functional/tests/render/enumerated/enumerated.html
vendored
Normal file
23
vendor/doctrine/rst-parser/tests/Functional/tests/render/enumerated/enumerated.html
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
<p>Testing an arabic numerals list:</p>
|
||||
<ol class="arabic">
|
||||
<li>First item</li>
|
||||
<li>Second item</li>
|
||||
<li>Third item
|
||||
Multiline</li>
|
||||
</ol>
|
||||
<p>And an auto-enumerated list:</p>
|
||||
<ol class="arabic">
|
||||
<li>First item
|
||||
Multiline</li>
|
||||
<li>Second item</li>
|
||||
</ol>
|
||||
<p>Using parentheses:</p>
|
||||
<ol class="arabic">
|
||||
<li>First item</li>
|
||||
<li>Second item</li>
|
||||
</ol>
|
||||
<p>Using right-parenthesis:</p>
|
||||
<ol class="arabic">
|
||||
<li>First item</li>
|
||||
<li>Second item</li>
|
||||
</ol>
|
22
vendor/doctrine/rst-parser/tests/Functional/tests/render/enumerated/enumerated.rst
vendored
Normal file
22
vendor/doctrine/rst-parser/tests/Functional/tests/render/enumerated/enumerated.rst
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
Testing an arabic numerals list:
|
||||
|
||||
1. First item
|
||||
2. Second item
|
||||
3. Third item
|
||||
Multiline
|
||||
|
||||
And an auto-enumerated list:
|
||||
|
||||
#. First item
|
||||
Multiline
|
||||
#. Second item
|
||||
|
||||
Using parentheses:
|
||||
|
||||
(1) First item
|
||||
(2) Second item
|
||||
|
||||
Using right-parenthesis:
|
||||
|
||||
1) First item
|
||||
2) Second item
|
2
vendor/doctrine/rst-parser/tests/Functional/tests/render/escape/escape.html
vendored
Normal file
2
vendor/doctrine/rst-parser/tests/Functional/tests/render/escape/escape.html
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
<p>Testing that this is escaped: <script></p>
|
||||
<p>And escape characters are ignored, but this one isn't: \stdClass</p>
|
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/escape/escape.rst
vendored
Normal file
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/escape/escape.rst
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
Testing that this is escaped: <script>
|
||||
|
||||
\And escape \characters are ig\nored, but this one isn't: \\stdClass
|
6
vendor/doctrine/rst-parser/tests/Functional/tests/render/figure/figure.html
vendored
Normal file
6
vendor/doctrine/rst-parser/tests/Functional/tests/render/figure/figure.html
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
<figure>
|
||||
<img src="foo.jpg" width="100" />
|
||||
<figcaption>
|
||||
<p>This is a foo!</p>
|
||||
</figcaption>
|
||||
</figure>
|
4
vendor/doctrine/rst-parser/tests/Functional/tests/render/figure/figure.rst
vendored
Normal file
4
vendor/doctrine/rst-parser/tests/Functional/tests/render/figure/figure.rst
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
.. figure:: foo.jpg
|
||||
:width: 100
|
||||
|
||||
This is a foo!
|
2
vendor/doctrine/rst-parser/tests/Functional/tests/render/image-follow/image-follow.html
vendored
Normal file
2
vendor/doctrine/rst-parser/tests/Functional/tests/render/image-follow/image-follow.html
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
<p>Test</p>
|
||||
<img src="img/test.jpg" />
|
2
vendor/doctrine/rst-parser/tests/Functional/tests/render/image-follow/image-follow.rst
vendored
Normal file
2
vendor/doctrine/rst-parser/tests/Functional/tests/render/image-follow/image-follow.rst
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
Test
|
||||
.. image:: /img/test.jpg
|
5
vendor/doctrine/rst-parser/tests/Functional/tests/render/image-inline/image-inline.html
vendored
Normal file
5
vendor/doctrine/rst-parser/tests/Functional/tests/render/image-inline/image-inline.html
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
<p>
|
||||
This is an
|
||||
<img src="test.jpg" />
|
||||
image!
|
||||
</p>
|
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/image-inline/image-inline.rst
vendored
Normal file
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/image-inline/image-inline.rst
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
This is an |inline| image!
|
||||
|
||||
.. |inline| image:: test.jpg
|
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/image/image.html
vendored
Normal file
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/image/image.html
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
<img src="test.jpg" />
|
||||
<img src="try.jpg" width="123" />
|
||||
<img src="other.jpg" title="Other" />
|
6
vendor/doctrine/rst-parser/tests/Functional/tests/render/image/image.rst
vendored
Normal file
6
vendor/doctrine/rst-parser/tests/Functional/tests/render/image/image.rst
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
.. image:: test.jpg
|
||||
.. image:: try.jpg
|
||||
:width: 123
|
||||
|
||||
.. image:: other.jpg
|
||||
:title: Other
|
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/image/image.tex
vendored
Normal file
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/image/image.tex
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
\includegraphics{test.jpg}
|
||||
\includegraphics{try.jpg}
|
||||
\includegraphics{other.jpg}
|
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/include-comments/comments.rst
vendored
Normal file
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/include-comments/comments.rst
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
.. ==================================================
|
||||
.. FOR YOUR INFORMATION
|
||||
.. --------------------------------------------------
|
|
@ -0,0 +1 @@
|
|||
.. include:: comments.rst
|
|
@ -0,0 +1 @@
|
|||
<p>EXTERNAL FILE INCLUDED!</p>
|
|
@ -0,0 +1 @@
|
|||
EXTERNAL FILE INCLUDED!
|
1
vendor/doctrine/rst-parser/tests/Functional/tests/render/italic/italic.html
vendored
Normal file
1
vendor/doctrine/rst-parser/tests/Functional/tests/render/italic/italic.html
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
<p>Testing the <em>italic emphasis</em>, (small emphasis)</p>
|
1
vendor/doctrine/rst-parser/tests/Functional/tests/render/italic/italic.rst
vendored
Normal file
1
vendor/doctrine/rst-parser/tests/Functional/tests/render/italic/italic.rst
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
Testing the *italic emphasis*, (small emphasis)
|
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/link-span/link-span.html
vendored
Normal file
3
vendor/doctrine/rst-parser/tests/Functional/tests/render/link-span/link-span.html
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
<p>
|
||||
<a href="http://google.com">Go to <strong>Google</strong></a>
|
||||
</p>
|
1
vendor/doctrine/rst-parser/tests/Functional/tests/render/link-span/link-span.rst
vendored
Normal file
1
vendor/doctrine/rst-parser/tests/Functional/tests/render/link-span/link-span.rst
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
`Go to **Google** <http://google.com>`_
|
|
@ -0,0 +1,4 @@
|
|||
<ul>
|
||||
<li class="dash">see <a href="https://www.doctrine-project.org/projects/rst-parser.html">link to the doc</a></li>
|
||||
<li class="dash">list item 2</li>
|
||||
</ul>
|
|
@ -0,0 +1,5 @@
|
|||
- see `link to
|
||||
the doc`_
|
||||
- list item 2
|
||||
|
||||
.. _`link to the doc`: https://www.doctrine-project.org/projects/rst-parser.html
|
|
@ -0,0 +1 @@
|
|||
<p>see <a href="https://www.doctrine-project.org/projects/rst-parser.html">link to the doc</a></p>
|
|
@ -0,0 +1,4 @@
|
|||
see `link to
|
||||
the doc`_
|
||||
|
||||
.. _`link to the doc`: https://www.doctrine-project.org/projects/rst-parser.html
|
|
@ -0,0 +1 @@
|
|||
<p>Alternatively, you can clone the <a href="https://github.com/symfony/form">https://github.com/symfony/form</a> repository.</p>
|
|
@ -0,0 +1 @@
|
|||
Alternatively, you can clone the `<https://github.com/symfony/form>`_ repository.
|
|
@ -0,0 +1 @@
|
|||
<p><a href="https://php.net/manual/en/class.intldateformatter.php#intl.intldateformatter-constants">IntlDateFormatter::MEDIUM</a><a href="https://php.net/manual/en/class.intldateformatter.php#intl.intldateformatter-constants">IntlDateFormatter:: MEDIUM</a></p>
|
|
@ -0,0 +1,6 @@
|
|||
`IntlDateFormatter::MEDIUM`_
|
||||
`IntlDateFormatter:: MEDIUM`_
|
||||
|
||||
.. _`IntlDateFormatter::MEDIUM`: https://php.net/manual/en/class.intldateformatter.php#intl.intldateformatter-constants
|
||||
|
||||
.. _`IntlDateFormatter:: MEDIUM`: https://php.net/manual/en/class.intldateformatter.php#intl.intldateformatter-constants
|
11
vendor/doctrine/rst-parser/tests/Functional/tests/render/links/links.html
vendored
Normal file
11
vendor/doctrine/rst-parser/tests/Functional/tests/render/links/links.html
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
<p>This is a direct link to <a href="http://www.google.com/">Google</a>, This is a link to <a href="http://xkcd.com/">xkcd</a> spacy</p>
|
||||
<p>This is another link to <a href="http://something.com/">something</a></p>
|
||||
<p>This is an <a href="http://anonymous.com/">anonymous link</a></p>
|
||||
<p>I love <a href="http://www.github.com/">GitHub</a></p>
|
||||
<p>This is a under_score that is not supposed to be used</p>
|
||||
<p>You can send mail to <a href="mailto:jane@example.com">mailto:jane@example.com</a> or use the news group at
|
||||
<a href="news:comp.lang.php">news:comp.lang.php</a>.</p>
|
||||
<p>Yes, Jim, I found it under "<a href="http://www.w3.org/Addressing/">http://www.w3.org/Addressing/</a>", but you can probably
|
||||
pick it up from <<a href="ftp://foo.example.com/rfc/">ftp://foo.example.com/rfc/</a>>. Note the warning in
|
||||
<<a href="http://www.ics.uci.edu/pub/ietf/uri/historical.html#WARNING">http://www.ics.uci.edu/pub/ietf/uri/historical.html#WARNING</a>>.</p>
|
||||
<p>You can read more on the features of Embeddables objects <a href="http://docs.doctrine-project.org/en/latest/tutorials/embeddables.html">in the documentation</a>.</p>
|
26
vendor/doctrine/rst-parser/tests/Functional/tests/render/links/links.rst
vendored
Normal file
26
vendor/doctrine/rst-parser/tests/Functional/tests/render/links/links.rst
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
This is a direct link to `Google <http://www.google.com/>`_, This is a link to `xkcd`_ spacy
|
||||
|
||||
This is another link to something_
|
||||
|
||||
This is an `anonymous link`__
|
||||
|
||||
__ http://anonymous.com/
|
||||
|
||||
I love GitHub__
|
||||
|
||||
.. __: http://www.github.com/
|
||||
|
||||
This is a under_score that is not supposed to be used
|
||||
|
||||
You can send mail to mailto:jane@example.com or use the news group at
|
||||
news:comp.lang.php.
|
||||
|
||||
Yes, Jim, I found it under "http://www.w3.org/Addressing/", but you can probably
|
||||
pick it up from <ftp://foo.example.com/rfc/>. Note the warning in
|
||||
<http://www.ics.uci.edu/pub/ietf/uri/historical.html#WARNING>.
|
||||
|
||||
You can read more on the features of Embeddables objects `in the documentation
|
||||
<http://docs.doctrine-project.org/en/latest/tutorials/embeddables.html>`_.
|
||||
|
||||
.. _`xkcd`: http://xkcd.com/
|
||||
.. _something: http://something.com/
|
|
@ -0,0 +1,22 @@
|
|||
<div class="section" id="alternate-list-syntax">
|
||||
<h1>
|
||||
Alternate List Syntax
|
||||
</h1>
|
||||
<ul>
|
||||
<li class="dash">Lists may start on the next line after</li>
|
||||
<li class="dash">In all cases, the first text determines
|
||||
the level of indentation</li>
|
||||
<li class="dash">
|
||||
<p>As such, this is a paragraph.</p>
|
||||
<blockquote>
|
||||
<p>Yet, this is considered to be blockquote.</p>
|
||||
</blockquote>
|
||||
<p>And this is normal text again</p>
|
||||
</li>
|
||||
<li class="dash">But with a more indented first line,
|
||||
this same level is a normal paragraph</li>
|
||||
</ul>
|
||||
<blockquote>
|
||||
<p>and this is not part of the list (warning)</p>
|
||||
</blockquote>
|
||||
</div>
|
|
@ -0,0 +1,18 @@
|
|||
Alternate List Syntax
|
||||
---------------------
|
||||
|
||||
-
|
||||
Lists may start on the next line after
|
||||
-
|
||||
In all cases, the first text determines
|
||||
the level of indentation
|
||||
-
|
||||
As such, this is a paragraph.
|
||||
|
||||
Yet, this is considered to be blockquote.
|
||||
|
||||
And this is normal text again
|
||||
-
|
||||
But with a more indented first line,
|
||||
this same level is a normal paragraph
|
||||
and this is not part of the list (warning)
|
4
vendor/doctrine/rst-parser/tests/Functional/tests/render/list-dash/list-dash.html
vendored
Normal file
4
vendor/doctrine/rst-parser/tests/Functional/tests/render/list-dash/list-dash.html
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
<ul>
|
||||
<li class="dash">This is alist</li>
|
||||
<li class="dash">Using dashes</li>
|
||||
</ul>
|
2
vendor/doctrine/rst-parser/tests/Functional/tests/render/list-dash/list-dash.rst
vendored
Normal file
2
vendor/doctrine/rst-parser/tests/Functional/tests/render/list-dash/list-dash.rst
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
- This is alist
|
||||
- Using dashes
|
10
vendor/doctrine/rst-parser/tests/Functional/tests/render/list-indented/list-indented.html
vendored
Normal file
10
vendor/doctrine/rst-parser/tests/Functional/tests/render/list-indented/list-indented.html
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
<p>Testing an indented list:</p>
|
||||
<blockquote>
|
||||
<ul>
|
||||
<li>This is</li>
|
||||
<li>A simple</li>
|
||||
<li>Unordered
|
||||
With an other line</li>
|
||||
<li>List</li>
|
||||
</ul>
|
||||
</blockquote>
|
7
vendor/doctrine/rst-parser/tests/Functional/tests/render/list-indented/list-indented.rst
vendored
Normal file
7
vendor/doctrine/rst-parser/tests/Functional/tests/render/list-indented/list-indented.rst
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
Testing an indented list:
|
||||
|
||||
* This is
|
||||
* A simple
|
||||
* Unordered
|
||||
With an other line
|
||||
* List
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue