Update website

This commit is contained in:
Guilhem Lavaux 2024-11-19 08:02:04 +01:00
parent 4413528994
commit 1d90fbf296
6865 changed files with 1091082 additions and 0 deletions

View 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));
}
}

View 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>

View file

@ -0,0 +1,6 @@
.. toctree::
:titlesonly:
page1
page2

View file

@ -0,0 +1,8 @@
Page 1
======
Chapter 1
---------
Chapter 2
---------

View file

@ -0,0 +1,4 @@
Page 2
======
Lorem Ipsum Dolor

View 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>

View file

@ -0,0 +1,7 @@
index
=====
.. toctree::
page1
page2

View file

@ -0,0 +1,8 @@
Page 1
======
Chapter 1
---------
Chapter 2
---------

View file

@ -0,0 +1,4 @@
Page 2
======
Lorem Ipsum Dolor

View file

@ -0,0 +1 @@
<p>@Anchor Section</p>

View file

@ -0,0 +1 @@
`@Anchor Section`_

View 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>

View file

@ -0,0 +1,6 @@
Anchors
-------
.. _lists:
`go to lists <#lists>`_

View file

@ -0,0 +1,3 @@
\chapter{Anchors}
\label{lists}
\ref{#lists}

View 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>

View 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/

View 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__.

View file

@ -0,0 +1 @@

View file

@ -0,0 +1 @@
.. Should be a comment, with BOM

View 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>

View 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
=========== ==========

View 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>

View 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

View file

@ -0,0 +1,3 @@
<pre><code class="">A
B C
</code></pre>

View file

@ -0,0 +1,5 @@
.. code-block::
A
B
C

View file

@ -0,0 +1,4 @@
<pre><code class="c++">#include &lt;iostream&gt; using namespace std; int main(void)
{ cout &lt;&lt; &quot;Hello world!&quot; &lt;&lt; endl;
}
</code></pre>

View file

@ -0,0 +1,10 @@
.. code-block:: c++
#include <iostream>
using namespace std;
int main(void)
{
cout << "Hello world!" << endl;
}

View file

@ -0,0 +1,4 @@
<pre><code class="java">protected void f()
{
}
</code></pre>

View file

@ -0,0 +1,5 @@
.. code-block:: java
protected void f()
{
}

View file

@ -0,0 +1,3 @@
<pre><code class="">* Testing
* Hey
</code></pre>

View file

@ -0,0 +1,6 @@
.. This should not be interpreted as a list
.. code-block::
* Testing
* Hey

View file

@ -0,0 +1,2 @@
<pre><code class="">Test code block with whitespace.
</code></pre>

View file

@ -0,0 +1,3 @@
::
Test code block with whitespace.

View file

@ -0,0 +1,3 @@
<p>Code block:</p>
<pre><code class="">This is a code block You hou!
</code></pre>

View file

@ -0,0 +1,5 @@
Code block::
This is a code block
You hou!

View file

@ -0,0 +1,8 @@
Code block:
\lstset{language=}
\begin{lstlisting}
This is a code block
You hou!
\end{lstlisting}

View file

@ -0,0 +1 @@
<p>... This is not a comment!</p>

View file

@ -0,0 +1,2 @@
.. This is a comment!
... This is not a comment!

View file

@ -0,0 +1,4 @@
<p>this is not a comment</p>
<blockquote>
<p>this is a blockquote</p>
</blockquote>

View file

@ -0,0 +1,6 @@
..
this is not a comment
..
this is a blockquote

View file

@ -0,0 +1,2 @@
<p>Text before</p>
<p>Text after</p>

View file

@ -0,0 +1,3 @@
Text before
.. Testing comment
Text after

View file

@ -0,0 +1 @@
<p>this is not a comment</p>

View file

@ -0,0 +1,3 @@
.. header comment
this is a comment
this is not a comment

View file

@ -0,0 +1 @@
<p>this is not a comment</p>

View file

@ -0,0 +1,3 @@
..
this is a comment
this is not a comment

View file

@ -0,0 +1,3 @@
.. ==================================================
.. FOR YOUR INFORMATION
.. --------------------------------------------------

View file

@ -0,0 +1,6 @@
<div class="section" id="hello-world">
<h1>
Hello world
</h1>
<p>Hey!</p>
</div>

View file

@ -0,0 +1,4 @@
Hello world
===========
Hey!

View file

@ -0,0 +1 @@
<p>Testing page!</p>

View file

@ -0,0 +1,3 @@
.. stylesheet:: style.css
Testing page!

View 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 &amp; <span class="classifier-delimiter">:</span> <span class="classifier">classifier with &amp;</span> </dt>
<dd> Definition 1 with &amp; </dd>
<dt> term with &amp; <span class="classifier-delimiter">:</span> <span class="classifier">classifier with &amp;</span> <span class="classifier-delimiter">:</span> <span class="classifier">classifier with &amp;</span> </dt>
<dd>
<p class="first">Definition 1 with &amp;</p>
<p class="last">Definition 2 with &amp;</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>

View 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.

View file

@ -0,0 +1,3 @@
<div class="testing">
<p>Hello!</p>
</div>

View file

@ -0,0 +1,2 @@
.. div:: testing
Hello!

View file

@ -0,0 +1,3 @@
<p>Empty paragraph:</p>
<pre><code class="">Code </code></pre>
<p>Hello</p>

View file

@ -0,0 +1,16 @@
Empty paragraph:
::
Code
Hello

View 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>

View file

@ -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.

View 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>

View 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

View file

@ -0,0 +1,2 @@
<p>Testing that this is escaped: &lt;script&gt;</p>
<p>And escape characters are ignored, but this one isn't: \stdClass</p>

View file

@ -0,0 +1,3 @@
Testing that this is escaped: <script>
\And escape \characters are ig\nored, but this one isn't: \\stdClass

View file

@ -0,0 +1,6 @@
<figure>
<img src="foo.jpg" width="100" />
<figcaption>
<p>This is a foo!</p>
</figcaption>
</figure>

View file

@ -0,0 +1,4 @@
.. figure:: foo.jpg
:width: 100
This is a foo!

View file

@ -0,0 +1,2 @@
<p>Test</p>
<img src="img/test.jpg" />

View file

@ -0,0 +1,2 @@
Test
.. image:: /img/test.jpg

View file

@ -0,0 +1,5 @@
<p>
This is an
<img src="test.jpg" />
image!
</p>

View file

@ -0,0 +1,3 @@
This is an |inline| image!
.. |inline| image:: test.jpg

View file

@ -0,0 +1,3 @@
<img src="test.jpg" />
<img src="try.jpg" width="123" />
<img src="other.jpg" title="Other" />

View file

@ -0,0 +1,6 @@
.. image:: test.jpg
.. image:: try.jpg
:width: 123
.. image:: other.jpg
:title: Other

View file

@ -0,0 +1,3 @@
\includegraphics{test.jpg}
\includegraphics{try.jpg}
\includegraphics{other.jpg}

View file

@ -0,0 +1,3 @@
.. ==================================================
.. FOR YOUR INFORMATION
.. --------------------------------------------------

View file

@ -0,0 +1 @@
.. include:: comments.rst

View file

@ -0,0 +1 @@
<p>EXTERNAL FILE INCLUDED!</p>

View file

@ -0,0 +1 @@
EXTERNAL FILE INCLUDED!

View file

@ -0,0 +1 @@
<p>Testing the <em>italic emphasis</em>, (small emphasis)</p>

View file

@ -0,0 +1 @@
Testing the *italic emphasis*, (small emphasis)

View file

@ -0,0 +1,3 @@
<p>
<a href="http://google.com">Go to <strong>Google</strong></a>
</p>

View file

@ -0,0 +1 @@
`Go to **Google** <http://google.com>`_

View file

@ -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>

View file

@ -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

View file

@ -0,0 +1 @@
<p>see <a href="https://www.doctrine-project.org/projects/rst-parser.html">link to the doc</a></p>

View file

@ -0,0 +1,4 @@
see `link to
the doc`_
.. _`link to the doc`: https://www.doctrine-project.org/projects/rst-parser.html

View file

@ -0,0 +1 @@
<p>Alternatively, you can clone the <a href="https://github.com/symfony/form">https://github.com/symfony/form</a> repository.</p>

View file

@ -0,0 +1 @@
Alternatively, you can clone the `<https://github.com/symfony/form>`_ repository.

View file

@ -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>

View file

@ -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

View 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 &quot;<a href="http://www.w3.org/Addressing/">http://www.w3.org/Addressing/</a>&quot;, but you can probably
pick it up from &lt;<a href="ftp://foo.example.com/rfc/">ftp://foo.example.com/rfc/</a>&gt;. Note the warning in
&lt;<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>&gt;.</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>

View 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/

View file

@ -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>

View file

@ -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)

View file

@ -0,0 +1,4 @@
<ul>
<li class="dash">This is alist</li>
<li class="dash">Using dashes</li>
</ul>

View file

@ -0,0 +1,2 @@
- This is alist
- Using dashes

View 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>

View 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