Documentation for publishing Quarto to OneDrive/SharePoint, GitLab, and GitHub #8447
ArthurAndrews
started this conversation in
Feature Requests
Replies: 1 comment 7 replies
-
The Quarto docs do have a Publishing section that includes fairly detailed instructions for GitHub Pages. There's also a section for other services. I hope those help! Interested to learn that Quarto pages can run on SharePoint this way! I don't know too much about SharePoint 😊 |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I have been sharing Quarto documents and dashboards within my company using OneDrive/SharePoint and GitLab. It's a convenient way to share results securely and with some degree of automation. I recommend adding instructions to the Quarto documentation to share these capabilities with other users.
I can spell out the steps in a brief way. Please let me know if this isn't enough detail.
Publishing to OneDrive / SharePoint
Within the Microsoft ecosystem, a user can right click a folder or a file and "share." This will send a OneDrive link to file or folder to the recipients and grant them to the read/write permissions. This is integrated somewhat with SharePoint in that sharing a folder through this OneDrive mechanism will send them a link to a SharePoint folder. This is a great way to share files within the company with the user authentication / security that's simply built in.
Unfortunately, .html files won't be directly browsable through this method. Clicking an .html will instead download it. Luckily, there is a documented hack where simply renaming the file from .html to .aspx will create a browsable page. By renaming rendered Quarto files to .aspx, one can create a sharable and browsable link for specific recipients. I don't remember exactly when or how I learned this, but perhaps it was from this SO question:
https://stackoverflow.com/questions/49316205/how-can-i-create-a-self-contained-html-report-with-rmarkdown/59250591#59250591
This method can be extended to actually create a whole set of .aspx reports / dashboards that are linked together with relative hyperlinks to create a whole Quarto "website" in a lightweight way without git or web servers.
Perhaps this can be automated with
quarto_render("file.qmd", "file.aspx")
. I haven't tried it! I'd defer to the Quarto developers exactly how they suggest a user can accomplish this.GitLab Pages
Both GitLab and GitHub have a Pages feature where a project can publish .html or simply host .html in the public/ folder. This is a more formal way to host content.
Publish .html: in this way, the project code actually renders the .html with CI/CD upon a pull request etc.
Host .html: or, the user can simply commit and push .html in the public folder.
Either way, this is another great way to share Quarto content. This is surely well-known to the Quarto developers, but some documentation or resources would be welcome.
There is a decent template for this sort of documentation here for Posit Connect. The context is different, but much of the code would be identical.
https://solutions.posit.co/operations/deploy-methods/ci-cd/gitlab-ci-cd/
Another possible step is for the Quarto developers to actually publish an official Quarto Docker image including R, Py, Quarto, and commonly-used html widgets like
plotly
,reactable
,leaflet
, etc. Perhaps this Dockerfile would be based on the excellentrocker
project images with a few additional installations. Because therocker
images are Ubuntu based and Ubuntu simply comes with Python installed, these images are already a great template for anything involving R + Py.This Docker image would jump start the integration of Quarto reporting with GitLab and GitHub for users.
Many thanks to the Quarto devs! It's an amazing tool and I happily use it every day.
Beta Was this translation helpful? Give feedback.
All reactions