Skip to content

Fixes #316 - better navigation titles - #472

Closed
ugocupcic wants to merge 30 commits into
mkdocs:masterfrom
ugocupcic:F#316_better_nav
Closed

ugocupcic wants to merge 30 commits into
mkdocs:masterfrom
ugocupcic:F#316_better_nav

Conversation

@ugocupcic

Copy link
Copy Markdown

No description provided.

Comment thread mkdocs/utils.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comment thread mkdocs/nav.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If you add the following line here:

return table_of_contents.items[0].title

Then you can simplify this a bit and remove the table_of_contents = None and the if statement below.

Comment thread mkdocs/utils.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

extensions = extensions or [] is how this is typically how this is done.

@d0ugal d0ugal added this to the 0.13.0 milestone Apr 28, 2015
Comment thread mkdocs/build.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why have you moved these around?

@d0ugal

d0ugal commented May 4, 2015

Copy link
Copy Markdown
Contributor

If the circular import hacking is due to looking the addition of looking at metadata, then we should either not do that or find another way to do that.

@ugocupcic

Copy link
Copy Markdown
Author

@d0ugal sorry I'm having a bad day :D Fixed most of the problems you commented on. No more circular dependency problem. The changeset is much smaller now.

@d0ugal

d0ugal commented May 4, 2015

Copy link
Copy Markdown
Contributor

Phew, I was getting a bit worried there :) that looks far batter. I'll wait for the build to finish, give it a second quick check over and then I think it is good to merge. Thanks!

@d0ugal

d0ugal commented May 4, 2015

Copy link
Copy Markdown
Contributor

Looks like a few PEP8 errors, then it should be good.

@ugocupcic

Copy link
Copy Markdown
Author

@d0ugal should be ready now

@d0ugal

d0ugal commented May 4, 2015

Copy link
Copy Markdown
Contributor

@ugocupcic Great, I'm going to merge this with git merge --squash to tidy up the history, otherwise you show up as a git blame for all of relative_path_ext.py etc. The downside being is that you wont show the author, if you want to rebase and squash the commits I'm happy to wait.

If I don't hear anything I'll go ahead and do it in the morning.

@ugocupcic

Copy link
Copy Markdown
Author

@d0ugal I'll push a new branch in a few minutes to cleanup that history.

@ugocupcic

Copy link
Copy Markdown
Author

created #497.

@ugocupcic ugocupcic closed this May 5, 2015
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