Closed gabalafou closed 7 months ago
PR Preview Action v1.2.0
:---:
:rocket: Deployed preview to https://Quansight-Labs.github.io/accessible-pygments/pr-preview/pr-41/
on branch gh-pages
at 2024-03-27 12:10 UTC
Do we know why PR-preview (GitHub action) doesn't work?
Is this being done in other PR? think I saw another one with jinja templates
No, this is still an open problem. The Jinja template in the other PRs is used to generate the theme READMEs, but not the demo index.html page.
This PR removes all of the generated HTML and CSS from the repo and refactors the build scripts.
There is perhaps an argument for committing built examples to the repo. That way a user can open the demo page from their own local repo into their browser without having to execute any build command first. But we can add that later if we want.
My goal is to make the repo easier to understand by stripping it of everything but READMEs, config files, source code, scripts, and tests.
My ultimate goal is to simplify and automate the process of updating or adding a theme. This PR helps that goal by removing steps 2, 3, and 4 from the list of steps in issue #34. The trade-off that this PR makes to achieve that goal is that the docs/index.html file can no longer be opened locally from the repo and just work (to make it work locally, developers will need to run the
render_html
command). Subsequent PRs will automate steps 5 and 6, so that updating a theme will involve the following steps: