Skip to content

Commit

Permalink
Fixing the GX API page after transition from autogenerated-index to o…
Browse files Browse the repository at this point in the history
…rdinary doc page
  • Loading branch information
deborahniesz committed Mar 12, 2024
1 parent 09bf632 commit ab04304
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 13 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/docusaurus/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ module.exports = {
{
type: 'doc',
label: 'GX API',
docId: 'reference/api/index',
docId: 'reference/index',
position: 'right',
},
{
Expand Down
6 changes: 2 additions & 4 deletions docs/docusaurus/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -605,10 +605,8 @@ module.exports = {
type: 'category',
label: 'GX API',
link: {
type: 'generated-index',
title: 'GX API',
description: 'GX API reference content is generated from classes and methods docstrings.',
slug: '/reference/api/'
type: 'doc',
id: 'reference/index'
},
items: [
{
Expand Down
4 changes: 4 additions & 0 deletions docs/docusaurus/src/css/breadcrumbs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@
color: var(--link-hover-color);
}
}

.breadcrumbs:has(li:only-child) {
display: none;
}
4 changes: 0 additions & 4 deletions docs/docusaurus/src/css/overview_pages.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@
}

.generated-index-page {
.theme-doc-breadcrumbs {
display: none;
}

& > div {
max-width: unset !important;
}
Expand Down
15 changes: 15 additions & 0 deletions docs/docusaurus/versioned_docs/version-0.18/reference/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: 'GX API'
hide_title: true
hide_table_of_contents: true
pagination_next: null
pagination_prev: null
hide_feedback_survey: true
---
import OverviewCard from '@site/src/components/OverviewCard';
import DocCardList from '@theme/DocCardList';

<OverviewCard title={frontMatter.title}>
GX API reference content is generated from classes and methods docstrings.
</OverviewCard>
<DocCardList/>
6 changes: 2 additions & 4 deletions docs/docusaurus/versioned_sidebars/version-0.18-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -524,10 +524,8 @@
"type": "category",
"label": "GX API",
"link": {
"type": "generated-index",
"title": "GX API",
"description": "GX API reference content is generated from classes and methods docstrings.",
"slug": "/reference/api/"
"type": "doc",
"id": "version-0.18/reference/index"
},
"items": [
{
Expand Down

0 comments on commit ab04304

Please sign in to comment.