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

Change init --theme to place theme in root. #1432

Merged
merged 1 commit into from
Jan 7, 2021

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented Jan 6, 2021

A long time ago (#491, #696), the location of themes was changed from src/theme to theme. However, mdbook init --theme was never updated to place the theme in the new location. This updates the init command to place the theme directory in the root.

This also includes a few minor fixes:

  • If the css directory exists, don't fail.
  • Don't print the overwrite warning if it isn't actually going to overwrite anything.

Closes #1412

@Dylan-DPC-zz Dylan-DPC-zz merged commit 77e7cfd into rust-lang:master Jan 7, 2021
notriddle pushed a commit to notriddle/mdBook that referenced this pull request Dec 23, 2021
rubenmoor pushed a commit to rubenmoor/mdBook that referenced this pull request Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mdbook init incorrectly places the "themes" folder
2 participants