From 8af156d9fff52cd1cb967a37938010c5f37aabd2 Mon Sep 17 00:00:00 2001 From: Rushat Gabhane Date: Mon, 29 Jul 2024 10:58:24 +0300 Subject: [PATCH 1/9] new structure for connections --- .../connections/Netsuite/Configure-Netsuite.md | 6 ++++++ .../Connect-to-NetSuite.md} | 4 ++-- .../connections/Netsuite/Netsuite-Troubleshooting.md | 6 ++++++ .../Quickbooks-Online/Configure-Quickbooks-Online.md | 6 ++++++ .../Connect-to-QuickBooks-Online.md} | 6 ++---- .../Quickbooks-Online/Quickbooks-Online-Troubleshooting.md | 6 ++++++ .../connections/Sage-Intacct/Configure-Sage-Intacct.md | 6 ++++++ .../Connect-to-Sage-Intacct.md} | 4 ++-- .../Sage-Intacct/Sage-Intacct-Troubleshooting.md | 6 ++++++ .../new-expensify/connections/Xero/Configure-Xero.md | 6 ++++++ .../{Set-up-Xero-connection.md => Xero/Connect-to-Xero.md} | 6 ++---- .../new-expensify/connections/Xero/Xero-Troubleshooting.md | 6 ++++++ 12 files changed, 56 insertions(+), 12 deletions(-) create mode 100644 docs/articles/new-expensify/connections/Netsuite/Configure-Netsuite.md rename docs/articles/new-expensify/connections/{Set-Up-NetSuite-Connection.md => Netsuite/Connect-to-NetSuite.md} (99%) create mode 100644 docs/articles/new-expensify/connections/Netsuite/Netsuite-Troubleshooting.md create mode 100644 docs/articles/new-expensify/connections/Quickbooks-Online/Configure-Quickbooks-Online.md rename docs/articles/new-expensify/connections/{Set-up-QuickBooks-Online-connection.md => Quickbooks-Online/Connect-to-QuickBooks-Online.md} (99%) create mode 100644 docs/articles/new-expensify/connections/Quickbooks-Online/Quickbooks-Online-Troubleshooting.md create mode 100644 docs/articles/new-expensify/connections/Sage-Intacct/Configure-Sage-Intacct.md rename docs/articles/new-expensify/connections/{Set-Up-Sage-Intacct-connection.md => Sage-Intacct/Connect-to-Sage-Intacct.md} (99%) create mode 100644 docs/articles/new-expensify/connections/Sage-Intacct/Sage-Intacct-Troubleshooting.md create mode 100644 docs/articles/new-expensify/connections/Xero/Configure-Xero.md rename docs/articles/new-expensify/connections/{Set-up-Xero-connection.md => Xero/Connect-to-Xero.md} (98%) create mode 100644 docs/articles/new-expensify/connections/Xero/Xero-Troubleshooting.md diff --git a/docs/articles/new-expensify/connections/Netsuite/Configure-Netsuite.md b/docs/articles/new-expensify/connections/Netsuite/Configure-Netsuite.md new file mode 100644 index 000000000000..7ae0aa577468 --- /dev/null +++ b/docs/articles/new-expensify/connections/Netsuite/Configure-Netsuite.md @@ -0,0 +1,6 @@ +--- +title: Configure Netsuite +description: Coming soon +--- + +# Coming soon diff --git a/docs/articles/new-expensify/connections/Set-Up-NetSuite-Connection.md b/docs/articles/new-expensify/connections/Netsuite/Connect-to-NetSuite.md similarity index 99% rename from docs/articles/new-expensify/connections/Set-Up-NetSuite-Connection.md rename to docs/articles/new-expensify/connections/Netsuite/Connect-to-NetSuite.md index 5c6678e068be..7cf70cca5abc 100644 --- a/docs/articles/new-expensify/connections/Set-Up-NetSuite-Connection.md +++ b/docs/articles/new-expensify/connections/Netsuite/Connect-to-NetSuite.md @@ -1,8 +1,8 @@ --- -title: Set up NetSuite connection +title: Connect to NetSuite description: Integrate NetSuite with Expensify +order: 1 --- -
# Connect to NetSuite diff --git a/docs/articles/new-expensify/connections/Netsuite/Netsuite-Troubleshooting.md b/docs/articles/new-expensify/connections/Netsuite/Netsuite-Troubleshooting.md new file mode 100644 index 000000000000..2ac1aaadbef4 --- /dev/null +++ b/docs/articles/new-expensify/connections/Netsuite/Netsuite-Troubleshooting.md @@ -0,0 +1,6 @@ +--- +title: Netsuite Troubleshooting +description: Coming soon +--- + +# Coming soon diff --git a/docs/articles/new-expensify/connections/Quickbooks-Online/Configure-Quickbooks-Online.md b/docs/articles/new-expensify/connections/Quickbooks-Online/Configure-Quickbooks-Online.md new file mode 100644 index 000000000000..db050e5be312 --- /dev/null +++ b/docs/articles/new-expensify/connections/Quickbooks-Online/Configure-Quickbooks-Online.md @@ -0,0 +1,6 @@ +--- +title: Configure Quickbooks Online +description: Coming soon +--- + +# Coming soon diff --git a/docs/articles/new-expensify/connections/Set-up-QuickBooks-Online-connection.md b/docs/articles/new-expensify/connections/Quickbooks-Online/Connect-to-QuickBooks-Online.md similarity index 99% rename from docs/articles/new-expensify/connections/Set-up-QuickBooks-Online-connection.md rename to docs/articles/new-expensify/connections/Quickbooks-Online/Connect-to-QuickBooks-Online.md index 79d5b17055f7..60fdbe94b33b 100644 --- a/docs/articles/new-expensify/connections/Set-up-QuickBooks-Online-connection.md +++ b/docs/articles/new-expensify/connections/Quickbooks-Online/Connect-to-QuickBooks-Online.md @@ -1,8 +1,8 @@ --- -title: Set up QuickBooks Online connection +title: Connect to QuickBooks Online description: Integrate QuickBooks Online with Expensify +order: 1 --- -
{% include info.html %} To use the QuickBooks Online connection, you must have a QuickBooks Online account and an Expensify Collect plan. The QuickBooks Self-employed subscription is not supported. @@ -134,5 +134,3 @@ This may occur if you incorrectly enter your QuickBooks Online login information 3. Enter your Intuit login details (the login information you use for QuickBooks Online) to establish the connection. {% include faq-end.md %} - -
diff --git a/docs/articles/new-expensify/connections/Quickbooks-Online/Quickbooks-Online-Troubleshooting.md b/docs/articles/new-expensify/connections/Quickbooks-Online/Quickbooks-Online-Troubleshooting.md new file mode 100644 index 000000000000..5256459d6f9a --- /dev/null +++ b/docs/articles/new-expensify/connections/Quickbooks-Online/Quickbooks-Online-Troubleshooting.md @@ -0,0 +1,6 @@ +--- +title: Quickbooks Online Troubleshooting +description: Coming soon +--- + +# Coming soon diff --git a/docs/articles/new-expensify/connections/Sage-Intacct/Configure-Sage-Intacct.md b/docs/articles/new-expensify/connections/Sage-Intacct/Configure-Sage-Intacct.md new file mode 100644 index 000000000000..c5e549ff74d1 --- /dev/null +++ b/docs/articles/new-expensify/connections/Sage-Intacct/Configure-Sage-Intacct.md @@ -0,0 +1,6 @@ +--- +title: Configure Sage Intacct +description: Coming soon +--- + +# Coming soon diff --git a/docs/articles/new-expensify/connections/Set-Up-Sage-Intacct-connection.md b/docs/articles/new-expensify/connections/Sage-Intacct/Connect-to-Sage-Intacct.md similarity index 99% rename from docs/articles/new-expensify/connections/Set-Up-Sage-Intacct-connection.md rename to docs/articles/new-expensify/connections/Sage-Intacct/Connect-to-Sage-Intacct.md index 1f5d9662bb4f..35a009ae8d4a 100644 --- a/docs/articles/new-expensify/connections/Set-Up-Sage-Intacct-connection.md +++ b/docs/articles/new-expensify/connections/Sage-Intacct/Connect-to-Sage-Intacct.md @@ -1,8 +1,8 @@ --- -title: Set up Sage Intacct connection +title: Connect to Sage Intacct description: Integrate Sage Intacct with Expensify +order: 1 --- -
# Connect to Sage Intacct diff --git a/docs/articles/new-expensify/connections/Sage-Intacct/Sage-Intacct-Troubleshooting.md b/docs/articles/new-expensify/connections/Sage-Intacct/Sage-Intacct-Troubleshooting.md new file mode 100644 index 000000000000..ae8a0f16d9b9 --- /dev/null +++ b/docs/articles/new-expensify/connections/Sage-Intacct/Sage-Intacct-Troubleshooting.md @@ -0,0 +1,6 @@ +--- +title: Sage Intacct Troubleshooting +description: Coming soon +--- + +# Coming soon diff --git a/docs/articles/new-expensify/connections/Xero/Configure-Xero.md b/docs/articles/new-expensify/connections/Xero/Configure-Xero.md new file mode 100644 index 000000000000..0c65db1b4fd9 --- /dev/null +++ b/docs/articles/new-expensify/connections/Xero/Configure-Xero.md @@ -0,0 +1,6 @@ +--- +title: Configure Xero +description: Coming soon +--- + +# Coming soon diff --git a/docs/articles/new-expensify/connections/Set-up-Xero-connection.md b/docs/articles/new-expensify/connections/Xero/Connect-to-Xero.md similarity index 98% rename from docs/articles/new-expensify/connections/Set-up-Xero-connection.md rename to docs/articles/new-expensify/connections/Xero/Connect-to-Xero.md index 47917f2dffc3..eb35b1589db4 100644 --- a/docs/articles/new-expensify/connections/Set-up-Xero-connection.md +++ b/docs/articles/new-expensify/connections/Xero/Connect-to-Xero.md @@ -1,8 +1,8 @@ --- -title: Set up Xero connection +title: Connect to Xero description: Integrate Xero with Expensify +order: 1 --- -
{% include info.html %} To use the Xero connection, you must have a Xero account and an Expensify Collect plan. @@ -104,5 +104,3 @@ The following steps help you determine the advanced settings for your connection You will no longer see the imported options from Xero. {% include faq-end.md %} - -
diff --git a/docs/articles/new-expensify/connections/Xero/Xero-Troubleshooting.md b/docs/articles/new-expensify/connections/Xero/Xero-Troubleshooting.md new file mode 100644 index 000000000000..9c211efbaf24 --- /dev/null +++ b/docs/articles/new-expensify/connections/Xero/Xero-Troubleshooting.md @@ -0,0 +1,6 @@ +--- +title: Xero Troubleshooting +description: Coming soon +--- + +# Coming soon From 81d4b1296c01b5c88b2d13ef295f3d02b7595c14 Mon Sep 17 00:00:00 2001 From: Rushat Gabhane Date: Mon, 29 Jul 2024 11:22:03 +0300 Subject: [PATCH 2/9] handle empty article --- docs/_includes/hub.html | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/docs/_includes/hub.html b/docs/_includes/hub.html index cac0eaeec382..89b4281e77b8 100644 --- a/docs/_includes/hub.html +++ b/docs/_includes/hub.html @@ -1,28 +1,18 @@ -{% assign activePlatform = page.url | replace: '/', ' ' | truncatewords: 1 | remove:'...' %} -{% assign platform = site.data.routes.platforms | where: "href", activePlatform | first %} +{% assign activePlatform = page.url | replace: '/', ' ' | truncatewords: 1 | remove:'...' %} {% assign platform = site.data.routes.platforms | where: "href", activePlatform | first %} {% +assign activeHub = page.url | remove: activePlatform | remove: "/hubs/" | remove: "/" | remove: ".html" %} {% assign hub = platform.hubs | where: "href", activeHub | first %} -{% assign activeHub = page.url | remove: activePlatform | remove: "/hubs/" | remove: "/" | remove: ".html" %} -{% assign hub = platform.hubs | where: "href", activeHub | first %} +

{{ hub.title }}

-

- {{ hub.title }} -

+

{{ hub.description }}

-

- {{ hub.description }} -

- -{% assign sortedSectionsAndArticles = hub.sections | concat: hub.articles | sort: 'title' %} +{% if hub.articles %} {% assign sortedSectionsAndArticles = hub.sections | concat: hub.articles | sort: 'title' %} {% else %} {% assign sortedSectionsAndArticles = hub.sections | sort: +'title' %} {% endif%}
{% for item in sortedSectionsAndArticles %} - - {% if item.articles %} - {% include section-card.html platform=activePlatform hub=hub.href section=item.href title=item.title %} - {% else %} - {% include article-card.html hub=hub.href href=item.href title=item.title platform=activePlatform %} - {% endif %} - {% endfor %} + + {% if item.articles %} {% include section-card.html platform=activePlatform hub=hub.href section=item.href title=item.title %} {% else %} {% include article-card.html hub=hub.href + href=item.href title=item.title platform=activePlatform %} {% endif %} {% endfor %}
From 0cbf8ea5a4deb06bb8474b7eba3f54773ca95c9f Mon Sep 17 00:00:00 2001 From: Rushat Gabhane Date: Mon, 29 Jul 2024 11:22:20 +0300 Subject: [PATCH 3/9] handle empty article [] --- docs/_includes/lhn-template.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/_includes/lhn-template.html b/docs/_includes/lhn-template.html index d8298aa22aa7..294094214c8e 100644 --- a/docs/_includes/lhn-template.html +++ b/docs/_includes/lhn-template.html @@ -33,7 +33,11 @@ {{ hub.title }}