Skip to content
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

Skip generating auxiliary files in the main built loop when there is no underlying content #511

Conversation

caendesilva
Copy link
Member

Fixes #482 and #482 (comment)

Now checks if there are blog posts before creating the RSS feed, and if there are documentation pages before generating the search page and JSON index.

Note that this only changes behaviour for the php hyde build command. You can still generate the files by calling build:rss and build:search.

Fix #482: Skip generating search.json and search.html if there are no documentation pages
@codecov
Copy link

codecov bot commented Jun 4, 2022

Codecov Report

Merging #511 (8b38896) into master (70d1dd9) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #511   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           11        11           
=========================================
  Hits            11        11           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 70d1dd9...8b38896. Read the comment docs.

@caendesilva caendesilva merged commit 2648e78 into master Jun 4, 2022
@caendesilva caendesilva deleted the 482-skip-generating-searchjson-and-searchhtml-if-there-are-no-documentation-pages branch June 4, 2022 17:12
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.

Skip generating search.json and search.html if there are no documentation pages
1 participant