Skip to content

Publishing quarto content in another quarto project (e.g. quarto-project -> quarto-blog) #11677

Answered by sjdh
sjdh asked this question in Q&A
Discussion options

You must be logged in to vote

Workflow "publishing from project to blog"

Problem

While working on a stand-alone project, I want to publish a post to my quarto blog from the project.
I do not want to make the project a dependency of the blog.

Solution

Keep all processing in the context of the project, including

  • Execute code
  • Generate figures

Step 1 - Render post in the project

quarto render --output-dir <path to blog>/posts --to md  blog_post.qmd 

Step 2 - Render the blog

quarto render 

Possible bug

On my setup, Quarto executable blocks are not converted to markdown code blocks when I run

quarto render --output-dir <path to blog>/posts--to md   blog_post.qmd 

Removing the --output-dir option solved this.

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
12 replies
@sjdh
Comment options

@mcanouil
Comment options

@sjdh
Comment options

@mcanouil
Comment options

@sjdh
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by sjdh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants