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

Proposal to run Jekyllify right before the website is built #58

Closed
wants to merge 22 commits into from
Closed

Proposal to run Jekyllify right before the website is built #58

wants to merge 22 commits into from

Conversation

uy-rrodriguez
Copy link
Contributor

The idea of running Jekyllify right before the page build seems to be working.
Sample published here:
https://uy-rrodriguez.github.io/uclh-research-discovery/

In essence, an artifact is exported with the contents of _projects after Jekyllify, which is then imported before generating the website.

The changes are never committed. You can see, for e.g., that the test project stays as initially uploaded:
https://github.com/uy-rrodriguez/uclh-research-discovery/tree/main/_projects/UCLH_mock_data

The files with the generated front-matter can be seen in the artifact, accessible from the action page. I set it to expire after a day, it's useful for debugging but I'm not sure we need it longer.

Minor changes

  • Usage of package titlecase instead of string.title(), to support acronyms and ignore connectors (like "and", "of"). Acronyms need to appear in capitals in the project folder (e.g. "UCLH"). Not sure this is very useful since users can provide a title.txt.
  • Script check_projects.py imported from jekyllify.py to reuse the logic that checks for files.

@github-actions github-actions bot requested a review from tcouch January 17, 2024 22:51
@uy-rrodriguez uy-rrodriguez mentioned this pull request Jan 18, 2024
@uy-rrodriguez
Copy link
Contributor Author

Changes proposed where applied in #59

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