yishn / tikzcd-editor

A simple visual editor for creating commutative diagrams.

Home Page:https://tikzcd.yichuanshen.de/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Automated deployment or gh-pages deployment

cemulate opened this issue · comments

It seems right now that the site living at tikzcd.yichuanshen.de is not up to date with the latest release in this repo.

Since this is a static site, it can be deployed on the repo's gh-pages branch, so it would be available at yishn.github.io/tikzcd-editor.

It's not exactly the most elegant thing in the world, but with the gh-pages package, this could be as easy as adding the following npm script:

"deploy": "mkdir -p deploy; cp index.html deploy; cp favicon.ico deploy; cp -r dist deploy; cp -r css deploy; cp -r img deploy; gh-pages -d deploy"

Which would instantly update your gh-pages branch with the latest version of the site. I'm doing this now on my fork just as an example - If you want to remain hosting it wherever you are now, I'm sure a similar process could be automated without much trouble.

Before making a PR or anything, I wanted to open an issue and see if you had any thoughts on this.

The gh-pages package sure is pretty convenient. But I don't plan to change the URL of this application.

My hosted version is actually up to date with the latest release in this repo. The master branch hasn't been released yet. I planned to devote more time to this project around Christmas last year, but I was busy with one or two of my other projects.

But hopefully I can polish the master branch soon, now that Chinese New Year has come and gone, and also review/merge all the PRs.

Ah, my bad, I see now it's up to date with the latest release, just that the tip of master isn't released yet. Best of luck!