Skip to content

Commit b8aa050

Browse files
committed
Init RTD v2 config
1 parent d9439e3 commit b8aa050

File tree

43 files changed

+63
-47
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+63
-47
lines changed

.readthedocs.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
build:
3+
os: ubuntu-22.04
4+
tools:
5+
python: "3.11"
6+
7+
python:
8+
install:
9+
- requirements: requirements.txt
10+
11+
sphinx:
12+
configuration: conf.py
13+
fail_on_warning: false

Behavioral/ChainOfResponsibilities/README.rst

Lines changed: 1 addition & 1 deletion

Behavioral/Command/README.rst

Lines changed: 1 addition & 1 deletion

Behavioral/Interpreter/README.rst

Lines changed: 1 addition & 1 deletion

Behavioral/Iterator/README.rst

Lines changed: 1 addition & 1 deletion

Behavioral/Mediator/README.rst

Lines changed: 1 addition & 1 deletion

Behavioral/Memento/README.rst

Lines changed: 1 addition & 1 deletion

Behavioral/NullObject/README.rst

Lines changed: 1 addition & 1 deletion

Behavioral/Observer/README.rst

Lines changed: 1 addition & 1 deletion

Behavioral/Specification/README.rst

Lines changed: 1 addition & 1 deletion

Behavioral/State/README.rst

Lines changed: 1 addition & 1 deletion

Behavioral/Strategy/README.rst

Lines changed: 1 addition & 1 deletion

Behavioral/TemplateMethod/README.rst

Lines changed: 1 addition & 1 deletion

Behavioral/Visitor/README.rst

Lines changed: 1 addition & 1 deletion

Creational/AbstractFactory/README.rst

Lines changed: 1 addition & 1 deletion

Creational/Builder/README.rst

Lines changed: 1 addition & 1 deletion

Creational/FactoryMethod/README.rst

Lines changed: 1 addition & 1 deletion

Creational/Pool/README.rst

Lines changed: 1 addition & 1 deletion

Creational/Prototype/README.rst

Lines changed: 1 addition & 1 deletion

Creational/SimpleFactory/README.rst

Lines changed: 1 addition & 1 deletion

Creational/Singleton/README.rst

Lines changed: 1 addition & 1 deletion

Creational/StaticFactory/README.rst

Lines changed: 1 addition & 1 deletion

More/EAV/README.rst

Lines changed: 1 addition & 1 deletion

More/Repository/README.rst

Lines changed: 1 addition & 1 deletion

More/ServiceLocator/README.rst

Lines changed: 1 addition & 1 deletion

README.md

Lines changed: 1 addition & 1 deletion

Structural/Adapter/README.rst

Lines changed: 1 addition & 1 deletion

Structural/Bridge/README.rst

Lines changed: 1 addition & 1 deletion

Structural/Composite/README.rst

Lines changed: 1 addition & 1 deletion

Structural/DataMapper/README.rst

Lines changed: 1 addition & 1 deletion

Structural/DataMapper/Tests/DataMapperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class DataMapperTest extends TestCase
1414
{
1515
public function testCanMapUserFromStorage()
1616
{
17-
$storage = new StorageAdapter([1 => ['username' => 'domnikl', 'email' => 'liebler.dominik@gmail.com']]);
17+
$storage = new StorageAdapter([1 => ['username' => 'someone', 'email' => 'someone@example.com']]);
1818
$mapper = new UserMapper($storage);
1919

2020
$user = $mapper->findById(1);

Structural/Decorator/README.rst

Lines changed: 1 addition & 1 deletion

Structural/DependencyInjection/README.rst

Lines changed: 1 addition & 1 deletion

Structural/DependencyInjection/Tests/DependencyInjectionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ class DependencyInjectionTest extends TestCase
1212
{
1313
public function testDependencyInjection()
1414
{
15-
$config = new DatabaseConfiguration('localhost', 3306, 'domnikl', '1234');
15+
$config = new DatabaseConfiguration('localhost', 3306, 'user', '1234');
1616
$connection = new DatabaseConnection($config);
1717

18-
$this->assertSame('domnikl:1234@localhost:3306', $connection->getDsn());
18+
$this->assertSame('user:1234@localhost:3306', $connection->getDsn());
1919
}
2020
}

Structural/Facade/README.rst

Lines changed: 1 addition & 1 deletion

Structural/FluentInterface/README.rst

Lines changed: 1 addition & 1 deletion

Structural/Flyweight/README.rst

Lines changed: 1 addition & 1 deletion

Structural/Proxy/README.rst

Lines changed: 1 addition & 1 deletion

Structural/Registry/README.rst

Lines changed: 1 addition & 1 deletion

composer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
{
77
"name": "Dominik Liebler",
88
"email": "[email protected]"
9+
},
10+
{
11+
"name": "Borislav Sabev",
12+
"email": "[email protected]"
913
}
1014
],
1115
"minimum-stability": "stable",

conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
#source_encoding = 'utf-8-sig'
4444

4545
# The master toctree document.
46-
master_doc = 'README'
46+
master_doc = 'index'
4747

4848
# General information about the project.
4949
project = u'DesignPatternsPHP'
@@ -64,7 +64,7 @@
6464
#
6565
# This is also used if you do content translation via gettext catalogs.
6666
# Usually you set "language" from the command line for these cases.
67-
language = None
67+
language = 'en'
6868

6969
# There are two options for replacing |today|: either, you set today to some
7070
# non-false value, then it is used:

README.rst renamed to index.rst

Lines changed: 2 additions & 6 deletions

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
sphinx
2+
sphinx_rtd_theme
3+
readthedocs-sphinx-search

0 commit comments

Comments
 (0)