New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use doctrine/static-website-generator #256
Conversation
2c3cb26
to
1221dc2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the introduction of the routes and need to add further reviews later. 👍
lib/Routing/Router.php
Outdated
'GET', | ||
$url['host'], | ||
$url['scheme'], | ||
$url['port'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make the port optional? This new version of the website doesn't allow doctrine.website.url
without a port.
Notice: Undefined index: port in lib/Routing/Router.php on line 40
) : SourceFileParameters { | ||
$parameters = []; | ||
|
||
if (preg_match('/^\s*(?:---[\s]*[\r\n]+)(.*?)(?:---[\s]*[\r\n]+)(.*?)$/s', $string, $matches) > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This if-block should be in a private method and get a good name.
lib/Routing/Router.php
Outdated
'GET', | ||
$url['host'], | ||
$url['scheme'], | ||
$url['port'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make the port optional? This new version of the website doesn't allow doctrine.website.url
without a port.
a2c1e96
to
fd4fe97
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I worked through the files now. Please take a look at my comments.
composer.json
Outdated
@@ -17,6 +17,7 @@ | |||
"doctrine/inflector": "^1.3", | |||
"doctrine/rst-parser": "dev-master", | |||
"doctrine/skeleton-mapper": "dev-master", | |||
"doctrine/static-website-generator": "dev-master", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A lot of dev-master are in here now. Will there be a release version for this before the PR gets closed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so. Getting the standalone pieces integrated here was one of the last steps. I still want to upgrade doctrine/doctrine-website to be a Symfony Flex app which uses https://github.com/doctrine/DoctrineSkeletonMapperBundle and https://github.com/doctrine/DoctrineStaticWebsiteGeneratorBundle
ef52d7f
to
783c196
Compare
a23ab3b
to
73843b3
Compare
15580b1
to
8d2c6d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes are done and I was able to build the website locally (excluding those sites that needed Github connection).
Use https://github.com/doctrine/static-website-generator for the basic static site generator functionality.