- Edit source docs.
- Run
make display
- Look at the output, which lives in
display/; revise; repeat. - Commit changes. (
git commit -a) - When it all looks good, run
make publish
- When you update your github repository, also update the gh-pages branch, e.g. by:
git push origin --all
or, to be specific
git push origin master:master
git push origin gh-pages:gh-pages
Then, the web page for your project will have nice, freshly updated html made from your latex and markdown documents.
7. If you want pdf and/or html docs (which will appear in display/), do
make pdfs
make htmls
- Occasionally, run
make clean
to keep things tidy.
- Download the source from this project, unzip it, and rename the resulting directory to whatever you want your project to be called.
- Initialize a git repository in that directory and add the files to the repository. (
git init .; git add $(git ls-files --other); git commit -a -m 'initial skeleton') - Run
make setupto set up thegh-pagesbranch. - Get some source files in there. Add them to the repository (
git add). - Follow "Workflow" above.
make displayruns pandoc on all the.mdor.Rmdfiles to create the html/xhtml indisplay/.- The
gh-pagesbranch keeps a copy of everything in thedisplay/directory.make publishchecks outgh-pages, and updates fromdisplay/, removing from the index all files no longer present. This means anything indisplay/you check into git will '''not appear in gh-pages'''.
- You could replace the "push to gh-pages" step with updating a static website, as described here.
- This automatically creates an
index.xhtmlpage for you; to make your own, just create an index.md or index.tex file.
- Do not put spaces in the file names. This will confuse
makea whole lot.
- Should also automatically copy over tracked
.html, etcetera files? - Make it so we don't have to
cleanout all the latexml'ed temporary image files all the time?