Skip to content

Commit 368685d

Browse files
committed
Merge branch 'main' of github.com:vardumper/extended-htmldocument
2 parents 43a2ffc + 779eef0 commit 368685d

148 files changed

Lines changed: 3453 additions & 253 deletions

File tree

Some content is hidden

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

docs/phpmd.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ layout: home
1313
## Design
1414

1515

16-
Fri Nov 28 15:56:20 CET 2025
16+
Fri Nov 28 15:57:58 CET 2025

src/Trait/DelegatorTrait.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ public function __call($name, $arguments)
2828
$reflection = new ReflectionClass($this->delegated);
2929
if ($reflection->hasMethod($name)) {
3030
$method = $reflection->getMethod($name);
31-
3231
try {
3332
return $method->invokeArgs($this->delegated, $arguments);
3433
} catch (TypeError $e) {

templates/storybook/.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = space
8+
insert_final_newline = true

templates/storybook/.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/.yarn/** linguist-vendored
2+
/.yarn/releases/* binary
3+
/.yarn/plugins/**/* binary
4+
/.pnp.* binary linguist-generated

templates/storybook/.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.yarn/*
2+
!.yarn/patches
3+
!.yarn/plugins
4+
!.yarn/releases
5+
!.yarn/sdks
6+
!.yarn/versions
7+
8+
# Whether you use PnP or not, the node_modules folder is often used to store
9+
# build artifacts that should be gitignored
10+
node_modules
11+
12+
# Swap the comments on the following lines if you wish to use zero-installs
13+
# In that case, don't forget to run `yarn config set enableGlobalCache false`!
14+
# Documentation here: https://yarnpkg.com/features/caching#zero-installs
15+
16+
#!.yarn/cache
17+
.pnp.*
18+
19+
*storybook.log
20+
storybook-static
21+
/.history
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
declare module '*.css' {
2+
const content: string;
3+
export default content;
4+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import type { StorybookConfig } from '@storybook/html-vite';
2+
3+
import { dirname } from "path"
4+
5+
import { fileURLToPath } from "node:url"
6+
7+
/**
8+
* This function is used to resolve the absolute path of a package.
9+
* It is needed in projects that use Yarn PnP or are set up within a monorepo.
10+
*/
11+
function getAbsolutePath(value: string): any {
12+
return dirname(fileURLToPath(import.meta.resolve(`${value}/package.json`)))
13+
}
14+
const config: StorybookConfig = {
15+
stories: [
16+
"../stories/**/*.stories.@(js|jsx|mjs|ts|tsx|mdx)"
17+
],
18+
core: {
19+
disableTelemetry: true,
20+
builder: '@storybook/builder-vite'
21+
},
22+
addons: [
23+
"@storybook/addon-links",
24+
'@storybook/addon-a11y',
25+
'@storybook/addon-docs',
26+
],
27+
framework: {
28+
"name": getAbsolutePath('@storybook/html-vite'),
29+
"options": {}
30+
},
31+
docs: {
32+
toc: true,
33+
defaultName: "Documentation"
34+
},
35+
};
36+
export default config;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<style>
2+
/* Resize the brand logo in the sidebar */
3+
.sidebar-header img {
4+
max-width: 150px !important; /* Adjust this value to your desired width */
5+
max-height: 65px !important; /* Adjust this value to your desired height */
6+
width: auto !important;
7+
height: auto !important;
8+
object-fit: contain !important;
9+
}
10+
</style>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { addons } from 'storybook/manager-api';
2+
import theme from './theme';
3+
4+
addons.setConfig({
5+
theme: theme,
6+
});
7+
export { theme };
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
<style>
2+
/* Hide the default "Show code" toggle button */
3+
.docblock-code-toggle {
4+
display: none !important;
5+
}
6+
7+
.custom-subtitle {
8+
display: block;
9+
margin: .5em !important;
10+
color: rgba(46, 52, 56, 0.75) !important;
11+
font-size: 13px!important;
12+
line-height: 20px !important;
13+
font-weight: 600 !important;
14+
}
15+
16+
.hljs {
17+
background: rgba(0, 0, 0, 0.85) !important;
18+
color: rgb(255, 255, 255) !important;
19+
font-size: 13px !important;
20+
line-height: 19px !important;
21+
border-radius: 5px;
22+
font-family: ui-monospace, Menlo, Monaco, "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro", "Droid Sans Mono", "Courier New", monospace !important;
23+
}
24+
25+
.theme-atom-one-dark pre code.hljs {
26+
display: block;
27+
overflow-x: auto;
28+
padding: 1em
29+
}
30+
31+
.theme-atom-one-dark code.hljs {
32+
padding: 3px 5px
33+
}
34+
35+
.theme-atom-one-dark .hljs {
36+
color: #abb2bf;
37+
background: #282c34
38+
}
39+
40+
.theme-atom-one-dark .hljs-comment,
41+
.theme-atom-one-dark .hljs-quote {
42+
color: #5c6370;
43+
font-style: italic
44+
}
45+
46+
.theme-atom-one-dark .hljs-doctag,
47+
.theme-atom-one-dark .hljs-formula,
48+
.theme-atom-one-dark .hljs-keyword {
49+
color: #c678dd
50+
}
51+
52+
.theme-atom-one-dark .hljs-deletion,
53+
.theme-atom-one-dark .hljs-name,
54+
.theme-atom-one-dark .hljs-section,
55+
.theme-atom-one-dark .hljs-selector-tag,
56+
.theme-atom-one-dark .hljs-subst {
57+
color: #e06c75
58+
}
59+
60+
.theme-atom-one-dark .hljs-literal {
61+
color: #56b6c2
62+
}
63+
64+
.theme-atom-one-dark .hljs-addition,
65+
.theme-atom-one-dark .hljs-attribute,
66+
.theme-atom-one-dark .hljs-meta .hljs-string,
67+
.theme-atom-one-dark .hljs-regexp,
68+
.theme-atom-one-dark .hljs-string {
69+
color: #98c379
70+
}
71+
72+
.theme-atom-one-dark .hljs-attr,
73+
.theme-atom-one-dark .hljs-number,
74+
.theme-atom-one-dark .hljs-selector-attr,
75+
.theme-atom-one-dark .hljs-selector-class,
76+
.theme-atom-one-dark .hljs-selector-pseudo,
77+
.theme-atom-one-dark .hljs-template-variable,
78+
.theme-atom-one-dark .hljs-type,
79+
.theme-atom-one-dark .hljs-variable {
80+
color: #d19a66
81+
}
82+
83+
.theme-atom-one-dark .hljs-bullet,
84+
.theme-atom-one-dark .hljs-link,
85+
.theme-atom-one-dark .hljs-meta,
86+
.theme-atom-one-dark .hljs-selector-id,
87+
.theme-atom-one-dark .hljs-symbol,
88+
.theme-atom-one-dark .hljs-title {
89+
color: #61aeee
90+
}
91+
92+
.theme-atom-one-dark .hljs-built_in,
93+
.theme-atom-one-dark .hljs-class .hljs-title,
94+
.theme-atom-one-dark .hljs-title.class_ {
95+
color: #e6c07b
96+
}
97+
98+
.theme-atom-one-dark .hljs-emphasis {
99+
font-style: italic
100+
}
101+
102+
.theme-atom-one-dark .hljs-strong {
103+
font-weight: 700
104+
}
105+
106+
.theme-atom-one-dark .hljs-link {
107+
text-decoration: underline
108+
}
109+
</style>

0 commit comments

Comments
 (0)