Skip to content

Simplify prompts for new builds #7

@kjaymiller

Description

@kjaymiller

Via John in Render-Engine Discord:

Feedback about cookie cutter init
isn't specifying 9 things to initialize a project too much?
There should be a way to skip this.
Use defaults and edit later

I noticed the --no-input parameter but still 9 things to start is not a good thing. I suggest that we think of a different scenario for the init (blogs and collections removed from init)


I don’t think we can skip all of them (also if you just press enter it will go with the defaults).

I do agree that we can reduce the amount of options. Here are some suggestions.

I would love John’s opinion on the following compromise.


Here are the ones that are currently prompted (via - https://github.com/render-engine/cookiecutter-render-engine-site/blob/main/cookiecutter.json)

"SITE_URL": "http://example.com",
"author_name": "Your Name",
"author_email": "me@{{cookiecutter.SITE_URL}}",
"output_path": "output",
"app_filename": "app.py",
"SITE_TITLE": "Untitled Site",
"project_slug": "{{cookiecutter.SITE_TITLE | slugify}}",
"skip_collection": false,
"skip_blog": false,
We could hide all these except for SITE_URL and SITE_TITLE I don't think you can hide project_slug as it's a requirement for cookiecutter.

Potential New Issues to Create

  • Mark app_filename, output_path, skip_collection, and skip_blog as optional.
  • Remove author_name/author_email completely from template as they are not needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions