Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions blog/230218-weekly-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ We'd love to hear your opinions, so please let us know how you're finding them i

## In case you missed it...

### [Sync for Expenses](https://codat2.stoplight.io/docs/sync-for-expenses-v2/fjx7t6em0l1ux-overview)
### [Sync for Expenses](/expenses/overview)

Launch new accounting integrations faster and save on ongoing maintenance by standardizing how you sync with bookkeeping software and ERPs.

Sync for Expenses is an API and a set of supporting tools. It has been built to enable corporate card and expense management platforms to provide high-quality integrations with multiple accounting software through a standardized API.

[Read the docs...](https://codat2.stoplight.io/docs/sync-for-expenses-v2/fjx7t6em0l1ux-overview)
[Read the docs...](/expenses/overview)

## Deprecations

Expand Down
45 changes: 45 additions & 0 deletions deployment/build.azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,48 @@ stages:
RegistryName: ${{ env.registryName }}
ImagesToPublish: ${{ parameters.ImagesToPublish }}
ArgoApplicationName: docs

# Docs search is an Algolia DocSearch index filled by Algolia's hosted
# crawler. Ask it to re-crawl once production is live so search picks up
# what just shipped; the crawler's own weekly schedule is the fallback.
- ${{ if and(not(in(variables['Build.Reason'], 'PullRequest')), eq(variables['Build.SourceBranch'], 'refs/heads/main')) }}:
- stage: reindex_search
displayName: Reindex docs search
dependsOn: production
# The vault blocks public network access, so this has to run on a pool
# agent that can reach it (same vault and pool as the build stage).
pool:
name: 'codat-intg-managed-devops-pool-linux'
jobs:
- job: trigger_algolia_crawl
displayName: Trigger Algolia crawl
# The deploy has already succeeded by this point. A failed trigger
# should show as a warning, not turn the release red.
continueOnError: true
steps:
- checkout: none

- task: AzureKeyVault@2
displayName: Load Algolia crawler credentials
inputs:
azureSubscription: 'Azure Resource Manager (Integration/UAT)'
KeyVaultName: codat-integration
SecretsFilter: 'docs-algolia-crawler-id,docs-algolia-crawler-user-id,docs-algolia-crawler-api-key'

- bash: |
set -euo pipefail
status=$(curl --silent --show-error \
--output response.json --write-out '%{http_code}' \
--request POST \
--user "$CRAWLER_USER_ID:$CRAWLER_API_KEY" \
"https://crawler.algolia.com/api/1/crawlers/$CRAWLER_ID/reindex")
cat response.json; echo
if [ "$status" != "200" ]; then
echo "##vso[task.logissue type=warning]Algolia reindex request failed with HTTP $status"
exit 1
fi
displayName: Start crawl
env:
CRAWLER_ID: $(docs-algolia-crawler-id)
CRAWLER_USER_ID: $(docs-algolia-crawler-user-id)
CRAWLER_API_KEY: $(docs-algolia-crawler-api-key)
24 changes: 9 additions & 15 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ const config = {
],
],

themes: ["@docusaurus/theme-mermaid", "docusaurus-theme-search-typesense"],
// The glossary preset does not add the search theme for us, unlike preset-classic.
themes: ["@docusaurus/theme-mermaid", "@docusaurus/theme-search-algolia"],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
Expand Down Expand Up @@ -363,20 +364,13 @@ const config = {

copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,

typesense: {
typesenseCollectionName: "codat-docs", // Replace with your own doc site's name. Should match the collection name in the scraper settings.
typesenseServerConfig: {
nodes: [
{
host: "d2j9or13nwxb7euap.a1.typesense.net",
port: 443,
protocol: "https",
},
],
apiKey: "0Us237UXgfchdk5h7QxMSYzuECnCelO4",
},
typesenseSearchParameters: {}, // Optional: Typesense search parameters: https://typesense.org/docs/0.24.0/api/search.html#search-parameters
contextualSearch: true, // Optional
// Algolia DocSearch. The app ID and search-only API key are public values, safe to commit.
// The index is populated by the Algolia-hosted crawler, there is no indexing pipeline in this repo.
algolia: {
appId: "G2YF720HDJ",
apiKey: "d73fdb2d3d9dcf6a50e48347f8e31982", // read-only key, never the admin key
indexName: "Codat Docs",
contextualSearch: true,
},

sidebar: {
Expand Down
Loading
Loading