Skip to content

Commit 7ca1c08

Browse files
committed
fix(API-1892): Change 'active_documentation' and 'active_api_reference' page tags to 'active_api_resources'
Add dropdown entries
1 parent db5b5b6 commit 7ca1c08

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

src/api-reference/index.handlebars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{#> layout title="REST API reference" active_api_reference=true }}
1+
{{#> layout title="REST API reference" active_api_resources=true }}
22
<div class="container">
33
<div class="row">
44
<div class="col-xs-12">

src/api-reference/reference.handlebars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{#> layout title="REST API reference" active_api_reference=true }}
1+
{{#> layout title="REST API reference" active_api_resources=true }}
22
<div class="container">
33
<div class="row">
44
<div class="col-xs-12">

src/partials/layout.handlebars

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Apps <span class="caret"></span></a>
4848
<ul class="dropdown-menu">
4949
<li class="dropdown-title"><a href="/apps.html">Apps</a></li>
50+
<li><a href="/apps.html">Start building your App</a></li>
5051
<li><a href="/apps/overview.html">Overview</a></li>
5152
<li><a href="/apps/authentication-and-authorization.html">Authentication and authorization</a></li>
5253
<li><a href="/apps/catalogs.html">Catalogs for Apps (beta)</a></li>
@@ -55,15 +56,15 @@
5556
</ul>
5657
</li>
5758

58-
<li class="dropdown{{#if active_api_reference}} active{{/if}}">
59+
<li class="dropdown{{#if active_api_resources}} active{{/if}}">
5960
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">API resources <span class="caret"></span></a>
6061
<ul class="dropdown-menu">
6162
<li class="dropdown-title">API resources</li>
6263
<li><a href="/documentation/introduction.html">REST API</a></li>
6364
<li>
6465
<ul>
6566
<li><a href="/documentation/why-the-api.html">REST API basics</a></li>
66-
<li><a href="/documentation/api-reference-index.html">REST API reference</a></li>
67+
<li><a href="/api-reference-index.html">REST API reference</a></li>
6768
<li><a href="/getting-started/your-first-tutorial-4x/welcome.html">Your very first tutorial</a></li>
6869
<li><a href="/getting-started/connect-the-pim-4x/welcome.html">The "Connect the PIM" tutorial</a></li>
6970
</ul>
@@ -97,6 +98,7 @@
9798
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Guided tutorials <span class="caret"></span></a>
9899
<ul class="dropdown-menu">
99100
<li class="dropdown-title"><a href="/tutorials/homepage.html">Guided tutorials</a></li>
101+
<li><a href="/tutorials/homepage.html">Guided tutorials</a></li>
100102
<li><a href="/tutorials/how-to-get-your-app-token.html">How to get your App token</a></li>
101103
<li><a href="/tutorials/how-to-retrieve-pim-structure.html">How to retrieve PIM structure</a></li>
102104
<li><a href="/tutorials/how-to-get-families-and-attributes.html">How to get families, family variants, and attributes</a></li>

tasks/build-doc.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ gulp.task('build-rest-api', ['clean-dist','less'], function () {
541541
.on('end', function () {
542542
return gulp.src('src/partials/documentation.handlebars')
543543
.pipe(gulpHandlebars({
544-
active_documentation: true,
544+
active_api_resources: true,
545545
title: 'The REST API basics',
546546
mainContent: fs.readFileSync('tmp/documentation/' + path.basename(file.path).replace(/\.md/, '.html'))
547547
}, {
@@ -577,7 +577,7 @@ gulp.task('build-events-api', ['clean-dist','less'], function () {
577577
.on('end', function () {
578578
return gulp.src('src/partials/events-documentation.handlebars')
579579
.pipe(gulpHandlebars({
580-
active_documentation: true,
580+
active_api_resources: true,
581581
title: 'The Events API basics',
582582
mainContent: fs.readFileSync('tmp/events-documentation/' + path.basename(file.path).replace(/\.md/, '.html'))
583583
}, {
@@ -690,7 +690,7 @@ gulp.task('build-concepts', ['clean-dist','less'], function () {
690690
.on('end', function () {
691691
return gulp.src('src/partials/documentation.handlebars')
692692
.pipe(gulpHandlebars({
693-
active_documentation: true,
693+
active_api_resources: true,
694694
title: 'Concepts & resources',
695695
mainContent: fs.readFileSync('tmp/concepts/' + path.basename(file.path).replace(/\.md/, '.html'))
696696
}, {
@@ -789,7 +789,7 @@ gulp.task('build-php-client', ['clean-dist','less', 'create-resources-md'], func
789789
.on('end', function () {
790790
return gulp.src('src/partials/documentation.handlebars')
791791
.pipe(gulpHandlebars({
792-
active_documentation: true,
792+
active_api_resources: true,
793793
title: 'PHP API Client documentation',
794794
image: 'illustrations/illus--php-client.svg',
795795
mainContent: fs.readFileSync('tmp/php-client/' + path.basename(file.path).replace(/\.md/, '.html'))
@@ -817,7 +817,7 @@ gulp.task('build-misc-documentation', ['clean-dist','less'], function () {
817817
.on('end', function () {
818818
return gulp.src('src/partials/misc.handlebars')
819819
.pipe(gulpHandlebars({
820-
active_documentation: true,
820+
active_api_resources: true,
821821
title: 'Documentation',
822822
mainContent: fs.readFileSync('tmp/misc/' + path.basename(file.path).replace(/\.md/, '.html'))
823823
}, {

tasks/events-reference.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ gulp.task('build-events-reference-page', ['clean-dist','less'], function () {
300300
.on('end', function () {
301301
return gulp.src('src/partials/events-reference.handlebars')
302302
.pipe(gulpHandlebars({
303-
active_api_reference: true,
303+
active_api_resources: true,
304304
title: pages[path.basename(path.dirname(file.path))].title,
305305
image: pages[path.basename(path.dirname(file.path))].image,
306306
gettingStartedName: pages[path.basename(path.dirname(file.path))].gettingStartedName,

0 commit comments

Comments
 (0)