Skip to content

Ensure site_url and use_directory_urls do not conflict.#2405

Merged
waylan merged 3 commits intomkdocs:masterfrom
waylan:2189
May 17, 2021
Merged

Ensure site_url and use_directory_urls do not conflict.#2405
waylan merged 3 commits intomkdocs:masterfrom
waylan:2189

Conversation

@waylan
Copy link
Copy Markdown
Contributor

@waylan waylan commented May 13, 2021

The site_url config option is now required. If it is set to an empty
string, then use_directory_urls will be forced to false. Each will
issue a warning if not properly set. In a future release we may
raise an error instead.

Fixes #2189.

The site_url config option is now required. If it is set to an empty
string, then use_directory_urls will be forced to false. Each will
issue a warning if not properly set. In a future release we may
raise an error instead.

Fixes mkdocs#2189.
@waylan
Copy link
Copy Markdown
Contributor Author

waylan commented May 13, 2021

Through config validation, this makes it impossible to have site_url be empty and use_directory_urls be True. Therefore, the situation described in #2189 will never occur.

@waylan waylan merged commit b89ec57 into mkdocs:master May 17, 2021
@waylan waylan deleted the 2189 branch May 17, 2021 13:44
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.

Use use_directory_urls: false breaks on empty site_url

1 participant