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

Add a navigation bar for moving between projects/versions #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

philomory
Copy link

This PR adds a new type of URL, /<project>/<version>/, to supplement the existing /static/docfiles/<project>/<version>/ urls. The new URL format loads a 'viewport' page with a small navigation bar at the top, and the actual documentation loaded in a iframe below. This allows you to quickly navigate between projects and/or versions without having to go back to the index page. Links on the index page are also updated to take you to the viewport page rather than the raw docfiles (although the docfiles URLs still work exactly as they did before).

Some javascript is used to ensure that navigating around the documentation in the iframe still causes the URL in the address bar ot update appropriately, and, clicking an external link in the iframe loads in a new tab.

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.

1 participant