Publish multiple books with github-pages

31 views
Skip to first unread message

hsig...@gmail.com

unread,
Aug 18, 2024, 3:10:41 AM8/18/24
to PreTeXt support
How can I publish more than a one book at username.github.io? I follow the instructions and the site is at username.github.io/frontmatter.html for book1, how proceed to publish another book?

I dont want to use codespaces, or edit from github directly, i prefer to work from my side: source in my pc+edit in vim +pretext build web+pretext deploy

Oscar Levin

unread,
Aug 18, 2024, 4:20:17 AM8/18/24
to pretext...@googlegroups.com
Each repository you will get it's own "subfolder" on username.github.io.  So just keep each book in its own repo, and then follow the pretext build/deploy workflow.

On Sat, Aug 17, 2024, 9:10 PM hsig...@gmail.com <hsig...@gmail.com> wrote:
How can I publish more than a one book at username.github.io? I follow the instructions and the site is at username.github.io/frontmatter.html for book1, how proceed to publish another book?

I dont want to use codespaces, or edit from github directly, i prefer to work from my side: source in my pc+edit in vim +pretext build web+pretext deploy

--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/27a2ce33-bba0-4708-a518-4e81962747b1n%40googlegroups.com.

Sean Fitzpatrick

unread,
Aug 18, 2024, 12:53:31 PM8/18/24
to pretext...@googlegroups.com

If you have multiple versions of a book that you build from one repo, there is currently no workflow for that, correct?
(E.g. maybe you use versions to produce an early transcendentals version or something that leads to multiple HTML targets in your project file.)
I'm not publishing to GitHub but I figure these things are useful to know.


Oscar Levin

unread,
Aug 18, 2024, 1:15:59 PM8/18/24
to pretext...@googlegroups.com
There is a bit of an Easter egg right now, because it is not documented, to create a "site" of targets on deploy.  So you would specify which targets you want to deploy and then you will get a landing page with links to each output.

Steven Clontz

unread,
Aug 19, 2024, 9:04:32 PM8/19/24
to PreTeXt support
Hints for that Easter Egg: https://github.com/TeamBasedInquiryLearning/library and https://tbil.org/

All of that is subject to change as I experiment using it in production for the TBIL library, but if anyone feels brave and wishes to try it out, let me know. Right now, the biggest sticking point is that CodeChat is only wired up to one target at a time, so if you use that tool for authoring, it's a bit hacky to get it working with different versions in some cases (and definitely with different books).
Reply all
Reply to author
Forward
0 new messages