Skip to content

Commit 130b2ba

Browse files
committed
Default to no file extensions in urls
1 parent 4b6a97d commit 130b2ba

File tree

14 files changed

+41
-41
lines changed

14 files changed

+41
-41
lines changed

phpdoc.dist.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<!-- github|gitlab -->
2020
<parameter name="markdownFlavour" value="github"/>
2121
<!-- yes|no -->
22-
<parameter name="urlFileExtensions" value="yes"/>
22+
<parameter name="urlFileExtensions" value="no"/>
2323
<!-- yes|no -->
2424
<parameter name="includeFooter" value="no"/>
2525
</template>

tests/Functional/expected/Home.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,39 @@ This is an automatically generated documentation for **Pizza Place (Example docu
88

99
#### Classes
1010

11-
| Class | Description |
12-
|---------------------------------------------------------------------------------|------------------------------|
13-
| [`AbstractProduct`](./classes/PhpDocumentorMarkdown/Example/AbstractProduct.md) | Base class for all products. |
14-
| [`Pizza`](./classes/PhpDocumentorMarkdown/Example/Pizza.md) | A pizza \| pie. |
11+
| Class | Description |
12+
|------------------------------------------------------------------------------|------------------------------|
13+
| [`AbstractProduct`](./classes/PhpDocumentorMarkdown/Example/AbstractProduct) | Base class for all products. |
14+
| [`Pizza`](./classes/PhpDocumentorMarkdown/Example/Pizza) | A pizza \| pie. |
1515

1616
#### Traits
1717

18-
| Trait | Description |
19-
|---------------------------------------------------------------------------------|---------------------------------|
20-
| [`ReviewableTrait`](./classes/PhpDocumentorMarkdown/Example/ReviewableTrait.md) | A trait for reviewable objects. |
18+
| Trait | Description |
19+
|------------------------------------------------------------------------------|---------------------------------|
20+
| [`ReviewableTrait`](./classes/PhpDocumentorMarkdown/Example/ReviewableTrait) | A trait for reviewable objects. |
2121

2222
#### Interfaces
2323

24-
| Interface | Description |
25-
|-----------------------------------------------------------------------------------|--------------------------|
26-
| [`Arrayable`](./classes/PhpDocumentorMarkdown/Example/Arrayable.md) | |
27-
| [`ManyInterfaces`](./classes/PhpDocumentorMarkdown/Example/ManyInterfaces.md) | A ManyInterfaces |
28-
| [`ProductInterface`](./classes/PhpDocumentorMarkdown/Example/ProductInterface.md) | Interface for a product. |
24+
| Interface | Description |
25+
|--------------------------------------------------------------------------------|--------------------------|
26+
| [`Arrayable`](./classes/PhpDocumentorMarkdown/Example/Arrayable) | |
27+
| [`ManyInterfaces`](./classes/PhpDocumentorMarkdown/Example/ManyInterfaces) | A ManyInterfaces |
28+
| [`ProductInterface`](./classes/PhpDocumentorMarkdown/Example/ProductInterface) | Interface for a product. |
2929

3030
### \PhpDocumentorMarkdown\Example\Pizza
3131

3232
#### Classes
3333

34-
| Class | Description |
35-
|-------------------------------------------------------------------|--------------------------|
36-
| [`Base`](./classes/PhpDocumentorMarkdown/Example/Pizza/Base.md) | Represents a pizza base. |
37-
| [`Sauce`](./classes/PhpDocumentorMarkdown/Example/Pizza/Sauce.md) | Pizza sauce class. |
34+
| Class | Description |
35+
|----------------------------------------------------------------|--------------------------|
36+
| [`Base`](./classes/PhpDocumentorMarkdown/Example/Pizza/Base) | Represents a pizza base. |
37+
| [`Sauce`](./classes/PhpDocumentorMarkdown/Example/Pizza/Sauce) | Pizza sauce class. |
3838

3939
### \PhpDocumentorMarkdown\Functions
4040

4141
#### Functions
4242

43-
| Function | Description |
44-
|-----------------------------------------------------------------------------|--------------------------------------------------|
45-
| [`mockFunctionWithParameters()`](./functions/mockFunctionWithParameters.md) | Mock function to demonstrate parameter handling. |
46-
| [`getDatabaseConfig()`](./functions/getDatabaseConfig.md) | Get database configuration. |
43+
| Function | Description |
44+
|--------------------------------------------------------------------------|--------------------------------------------------|
45+
| [`mockFunctionWithParameters()`](./functions/mockFunctionWithParameters) | Mock function to demonstrate parameter handling. |
46+
| [`getDatabaseConfig()`](./functions/getDatabaseConfig) | Get database configuration. |

tests/Functional/expected/classes/PhpDocumentorMarkdown/Example/AbstractProduct.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Base class for all products.
66

77
* Full name: `\PhpDocumentorMarkdown\Example\AbstractProduct`
88
* This class implements:
9-
[`\PhpDocumentorMarkdown\Example\ProductInterface`](./ProductInterface.md)
9+
[`\PhpDocumentorMarkdown\Example\ProductInterface`](./ProductInterface)
1010
* This class is an **Abstract class**
1111

1212
**See Also:**

tests/Functional/expected/classes/PhpDocumentorMarkdown/Example/ManyInterfaces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ManyInterfaces description
1010

1111
* Full name: `\PhpDocumentorMarkdown\Example\ManyInterfaces`
1212
* Parent interfaces:
13-
[`\PhpDocumentorMarkdown\Example\ProductInterface`](./ProductInterface.md),
13+
[`\PhpDocumentorMarkdown\Example\ProductInterface`](./ProductInterface),
1414
`JsonSerializable`
1515

1616
## Inherited methods

tests/Functional/expected/classes/PhpDocumentorMarkdown/Example/Pizza.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ A pizza \| pie.
55
***
66

77
* Full name: `\PhpDocumentorMarkdown\Example\Pizza`
8-
* Parent class: [`\PhpDocumentorMarkdown\Example\AbstractProduct`](./AbstractProduct.md)
8+
* Parent class: [`\PhpDocumentorMarkdown\Example\AbstractProduct`](./AbstractProduct)
99
* This class implements:
10-
[`\PhpDocumentorMarkdown\Example\ProductInterface`](./ProductInterface.md),
10+
[`\PhpDocumentorMarkdown\Example\ProductInterface`](./ProductInterface),
1111
`JsonSerializable`
1212

1313
## Properties

tests/Functional/expected/classes/PhpDocumentorMarkdown/Example/Pizza/Base.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ public getYeast(): int
6969

7070
**Throws:**
7171

72-
- [`Exception`](../../../Exception.md)
72+
- [`Exception`](../../../Exception)
7373

7474
***

tests/Functional/expected/classes/PhpDocumentorMarkdown/Example/ProductInterface.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Interface for a product.
66

77
* Full name: `\PhpDocumentorMarkdown\Example\ProductInterface`
88
* Parent interfaces:
9-
[`\PhpDocumentorMarkdown\Example\Arrayable`](./Arrayable.md)
9+
[`\PhpDocumentorMarkdown\Example\Arrayable`](./Arrayable)
1010

1111
## Methods
1212

tests/Unit/Twig/Macro/MacroTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ public static function dataProviderTestMdNodePath(): array
5050
{
5151
return [
5252
[
53-
'expected' => 'Fully/Qualified/Structural/Element/Name.md',
53+
'expected' => 'Fully/Qualified/Structural/Element/Name',
5454
'args' => ['\Fully\Qualified\Structural\Element\Name'],
5555
],
5656
[
57-
'expected' => 'Fully/Qualified/Structural/Element/Name.md',
57+
'expected' => 'Fully/Qualified/Structural/Element/Name',
5858
'args' => [(object)['FullyQualifiedStructuralElementName' => '\Fully\Qualified\Structural\Element\Name']],
5959
],
6060
];
@@ -73,11 +73,11 @@ public static function dataProviderTestMdClassPath(): array
7373
{
7474
return [
7575
[
76-
'expected' => 'classes/Fully/Qualified/Structural/Element/Name.md',
76+
'expected' => 'classes/Fully/Qualified/Structural/Element/Name',
7777
'args' => ['\Fully\Qualified\Structural\Element\Name'],
7878
],
7979
[
80-
'expected' => 'classes/Fully/Qualified/Structural/Element/Name.md',
80+
'expected' => 'classes/Fully/Qualified/Structural/Element/Name',
8181
'args' => [(object)['FullyQualifiedStructuralElementName' => '\Fully\Qualified\Structural\Element\Name']],
8282
],
8383
];
@@ -96,11 +96,11 @@ public static function dataProviderTestMdFunctionPath(): array
9696
{
9797
return [
9898
[
99-
'expected' => 'functions/Fully/Qualified/Structural/Element/Name.md',
99+
'expected' => 'functions/Fully/Qualified/Structural/Element/Name',
100100
'args' => ['\Fully\Qualified\Structural\Element\Name'],
101101
],
102102
[
103-
'expected' => 'functions/Fully/Qualified/Structural/Element/Name.md',
103+
'expected' => 'functions/Fully/Qualified/Structural/Element/Name',
104104
'args' => [(object)['FullyQualifiedStructuralElementName' => '\Fully\Qualified\Structural\Element\Name']],
105105
],
106106
];
@@ -119,11 +119,11 @@ public static function dataProviderTestMdLink(): array
119119
{
120120
return [
121121
[
122-
'expected' => '[`Unknown`](./classes/Fully/Qualified/Structural/Element/Name.md)',
122+
'expected' => '[`Unknown`](./classes/Fully/Qualified/Structural/Element/Name)',
123123
'args' => ['\Fully\Qualified\Structural\Element\Name', null, null, 'class'],
124124
],
125125
[
126-
'expected' => '[`ClassName`](Structural/Element/Name.md)',
126+
'expected' => '[`ClassName`](Structural/Element/Name)',
127127
'args' => ['\Fully\Qualified\Structural\Element\Name', 'classes/Fully/Qualified', 'ClassName', 'class'],
128128
],
129129
];

themes/markdown/class.md.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% import 'include/macros.twig' as macros %}
22
{% block content %}
3-
{% include 'partials/header.md.twig' with { node: node } only %}
3+
{% include 'partials/header.md.twig' with { node: node } %}
44

55
***
66

themes/markdown/function.md.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% include 'partials/header.md.twig' with {
44
node: node,
55
titleSuffix: '()'
6-
} only %}
6+
} %}
77

88
***
99

0 commit comments

Comments
 (0)