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

readme-generator: only pick files (no folder) on the root of 'screenshots' #2120

Merged
merged 4 commits into from
Mar 13, 2024

Conversation

OniriCorpe
Copy link
Member

@OniriCorpe OniriCorpe commented Mar 13, 2024

The problem

if a subfolder exists, it is used as a screenshot file:
![Screenshot of Some App](./doc/screenshots/subfolder)

this is obviously wrong

The solution

  • adapt readme-generator to only pick actual files (no folder) on the root of the 'screenshots' directory
  • also moved the screenshots code part to only run it once, since it do not change with language

this also permit to create subfolders to store pictures only used in docs

PR status

ready to review

@OniriCorpe OniriCorpe requested a review from Psycojoker March 13, 2024 01:57
@OniriCorpe OniriCorpe force-pushed the readme-generator_better-screenshot-handling branch from 6250de8 to 8c777e2 Compare March 13, 2024 02:13
@Salamandar Salamandar merged commit 6a2d24c into master Mar 13, 2024
3 checks passed
@Salamandar Salamandar deleted the readme-generator_better-screenshot-handling branch March 13, 2024 14:31
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