Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ export default createCommandRouter({
Run \`prismic docs list\` to browse available documentation topics.
Run \`prismic docs view <path>\` to read a topic.
`,
MODELING: `
Pages are page types, built from slices and fields. Content that is
not a page is a custom type, such as an author or a navigation menu.
A page references a custom type with a content relationship field,
instead of repeating its content.
Run \`prismic type list\` to see what a project has, and
\`prismic docs view content-modeling\` for details.
`,
ROUTES: `
Page URLs are routes in prismic.config.json, for example:
{ "type": "blog_post", "path": "/blog/:uid" }
Expand Down
1 change: 1 addition & 0 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ it("supports --help", async ({ expect, prismic }) => {
const { stdout, stderr, exitCode } = await prismic("", ["--help"]);
expect(exitCode, stderr).toBe(0);
expect(stdout).toContain("prismic <command> [options]");
expect(stdout).toContain("MODELING");
expect(stdout).toContain("ROUTES");
expect(stdout).not.toContain("starter");
});
Expand Down
Loading