-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Readme does not render in Quarto website #317
Comments
I have made some changes to harmonize the behavior depending on what type of README is used (qmd, Rmd, or md only). Maybe I missed some stuff, could you try with the github version of |
I already tried both the CRAN and devel version before posting this issue, and both failed. |
What kind of README do you have? Is it a qmd or Rmd file that you render to md, or do you just have README.md? |
I have a README.qmd file, and I tried rendering it to md and gfm. I also tried removing anything from the Readme that isn't simple text (i.e. images and code), but altdoc still fails to render the readme properly. Suggestion: Ask users to render Readme to html just like the vignettes. That might save you a lot of headaches (i.e. altdoc could treat Readme file just like any other vignette). |
I found that the README.qmd file should not have a YAML at all, and especially not a preamble instructing building to It can still be rendered with this of course quarto render README.qmd --to gfm |
It seems indeed that the YAML in README.qmd causes a problem. Ideally we would detect it and warn the user to remove it. |
I tried this. But the "home" button will still point to I also noticed this technique causes altdoc to give the following warning many times in a row: |
Ah I see, in This is also sth we should detect automatically I think. |
Yes, that fixes the rendering of the readme when clicking on the "home" button. |
The Readme does not render in a Quarto: it is displayed as a raw markdown file (i.e. how a markdown file would look when you open it with a text editor or something).
Moreover, the "Home" button points to
index.md
, instead ofindex.html
.The text was updated successfully, but these errors were encountered: