Skip to content

Commit

Permalink
chore(docs): deprecate ionic docs command (#4905)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdebeasi authored Sep 9, 2022
1 parent cb0f91b commit f34da62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@ionic/cli/src/commands/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ export class DocsCommand extends Command {
const homepage = 'https://ion.link/docs';
const url = this.project ? await this.project.getDocsUrl() : homepage;

this.env.log.warn(`The ${input('ionic docs')} command has been deprecated and will be removed in an upcoming major release of the Ionic CLI. Developers should bookmark ${url} in their browser for easy access.`);

try {
const { req } = await createRequest('HEAD', url, this.env.config.getHTTPConfig());
await req;
Expand Down

0 comments on commit f34da62

Please sign in to comment.