diff --git a/news/changelog-1.9.md b/news/changelog-1.9.md index 3de5e42090..69868a0229 100644 --- a/news/changelog-1.9.md +++ b/news/changelog-1.9.md @@ -129,6 +129,10 @@ All changes included in 1.9: ## Publishing +### Quarto Pub Sunsetting + +- ([#14060](https://github.com/quarto-dev/quarto-cli/issues/14060)): Remove `quarto publish quarto-pub` option due to Quarto Pub sunsetting. + ### Posit Connect Cloud - ([#14027](https://github.com/quarto-dev/quarto-cli/issues/14027)): Add `quarto publish posit-connect-cloud` for publishing static content to Posit Connect Cloud. diff --git a/src/command/publish/cmd.ts b/src/command/publish/cmd.ts index 72c0e7bbf0..972000ec1d 100644 --- a/src/command/publish/cmd.ts +++ b/src/command/publish/cmd.ts @@ -47,7 +47,6 @@ export const publishCommand = .name("publish") .description( "Publish a document or project to a provider.\n\nAvailable providers include:\n\n" + - " - Quarto Pub (quarto-pub)\n" + " - GitHub Pages (gh-pages)\n" + " - Posit Connect (connect)\n" + " - Posit Connect Cloud (posit-connect-cloud)\n" + diff --git a/src/publish/provider.ts b/src/publish/provider.ts index 3e2549d8de..32157e676c 100644 --- a/src/publish/provider.ts +++ b/src/publish/provider.ts @@ -6,7 +6,6 @@ import { netlifyProvider } from "./netlify/netlify.ts"; import { ghpagesProvider } from "./gh-pages/gh-pages.ts"; -import { quartoPubProvider } from "./quarto-pub/quarto-pub.ts"; import { rsconnectProvider } from "./rsconnect/rsconnect.ts"; import { confluenceProvider } from "./confluence/confluence.ts"; import { huggingfaceProvider } from "./huggingface/huggingface.ts"; @@ -19,7 +18,6 @@ export function accountTokenText(token: AccountToken) { } const kPublishProviders = [ - quartoPubProvider, ghpagesProvider, rsconnectProvider, netlifyProvider, @@ -41,5 +39,13 @@ export function findProvider(name?: string) { `See https://docs.posit.co/cloud/whats_new/#october-2024 for details.`, ); } + if (name === "quarto-pub") { + warning( + `The Quarto Pub publishing destination is no longer supported. ` + + `Consider publishing to Posit Connect Cloud instead ` + + `using \`quarto publish posit-connect-cloud\`. ` + + `See https://docs.posit.co/cloud/whats_new/#october-2024 for details.`, + ); + } return kPublishProviders.find((provider) => provider.name === name); }