From 9e779a56e607ade210e06f15a019436e9f732157 Mon Sep 17 00:00:00 2001 From: Teddy Reed Date: Sat, 30 Sep 2017 11:07:05 -0700 Subject: [PATCH] website: Render 2.8.0 schema and add schema scrollTo (#3752) --- docs/_layouts/schema.html | 8 ++++++++ docs/_schema/2.8.0.md | 4 ++++ 2 files changed, 12 insertions(+) create mode 100644 docs/_schema/2.8.0.md diff --git a/docs/_layouts/schema.html b/docs/_layouts/schema.html index ee125a05..0c93e669 100644 --- a/docs/_layouts/schema.html +++ b/docs/_layouts/schema.html @@ -169,6 +169,14 @@ $(document).ready(function() { $('#output').append(ui); } + + if (window.location.hash) { + tb = $(window.location.hash); + if (tb.length) { + hb = $('html,body'); + hb.scrollTop(tb.offset().top - hb.offset().top + hb.scrollTop()); + } + } }); }); diff --git a/docs/_schema/2.8.0.md b/docs/_schema/2.8.0.md new file mode 100644 index 00000000..a24cd177 --- /dev/null +++ b/docs/_schema/2.8.0.md @@ -0,0 +1,4 @@ +--- +version: 2.8.0 +redirect_from: /docs/tables/2.8.0/index.html +---