Skip to content

Commit 4c3a9ee

Browse files
Updated the deprecated messages in the legacy REST API docs
1 parent 13b26bd commit 4c3a9ee

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

source/javascripts/app/_toc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
hideEffectSpeed: 180,
1919
ignoreSelector: '.toc-ignore',
2020
highlightOffset: 60,
21-
scrollTo: -1,
21+
scrollTo: 0 < $("body.has-warning").length ? 30 : -1,
2222
scrollHistory: true,
2323
hashGenerator: function (text, element) {
2424
return element.prop('id');

source/stylesheets/screen.css.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,10 +661,10 @@ html, body {
661661
////////////////////////////////////////////////////////////////////////////////
662662

663663
body.has-warning {
664-
margin-top: 30px;
664+
margin-top: 33px;
665665

666666
.tocify-wrapper {
667-
top: 30px;
667+
top: 33px;
668668
}
669669
}
670670

source/v1.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ language_tabs:
55
- shell: cURL
66

77
toc_footers:
8-
- <a href="http://woothemes.github.io/woocommerce-rest-api-docs/">WC REST API Docs v2</a>
98
- <a href="https://github.com/woothemes/woocommerce-rest-api-docs">Contributing to WC REST API Docs</a>
109
- <a href="https://github.com/woothemes/woocommerce/tree/master/includes/api">REST API Source on GitHub</a>
1110
- <a href="https://github.com/woothemes/woocommerce/issues?labels=API&amp;page=1&amp;state=open">REST API Issues</a>
@@ -18,5 +17,5 @@ includes:
1817

1918
search: false
2019

21-
warning: <i class="info"></i> This documentation is for the v1 API which is now deprecated. Please use the <code>v2</code> endpoint and <a href="http://woothemes.github.io/woocommerce-rest-api-docs/">read the v2 documentation</a>.
20+
warning: <i class="info"></i> This documentation is for the WooCommerce API v1 which is now deprecated. <a href="http://woothemes.github.io/woocommerce-rest-api-docs/">Please use the latest REST API version</a>.
2221
---

source/v2.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@ includes:
2727
- v2/webhooks
2828

2929
search: false
30+
31+
warning: <i class="info"></i> This documentation is for the WooCommerce API v2 which is now deprecated. <a href="http://woothemes.github.io/woocommerce-rest-api-docs/">Please use the latest REST API version</a>.
3032
---

source/v3.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,6 @@ includes:
3737
- v3/authentication-endpoint
3838

3939
search: false
40+
41+
warning: <i class="info"></i> This documentation is for the WooCommerce API v3 API which is now deprecated. <a href="http://woothemes.github.io/woocommerce-rest-api-docs/">Please use the latest REST API version</a>.
4042
---

0 commit comments

Comments
 (0)