fix wikipedia links for pdf version

This commit is contained in:
Faust
2015-04-05 03:29:00 +02:00
parent c609ef5952
commit 818c221c78
34 changed files with 100 additions and 191 deletions

View File

@ -1,5 +1,5 @@
Chain Of Responsibilities |Wikipedia|_
======================================
`Chain Of Responsibilities`_
============================
Purpose:
--------
@ -67,7 +67,4 @@ Tests/ChainTest.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/ChainOfResponsibilities
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Chain_of_responsibility_pattern
.. _`Chain Of Responsibilities`: http://en.wikipedia.org/wiki/Chain_of_responsibility_pattern

View File

@ -1,5 +1,5 @@
Command |Wikipedia|_
====================
`Command`_
==========
Purpose
-------
@ -74,7 +74,4 @@ Tests/CommandTest.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Command
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Command_pattern
.. _`Command`: http://en.wikipedia.org/wiki/Command_pattern

View File

@ -1,5 +1,5 @@
Iterator |Wikipedia|_
=====================
`Iterator`_
===========
Purpose
-------
@ -67,7 +67,4 @@ Tests/IteratorTest.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Iterator
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Iterator_pattern
.. _`Iterator`: http://en.wikipedia.org/wiki/Iterator_pattern

View File

@ -1,5 +1,5 @@
Mediator |Wikipedia|_
=====================
`Mediator`_
===========
Purpose
-------
@ -70,7 +70,4 @@ Tests/MediatorTest.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Mediator
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Mediator_pattern
.. _`Mediator`: http://en.wikipedia.org/wiki/Mediator_pattern

View File

@ -1,5 +1,5 @@
Memento |Wikipedia|_
====================
`Memento`_
==========
Purpose
-------
@ -65,7 +65,4 @@ Tests/MementoTest.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Memento
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Memento_pattern
.. _`Memento`: http://en.wikipedia.org/wiki/Memento_pattern

View File

@ -1,5 +1,5 @@
Null Object |Wikipedia|_
========================
`Null Object`_
==============
Purpose
-------
@ -72,7 +72,4 @@ Tests/LoggerTest.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/NullObject
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Null_Object_pattern
.. _`Null Object`: http://en.wikipedia.org/wiki/Null_Object_pattern

View File

@ -1,5 +1,5 @@
Observer |Wikipedia|_
=====================
`Observer`_
===========
Purpose
-------
@ -55,7 +55,4 @@ Tests/ObserverTest.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Observer
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Observer_pattern
.. _`Observer`: http://en.wikipedia.org/wiki/Observer_pattern

View File

@ -1,5 +1,5 @@
Specification |Wikipedia|_
==========================
`Specification`_
================
Purpose
-------
@ -73,7 +73,4 @@ Tests/SpecificationTest.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Specification
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Specification_pattern
.. _`Specification`: http://en.wikipedia.org/wiki/Specification_pattern

View File

@ -1,5 +1,5 @@
State |Wikipedia|_
==================
`State`_
========
Purpose
-------
@ -54,7 +54,4 @@ Test
----
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/State
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/State_pattern
.. _`State`: http://en.wikipedia.org/wiki/State_pattern

View File

@ -1,5 +1,5 @@
Strategy |Wikipedia|_
=====================
`Strategy`_
===========
Terminology:
------------
@ -68,7 +68,4 @@ Tests/StrategyTest.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Strategy
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Strategy_pattern
.. _`Strategy`: http://en.wikipedia.org/wiki/Strategy_pattern

View File

@ -1,5 +1,5 @@
Template Method |Wikipedia|_
============================
`Template Method`_
==================
Purpose
-------
@ -61,7 +61,4 @@ Tests/JourneyTest.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/TemplateMethod
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Template_method_pattern
.. _`Template Method`: http://en.wikipedia.org/wiki/Template_method_pattern

View File

@ -1,5 +1,5 @@
Visitor |Wikipedia|_
====================
`Visitor`_
==========
Purpose
-------
@ -65,7 +65,4 @@ Tests/VisitorTest.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Visitor
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Visitor_pattern
.. _`Visitor`: http://en.wikipedia.org/wiki/Visitor_pattern

View File

@ -1,5 +1,5 @@
Abstract Factory |Wikipedia|_
=============================
`Abstract Factory`_
===================
Purpose
-------
@ -91,7 +91,4 @@ Tests/AbstractFactoryTest.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/AbstractFactory
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Abstract_factory_pattern
.. _`Abstract Factory`: http://en.wikipedia.org/wiki/Abstract_factory_pattern

View File

@ -1,5 +1,5 @@
Builder |Wikipedia|_
====================
`Builder`_
==========
Purpose
-------
@ -102,7 +102,4 @@ Tests/DirectorTest.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/Builder
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Builder_pattern
.. _`Builder`: http://en.wikipedia.org/wiki/Builder_pattern

View File

@ -1,5 +1,5 @@
Factory Method |Wikipedia|_
===========================
`Factory Method`_
=================
Purpose
-------
@ -80,7 +80,4 @@ Tests/FactoryMethodTest.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/FactoryMethod
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Factory_method_pattern
.. _`Factory Method`: http://en.wikipedia.org/wiki/Factory_method_pattern

View File

@ -1,5 +1,5 @@
Pool |Wikipedia|_
=================
`Pool`_
=======
The **object pool pattern** is a software creational design pattern that
uses a set of initialized objects kept ready to use a "pool" rather
@ -67,7 +67,4 @@ Tests/PoolTest.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/Pool
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Object_pool_pattern
.. _`Pool`: http://en.wikipedia.org/wiki/Object_pool_pattern

View File

@ -1,5 +1,5 @@
Prototype |Wikipedia|_
======================
`Prototype`_
============
Purpose
-------
@ -53,7 +53,4 @@ Test
----
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/Prototype
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Prototype_pattern
.. _`Prototype`: http://en.wikipedia.org/wiki/Prototype_pattern

View File

@ -1,5 +1,5 @@
Singleton |Wikipedia|_
======================
`Singleton`_
============
**THIS IS CONSIDERED TO BE AN ANTI-PATTERN! FOR BETTER TESTABILITY AND
MAINTAINABILITY USE DEPENDENCY INJECTION!**
@ -47,7 +47,4 @@ Tests/SingletonTest.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/Singleton
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Singleton_pattern
.. _`Singleton`: http://en.wikipedia.org/wiki/Singleton_pattern

View File

@ -1,5 +1,5 @@
Delegation |Wikipedia|_
=======================
`Delegation`_
=============
Purpose
-------
@ -51,7 +51,4 @@ Tests/DelegationTest.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/More/Delegation
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Delegation_pattern
.. _`Delegation`: http://en.wikipedia.org/wiki/Delegation_pattern

View File

@ -1,5 +1,5 @@
Service Locator |Wikipedia|_
============================
`Service Locator`_
==================
Purpose
-------
@ -81,7 +81,4 @@ Tests/ServiceLocatorTest.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/More/ServiceLocator
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Service_locator_pattern
.. _`Service Locator`: http://en.wikipedia.org/wiki/Service_locator_pattern

View File

@ -2,8 +2,8 @@
[![Build Status](https://travis-ci.org/domnikl/DesignPatternsPHP.png?branch=master)](https://travis-ci.org/domnikl/DesignPatternsPHP)
[Read the Docs of DesignPatternsPHP](http://designpatterns-php.readthedocs.org)
or [Download as PDF/Epub](https://readthedocs.org/projects/designpatterns-php/downloads/)
[Read the Docs of DesignPatternsPHP](http://designpatternsphp.readthedocs.org)
or [Download as PDF/Epub](https://readthedocs.org/projects/designpatternsphp/downloads/)
This is a collection of known design patterns and some sample code how to implement them in PHP. Every pattern has a small list of examples (most of them from Zend Framework, Symfony2 or Doctrine2 as I'm most familiar with this software).

View File

@ -1,5 +1,5 @@
Adapter / Wrapper |Wikipedia|_
==============================
`Adapter / Wrapper`_
====================
Purpose
-------
@ -68,7 +68,4 @@ Tests/AdapterTest.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/Adapter
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Adapter_pattern
.. _`Adapter / Wrapper`: http://en.wikipedia.org/wiki/Adapter_pattern

View File

@ -1,5 +1,5 @@
Bridge |Wikipedia|_
===================
`Bridge`_
=========
Purpose
-------
@ -71,7 +71,4 @@ Tests/BridgeTest.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/Bridge
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Bridge_pattern
.. _`Bridge`: http://en.wikipedia.org/wiki/Bridge_pattern

View File

@ -1,5 +1,5 @@
Composite |Wikipedia|_
======================
`Composite`_
============
Purpose
-------
@ -62,7 +62,4 @@ Tests/CompositeTest.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/Composite
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Composite_pattern
.. _`Composite`: http://en.wikipedia.org/wiki/Composite_pattern

View File

@ -1,5 +1,5 @@
Data Mapper |Wikipedia|_
========================
`Data Mapper`_
==============
Purpose
-------
@ -57,7 +57,4 @@ Tests/DataMapperTest.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/DataMapper
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Data_mapper_pattern
.. _`Data Mapper`: http://en.wikipedia.org/wiki/Data_mapper_pattern

View File

@ -1,5 +1,5 @@
Decorator |Wikipedia|_
======================
`Decorator`_
============
Purpose
-------
@ -65,7 +65,4 @@ Tests/DecoratorTest.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/Decorator
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Decorator_pattern
.. _`Decorator`: http://en.wikipedia.org/wiki/Decorator_pattern

View File

@ -1,5 +1,5 @@
Dependency Injection |Wikipedia|_
=================================
`Dependency Injection`_
=======================
Purpose
-------
@ -85,7 +85,4 @@ Tests/config.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/DependencyInjection
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Dependency_injection
.. _`Dependency Injection`: http://en.wikipedia.org/wiki/Dependency_injection

View File

@ -1,5 +1,5 @@
Facade |Wikipedia|_
===================
`Facade`_
=========
Purpose
-------
@ -63,7 +63,4 @@ Tests/FacadeTest.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/Facade
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Facade_pattern
.. _`Facade`: http://en.wikipedia.org/wiki/Facade_pattern

View File

@ -1,5 +1,5 @@
Fluent Interface |Wikipedia|_
=============================
`Fluent Interface`_
===================
Purpose
-------
@ -43,7 +43,5 @@ Tests/FluentInterfaceTest.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/FluentInterface
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Fluent_interface
.. _`Fluent Interface`: http://en.wikipedia.org/wiki/Fluent_interface

View File

@ -1,5 +1,5 @@
Proxy |Wikipedia|_
==================
`Proxy`_
========
Purpose
-------
@ -41,7 +41,4 @@ Test
----
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/Proxy
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Proxy_pattern
.. _`Proxy`: http://en.wikipedia.org/wiki/Proxy_pattern

View File

@ -1,5 +1,5 @@
Registry |Wikipedia|_
=====================
`Registry`_
===========
Purpose
-------
@ -44,7 +44,4 @@ Tests/RegistryTest.php
:linenos:
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/Registry
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 30 px
:width: 30 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Service_locator_pattern
.. _`Registry`: http://en.wikipedia.org/wiki/Service_locator_pattern

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

View File

@ -212,7 +212,7 @@ latex_elements = {
#'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
#'preamble': '',
'preamble': '\setcounter{tocdepth}{2}',
# Latex figure (float) alignment
#'figure_align': 'htbp',

View File

@ -1,13 +1,14 @@
.. DesignPatternsPHP
=================
DesignPatternsPHP
=================
.. image:: https://readthedocs.org/projects/designpatterns-php/badge/?version=latest
:target: https://readthedocs.org/projects/designpatterns-php/?badge=latest
.. image:: https://readthedocs.org/projects/designpatternsphp/badge/?version=latest
:target: https://readthedocs.org/projects/designpatternsphp/?badge=latest
:alt: Documentation Status
This is a collection of known design patterns and some sample code how
This is a collection of known `design patterns`_ and some sample code how
to implement them in PHP. Every pattern has a small list of examples
(most of them from Zend Framework, Symfony2 or Doctrine2 as I'm most
familiar with this software).
@ -19,7 +20,7 @@ Patterns
--------
The patterns can be structured in roughly three different categories.
Please click |Wikipedia|_ for a full explanation of the pattern on Wikipedia.
Please click on **the title of every pattern's page** for a full explanation of the pattern on Wikipedia.
.. toctree::
:titlesonly:
@ -68,7 +69,4 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
.. |Wikipedia| image:: /_static/Wikipedia-logo.png
:height: 20 px
:width: 20 px
.. _Wikipedia: http://en.wikipedia.org/wiki/Software_design_pattern
.. _`design patterns`: http://en.wikipedia.org/wiki/Software_design_pattern