Skip to content

Commit

Permalink
Updated nav
Browse files Browse the repository at this point in the history
  • Loading branch information
ebidel committed Nov 18, 2014
1 parent c4fe612 commit b035554
Show file tree
Hide file tree
Showing 31 changed files with 358 additions and 326 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ kramdown:

# Site globals used throughout docs.
project_title: Polymer
project_status: 'Dev preview'
latest_version: 0.5.1
add_permalinks: true # adds permalinks to heading tags.
load_disqus: true
10 changes: 5 additions & 5 deletions _data/pagetypes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ default:
menu: other
start:
headertitle: Basics
menu: docs
menu: start
concepts:
headertitle: Concepts
menu: docs
menu: start
core:
headertitle: Polymer
menu: docs
headertitle: "Guides & Resources"
menu: guides
elements:
headertitle: Elements
menu: elements
platform:
headertitle: Platform
menu: docs
menu: start
6 changes: 3 additions & 3 deletions _includes/top-nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
{% endif %}
{% endcapture %}

<app-bar theme="{{theme | trim }}" class="bar fixed" unresolved>
<a href="/docs/start/tutorial/intro.html" class="paper-button {% if page.navgroup == 'docs'%}active{% elsif page.navgroup == 'start' %}active{% endif %}" borderless sink>Learn</a>
<app-bar theme="{{theme | trim }}" {% if page.layout == 'home'%}home{% endif %} badge="{{site.project_status}}" class="bar fixed" unresolved>
<a href="/docs/start/tutorial/intro.html" class="paper-button {% if page.navgroup == 'docs'%}active{% elsif page.navgroup == 'start' %}active{% endif %}" borderless sink>Get Started</a>
<a href="/docs/elements/" class="paper-button {% if page.navgroup == 'elements' %}active{% endif %}" borderless sink>Elements</a>
<a href="/resources/faq.html" class="paper-button {% if page.navgroup == 'resources' %}active{% endif %}" borderless sink>Resources</a>
<a href="/resources/faq.html" class="paper-button {% if page.navgroup == 'resources' %}active{% endif %}" borderless sink>Guides &amp; Resources</a>
<a href="//blog.polymer-project.org" target="_blank" class="paper-button" borderless sink>Blog</a>
</app-bar>
15 changes: 3 additions & 12 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@

{% include dropdown-panel.html %}

<docs-menu unresolved menu="{{site.data.pagetypes[page.type].menu}}" flex></docs-menu>
<docs-menu unresolved menu="{{site.data.pagetypes[page.type].menu}}" flex
coreElements='{% list_components dir:components prefix:core blacklist:"core-slide core-layout core-doc-viewer core-home-page core-home-page-dev core-transition-css core-overlay-layer core-key-helper core-doc-toc core-doc-page core-component-page core-popup-menu" %}'
paperElements='{% list_components dir:components prefix:paper blacklist:"paper-calculator paper-doc-viewer paper-ink paper-scaffold paper-menu-button-transition paper-menu-button-overlay-container paper-form paper-row paper-group paper-doc-toc paper-doc-page"%}'></docs-menu>
</div>
</app-drawer>

Expand Down Expand Up @@ -71,16 +73,5 @@ <h1>{{page.title}}</h1>

</main>

<script>
{%comment%}
// Set the docs-menu core and paper element list. Cannot be in the docs-menu
// element because Jekyll has to process the list_components.rb script.
{%endcomment%}
document.addEventListener('polymer-ready', function(e) {
var docsMenu = document.querySelector('docs-menu');
docsMenu.coreElements = {% list_components dir:components prefix:core blacklist:"core-slide core-layout core-doc-viewer core-home-page core-home-page-dev core-transition-css core-overlay-layer core-key-helper core-doc-toc core-doc-page core-component-page core-popup-menu" %};
docsMenu.paperElements = {% list_components dir:components prefix:paper blacklist:"paper-calculator paper-doc-viewer paper-ink paper-scaffold paper-menu-button-transition paper-menu-button-overlay-container paper-form paper-row paper-group paper-doc-toc paper-doc-page"%};
});
</script>
</body>
</html>
2 changes: 1 addition & 1 deletion css/elements/app-bar.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b035554

Please sign in to comment.