Skip to content

Commit 9cdf989

Browse files
committed
Update SDK reference doc format
1 parent aea92a9 commit 9cdf989

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

docs/v4/accounting/index.html

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<!-- start *****REPLACE***** SEO meta details-->
1010
<meta name="description" content="Xero-Java SDK Accounting API Documentation">
1111
<title>Xero-Java Accounting SDK Docs</title>
12-
<meta name="keywords" content="Xero-Java, java, sdk, documentation, docs, XeroAPI, Xero, developer">
12+
<meta name="keywords" content="Xero-Java, Java, sdk, documentation, docs, XeroAPI, Xero, developer">
1313
<!-- end *****REPLACE***** SEO meta details-->
1414
<meta name="author" content="Xero Developer Evangelists">
1515
<link rel="shortcut icon" href="https://developer.xero.com/static/favicon.ico" type="image/x-icon">
@@ -309,7 +309,7 @@
309309
}
310310

311311
#content {
312-
padding-top: 65px;
312+
padding-top: 80px;
313313
z-index: -1;
314314
margin-left: 270px;
315315
}
@@ -826,31 +826,36 @@
826826

827827
.xero-logo {
828828
float: left;
829+
margin-top: 5px;
830+
}
831+
832+
.language {
833+
background: #fff;
834+
border-radius: 50%;
835+
padding: 1px;
829836
}
830837

831838
.language, .api-set-wrapper {
832839
float: left;
833-
margin-left: 20px;
840+
margin-left: 30px;
834841
}
835842

836843
.language img {
837844
height: 30px;
838845
width: auto;
846+
padding: 5px;
839847
}
840848

841849
.api-set {
842850
float: left;
843851
margin-left: 30px;
852+
margin-top: 5px;
844853
}
845854

846855
.api-set-wrapper {
847856
padding-top: 5px;
848857
}
849858

850-
.api-set-name {
851-
color: #fff;
852-
}
853-
854859
</style>
855860
</head>
856861
<body>
@@ -5749,41 +5754,42 @@
57495754
</div>
57505755
<fieldset class='api-set'>
57515756
<select name="form" id="language-set-selection" onchange="routeDocs(this);">
5757+
<option data-url="#">-SDK-</option>
57525758
<option data-url="https://xeroapi.github.io/Xero-Java/v4/accounting/index.html" value="java">Java</option>
57535759
<option data-url="https://xeroapi.github.io/xero-node/accounting/index.html" value="node">Node</option>
5754-
<option data-url="https://github.com/XeroAPI/Xero-NetStandard" value="dotnet">C#</option>
5760+
<option data-url="https://xeroapi.github.io/Xero-NetStandard/accounting/index.html" value="dotnet">C#</option>
57555761
<option data-url="https://xeroapi.github.io/xero-php-oauth2/docs/v2/accounting/index.html" value="php">PHP</option>
57565762
<option data-url="https://xeroapi.github.io/xero-python/v1/accounting/index.html" value="python">Python</option>
57575763
<option data-url="https://xeroapi.github.io/xero-ruby/accounting/index.html" value="ruby">Ruby</option>
57585764
</select>
57595765
</fieldset>
57605766
<div class='language'>
5761-
<img alt="" width="115" height="30" class="xrh-app-image" src="https://i.imgur.com/hTwRNlp.png">
5767+
<img alt="xero-java icon" class="xrh-app-image language-logo" src="https://i.imgur.com/YlFfXNk.png">
57625768
<!-- *****REPLACE***** with a small png of your language -->
57635769
</div>
57645770
<fieldset class='api-set'>
57655771
<select name="form" id="api-set-selection" onchange="routeDocs(this);">
57665772
<!-- *****REPLACE***** `xero-node` with the correct repo naming pattern + also add/delete api sets (ex. Ruby does not have Bankfeeds) -->
5773+
<option data-url="#">-API-</option>
57675774
<option data-url="https://xeroapi.github.io/Xero-Java/v4/accounting/index.html" value="Accounting">Accounting</option>
57685775
</select>
57695776
</fieldset>
57705777
<div class='api-set-wrapper'>
5771-
<span class='api-set-name'>Accounting API</span>
57725778
<script>
57735779
$(document).ready(function() {
57745780
const location = window.location.href.toLowerCase()
57755781
let sdkLang
57765782
let sdkName
57775783
if( location.includes('ruby') ){
57785784
sdkLang = 'ruby'
5779-
sdkName = 'Xero-Java'
5785+
sdkName = 'xero-ruby'
57805786
} else if (location.includes('node')){
57815787
sdkLang = 'node'
57825788
sdkName = 'xero-node'
57835789
} else if (location.includes('php')){
57845790
sdkLang = 'php'
57855791
sdkName = 'xero-php-oauth2'
5786-
} else if (location.includes('dotnet')){
5792+
} else if (location.includes('xero-netstandard') || location.includes('csharp')){
57875793
sdkLang = 'dotnet'
57885794
sdkName = 'Xero-NetStandard'
57895795
} else if (location.includes('java')){

0 commit comments

Comments
 (0)