Skip to content

Is it possible to build a website from multiple repos? #1282

Answered by jjallaire
pat-alt asked this question in Q&A
Discussion options

You must be logged in to vote

Submodules is certainly one way to go (but I agree they are too fiddly)

Another would be to implement a shared (i.e. identical looking) Navbar across the site and the blog (this would require two separate publish operations)

Yet another would be to use a post-render script on the website (https://quarto.org/docs/projects/quarto-projects.html#pre-and-post-render-scripts) to copy the blog into the _site directory (note you'd probably only want to do the copy when QUARTO_PROJECT_RENDER_ALL="1" so it doesn't happen for incremental preview).

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
7 replies
@pat-alt
Comment options

@adrien-perello
Comment options

@mcanouil
Comment options

@andrewpbray
Comment options

@mcanouil
Comment options

Answer selected by pat-alt
Comment options

You must be logged in to vote
1 reply
@mcanouil
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants