Skip to content

Avoid copying sidebar #605

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

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

greg0ire
Copy link
Member

It should not be built as a document.

Extracted from #594

@@ -56,6 +57,10 @@ public function copyRst(Project $project, ProjectVersion $version): void
$files = $this->rstFileRepository->getSourceFiles($language->getPath());

foreach ($files as $file) {
if (str_ends_with($file, 'sidebar.rst')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

please be aware that this might result into all files with sidebar.rst to be skipped. a file like who-to-render-sidebar.rst will also not be copied.

That's why my initial implementation was looking so odd.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed 👍

@greg0ire greg0ire force-pushed the avoid-copying-sidebar branch from d7d3466 to 5745622 Compare August 21, 2024 20:24
It should not be built as a document.
@SenseException SenseException merged commit c8dc4f0 into doctrine:master Aug 21, 2024
3 checks passed
@greg0ire greg0ire deleted the avoid-copying-sidebar branch August 21, 2024 20:48
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.

3 participants