Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify prompts for new builds #7

Open
2 tasks
kjaymiller opened this issue Jan 8, 2024 · 1 comment
Open
2 tasks

Simplify prompts for new builds #7

kjaymiller opened this issue Jan 8, 2024 · 1 comment

Comments

@kjaymiller
Copy link
Collaborator

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.
@john0isaac
Copy link
Member

john0isaac commented Jan 9, 2024

Make the creation of a blog in a new subcommand

Like render-engine init blog, render-engine init page, render-engine init collection, etc

Each element that can be created via the render engine will be initialized using one command - No need for me to edit something or remove unnecessary parts of the code.. etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants