Skip to content
Draft
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions app/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@
"slim/twig-view": "^3.0.0",
"php-di/php-di": "^7.0",
"ext-json": "*",
"symfony/yaml": "^6.4.7"
"symfony/yaml": "^6.4.7",
"swagger-api/swagger-ui": "^5.29"
},
"require-dev": {},
"scripts": {
"serve": [
"php -S 0.0.0.0:8000 -t public"
],
"start-ddev": [
"cd .. && bash ddev-developer-docs.sh"
]
}
}
63 changes: 62 additions & 1 deletion app/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions app/helpers/Markdown/IncludeFilePostprocessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ private function getFileContent($url, $escape)
return 'remote file inclusion disabled';
}

// Replace the placeholder with the actual domain
if (str_contains($url, '[DOCS_DOMAIN]')) {
$url = str_replace('[DOCS_DOMAIN]', DOCS_DOMAIN, $url);
}

try {
$content = @file_get_contents($url);
if ($content) {
Expand Down
Loading