From 361c99b3875d2bc133cd0e5734854f4ee3d61b5c Mon Sep 17 00:00:00 2001 From: Elena Neroslavskaya Date: Fri, 12 Mar 2021 18:15:12 -0500 Subject: [PATCH] Left aligned nav bar pages layout (#6992) * footer test * page url * page url * page url * page url * page url * page url * page url * layout left * layout left * shift nav left * left layout --- _config.yml | 7 +++++++ _includes/footer_custom.html | 3 +++ _sass/custom/custom.scss | 17 +++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 _includes/footer_custom.html create mode 100644 _sass/custom/custom.scss diff --git a/_config.yml b/_config.yml index 4e2aa33e42..9112ae7e4e 100644 --- a/_config.yml +++ b/_config.yml @@ -25,3 +25,10 @@ aux_links: "GitHub": - "https://github.com/microsoft/onnxruntime" ga_tracking: UA-156955408-1 +# Footer "Edit this page on GitHub" link text +gh_edit_link: true # show or hide edit this page link +gh_edit_link_text: "Edit this page on GitHub" +gh_edit_repository: "https://github.com/microsoft/onnxruntime" # the github URL for your repo +gh_edit_branch: "gh-pages" # the branch that your docs is served from +# gh_edit_source: docs # the source that your files originate from +gh_edit_view_mode: "tree" # "tree" or "edit" if you want the user to jump into the editor immediately \ No newline at end of file diff --git a/_includes/footer_custom.html b/_includes/footer_custom.html new file mode 100644 index 0000000000..5b0c6763e6 --- /dev/null +++ b/_includes/footer_custom.html @@ -0,0 +1,3 @@ +{%- assign url = page.url -%} + +

For documentation questions, please file an issue

\ No newline at end of file diff --git a/_sass/custom/custom.scss b/_sass/custom/custom.scss new file mode 100644 index 0000000000..c11a3e4fbf --- /dev/null +++ b/_sass/custom/custom.scss @@ -0,0 +1,17 @@ +.site-nav, .site-header, .site-footer { + width: 100%; + } + + .side-bar { + @include mq(lg) { + width: $nav-width; + } + } + + .main { + @include mq(lg) { + margin-left: $nav-width; + } + + } +