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

Build 404 pages from the theme if they exist #194

Merged
merged 3 commits into from
Nov 11, 2014
Merged

Conversation

d0ugal
Copy link
Member

@d0ugal d0ugal commented Nov 6, 2014

No description provided.

@d0ugal d0ugal added this to the 0.11.0 milestone Nov 6, 2014
This change involved breaking up the context generation to create a sub
context that can be used for rendering pages not based on a specific
Markdown file.
canonical_url = None

global_context = get_global_context(nav, config)
local_context = global_context.copy()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than nest these would it be clearer if code using them calls each separately and combines the two dicts?
Maybe cleaner to have that done at the top level, rather than nested in here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I nearly done this but then forgot.

@jpadilla
Copy link

@d0ugal works and lgtm.

@d0ugal
Copy link
Member Author

d0ugal commented Nov 11, 2014

Thanks! Are you happy with it now @tomchristie?

@tomchristie
Copy link
Member

Yup, fab!

d0ugal added a commit that referenced this pull request Nov 11, 2014
Build 404 pages from the theme if they exist
@d0ugal d0ugal merged commit 229f7ee into mkdocs:master Nov 11, 2014
@d0ugal d0ugal deleted the 404 branch November 11, 2014 20:32
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.

3 participants