Refactor routing in App component to enhance navigation and improve error handling by integrating dynamic routes and updating the NotFound route.
This commit is contained in:
18
node_modules/astro/dist/cli/docs/index.js
generated
vendored
Normal file
18
node_modules/astro/dist/cli/docs/index.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import { printHelp } from "../../core/messages.js";
|
||||
import { openInBrowser } from "./open.js";
|
||||
async function docs({ flags }) {
|
||||
if (flags.help || flags.h) {
|
||||
printHelp({
|
||||
commandName: "astro docs",
|
||||
tables: {
|
||||
Flags: [["--help (-h)", "See all available flags."]]
|
||||
},
|
||||
description: `Launches the Astro Docs website directly from the terminal.`
|
||||
});
|
||||
return;
|
||||
}
|
||||
return await openInBrowser("https://docs.astro.build/");
|
||||
}
|
||||
export {
|
||||
docs
|
||||
};
|
||||
Reference in New Issue
Block a user