Skip to content

Commit

Permalink
Merge pull request #1023 from roboflow/fix/docs-homepage-mobile-nav
Browse files Browse the repository at this point in the history
Fix docs homepage mobile nav
  • Loading branch information
yeldarby authored Feb 12, 2025
2 parents 5ee86e5 + af7d845 commit d278028
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
3 changes: 2 additions & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
* @PawelPeczek-Roboflow @grzegorz-roboflow @yeldarby @probicheaux @hansent
* @PawelPeczek-Roboflow @grzegorz-roboflow @yeldarby @probicheaux @hansent @EmilyGavrilenko
docs/ @capjamesg @PawelPeczek-Roboflow @grzegorz-roboflow @hansent @yeldarby @EmilyGavrilenko @probicheaux
theme/ @capjamesg @PawelPeczek-Roboflow @grzegorz-roboflow @hansent @yeldarby @EmilyGavrilenko @probicheaux
12 changes: 4 additions & 8 deletions theme/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,15 @@
{% include 'home.html' %}
<style>
main.md-main {
display: none;
height: 0;
margin: 0;
padding: 0;
overflow: hidden;
}
</style>
{% endif %}
{% endblock %}

{% block site_nav %}
{% if page.is_homepage or (page.meta and page.meta.template == "home.html") %}
{% else %}
{{ super() }}
{% endif %}
{% endblock %}

{% block container %}
{% if page.is_homepage or (page.meta and page.meta.template == "home.html") %}
{% else %}
Expand Down

0 comments on commit d278028

Please sign in to comment.