Skip to content

Remove include_nav and include_next_prev - #681

Closed
lovelydinosaur wants to merge 2 commits into
masterfrom
drop-include-nav-include-next-prev
Closed

lovelydinosaur wants to merge 2 commits into
masterfrom
drop-include-nav-include-next-prev

Conversation

@lovelydinosaur

Copy link
Copy Markdown
Collaborator

Closes #679.

I still need to eyeball this to verify that the template nav|length>1 filtering really does behave as expected.

@lovelydinosaur

Copy link
Copy Markdown
Collaborator Author

Works as expected...

single page:

image

multiple pages:

image

@lovelydinosaur

Copy link
Copy Markdown
Collaborator Author

I leave the decision on this to you @d0ugal. Personally I think we should just go ahead with it and document in release notes that those two bits of config/context have been removed (anyone with a custom theme who's updating might need to act on that.)

@lovelydinosaur

Copy link
Copy Markdown
Collaborator Author

@d0ugal

d0ugal commented Jul 3, 2015

Copy link
Copy Markdown
Contributor

Seems reasonable. Away until Sunday, so won't take a proper look until then.

There is a way in config_options to deprecate options - which means we can show people a specific error rather than one like "this doesn't exist" - it is undocumented and unused because of $reasons. I can show you an example next week.

The purpose of it was for moving non-behavioural config options under extra. I pulled the move from the last release but left the code to do it still.

It might need some tweaking for config options that are being just removed vs moved.

@d0ugal

d0ugal commented Jul 7, 2015

Copy link
Copy Markdown
Contributor

@tomchristie See #684. I searched a bit on GitHub and see a few people using it so I think it is worth showing something a bit more descriptive.

It's a bit confusing as your dev branch is on the mkdocs repo, the PR is for that.

@lovelydinosaur

Copy link
Copy Markdown
Collaborator Author

It's a bit confusing as your dev branch is on the mkdocs repo, the PR is for that.

I guess it'd be worth me starting to use tomchristie/mkdocs instead, right?

@d0ugal

d0ugal commented Jul 7, 2015

Copy link
Copy Markdown
Contributor

I guess it'd be worth me starting to use tomchristie/mkdocs instead, right?

I don't have any strong opinions, so it is up to you. I just prefer to keep dev branches in my fork. I am not even sure GitHub will let you as https://github.com/tomchristie/mkdocs redirects to mkdocs/mkdocs

@d0ugal

d0ugal commented Jul 7, 2015

Copy link
Copy Markdown
Contributor

Two further things.

  • mkdocs.config.config_options.NumPages (and related tests) can be removed with this change.
  • Needs an addition to the release notes.

@d0ugal d0ugal added this to the 0.16 milestone Apr 24, 2016
@d0ugal

d0ugal commented Apr 24, 2016

Copy link
Copy Markdown
Contributor

I plan to come back to this and update it for the next release, but anyone else interested should feel free to have a go first.

@waylan

waylan commented Aug 15, 2016

Copy link
Copy Markdown
Contributor

I've updated this and went with graceful deprecation in #1026. I'm closing this in favor of #1026.

@waylan waylan closed this Aug 15, 2016
@waylan
waylan deleted the drop-include-nav-include-next-prev branch August 15, 2016 01:02
waylan pushed a commit to waylan/mkdocs that referenced this pull request Aug 16, 2016
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