How to version/deploy mystmd website? #526
Replies: 2 comments 2 replies
-
@sneakers-the-rat , I think it depends on how you are serving the website. i.e. if you are going to serve directly with Node by using |
Beta Was this translation helpful? Give feedback.
-
From the experimentation on #982, RTD seems to handle version control by default, although there are some issues to resolve:
Footnotes |
Beta Was this translation helpful? Give feedback.
-
Taking a little curiosity poke around making a myst website for lab meeting slides, and i'm a little curious how I'm intended to version/deploy this.
After doing the
myst init
I have amyst.yml
and_build
directory that hassite
andtemplates
subdirectories. It looks like the default book template was cloned into thetemplates
directory, and it has all of the assets along with it. This seems like a lot to commit to the repo, as eg.book-theme
also has abook-theme-main
subdirectory that has a second copy of a lot of thethebe-lite
minified js files, etc. I would just.gitignore
them and do the installation in my github actions workflow for deploying to gh pages but then I'm not sure how to override the default template. To be clear - i'm not having trouble actually getting the page to build or doing the deployment to gh pages, my question is just about intended usage :)For reference, I've used jekyll for a long time, as well as jupyter-book, etc. and typically the content of the page is kept separate from the templates which are kept separate from the built page. In Jekyll, I can override any individual part of the template by just making a file with the same name in a
_layouts
or_includes
directory, so I don't have to have the whole theme in my repository.Curious what the intended usage is - should I just suck it up and commit the whole thing to the repo?
Beta Was this translation helpful? Give feedback.
All reactions