Skip to content

Conversation

@NabeelKhanYYC
Copy link
Contributor

* Updated twig template to properly render reference name for @uses declerations
** Tested and working for method.html.twig but other two have been untested/unverifie
Dockerfile Outdated

COPY . /opt/phpdoc
# This should speed up the build process faster when developing
RUN mkdir -p /opt/phpdoc
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because of the change on the next line this folder doesn't exist

Dockerfile Outdated
COPY . /opt/phpdoc
# This should speed up the build process faster when developing
RUN mkdir -p /opt/phpdoc
COPY ./composer* /opt/phpdoc
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we're installing composer dependencies at this time we only need the composer files not the source

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be tricky, there are a number of composer plugins active that need more files. So changing this could lead to unexpected behavior in the future during development.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I'll see if there's another way I can provide the same end result without creating conflicts. Maybe with a new image target?

Dockerfile Outdated

FROM dev as dev-pcov
# Move the full copy last so modifications don't triger a re-install
COPY . /opt/phpdoc
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy the code over LAST so that we can use the docker cache as much as possible for faster builds

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure we have this, but the vendor directory should be in the dockerignore. Otherwise a possible local vendor dir would be built in.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes are untested.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes are untested.

<dd><a href="{{ tag.reference|route('url') }}"><span class="namespace-wrapper">{{ tag.description ?: tag.reference }}</span></a></dd>
<dd>
<span class="namespace-wrapper">
<a href="{{ tag.reference|route('url') }}">{{ tag.reference }}</a>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed the layout since it's logical for the reference to be clickable and the comment to not be.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes are untested.

@@ -1,18 +1,22 @@
version: '3.8'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To fix the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion warning message

volumes:
- ./:/opt/phpdoc
# Use the container vendor folder not the one from ./
- /opt/phpdoc/vendor
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this we are mapping the current directory to the container and so the vendor folder is missed, with this line docker now knows to ignore that container when mapping and use the existing folder contents from our early build stage.

volumes:
- ./:/opt/phpdoc
# Use the container vendor folder not the one from ./
- /opt/phpdoc/vendor
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this we are mapping the current directory to the container and so the vendor folder is missed, with this line docker now knows to ignore that container when mapping and use the existing folder contents from our early build stage.

context: .
target: dev-pcov
dockerfile: Dockerfile
user: ${CURRENT_UID}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not used anywhere.

context: .
target: dev
dockerfile: Dockerfile
user: ${CURRENT_UID}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not used anywhere.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is being used in the makefile. Which I use for development. so please keep this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add this back with a comment.

Copy link
Member

@jaapio jaapio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the first round of review comments. I haven't tested anything yet. I will do this later

Copy link
Member

@jaapio jaapio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment

@NabeelKhanYYC
Copy link
Contributor Author

I've removed the Docker commit's from this PR.

@jaapio jaapio enabled auto-merge July 17, 2025 20:57
@jaapio
Copy link
Member

jaapio commented Jul 17, 2025

Enabled auto merge. It might be merged when the pipeline passes. An trigger an auto build for docker. So you can use v3-unstable to check your changes after everything is done.

Thanks for your contribution!

@jaapio jaapio merged commit f9e8349 into phpDocumentor:master Jul 17, 2025
84 checks passed
@NabeelKhanYYC
Copy link
Contributor Author

You're welcome @jaapio! Thanks for the quick turn around here.

@NabeelKhanYYC NabeelKhanYYC deleted the fix/3943 branch July 17, 2025 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants