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
40 changes: 20 additions & 20 deletions .github/workflows/build-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,26 +75,26 @@ jobs:
NODE_OPTIONS: "--max_old_space_size=24576"
run: npm run build:${{matrix.provider}}

- name: add redirects to root site
env:
PROVIDER: ${{ matrix.provider }}
run: |
if [ $PROVIDER == "root" ]; then
echo "adding vanity url redirects to _redirects file.."
touch ./build/_redirects
array=(
confluent
github
)
for i in "${array[@]}"
do
echo "adding redirects for $i"
echo "/${i} https://${i}.stackql.io/providers/${i}/ 302" >> ./build/_redirects
echo "/providers/${i} https://${i}.stackql.io/providers/${i}/ 302" >> ./build/_redirects
done
else
echo "skipping redirects for ${PROVIDER}"
fi
# - name: add redirects to root site
# env:
# PROVIDER: ${{ matrix.provider }}
# run: |
# if [ $PROVIDER == "root" ]; then
# echo "adding vanity url redirects to _redirects file.."
# touch ./build/_redirects
# array=(
# confluent
# github
# )
# for i in "${array[@]}"
# do
# echo "adding redirects for $i"
# echo "/${i} https://${i}.stackql.io/providers/${i}/ 302" >> ./build/_redirects
# echo "/providers/${i} https://${i}.stackql.io/providers/${i}/ 302" >> ./build/_redirects
# done
# else
# echo "skipping redirects for ${PROVIDER}"
# fi

- name: Publish
uses: stackql/actions/cli@replace-deprecated-set-output
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ This repository contains documentation for StackQL providers, which is published
| --- | --- | -- |
| GitHub Actions Build | [![GitHub Actions](https://github.com/stackql/stackql-registry-docs/actions/workflows/build-docs.yaml/badge.svg?branch=main)](https://github.com/stackql/stackql-registry-docs/actions/workflows/build-docs.yaml) | [stackql-registry-docs/actions](https://github.com/stackql/stackql-registry-docs/actions) |
| Netlify Deploy Base | [![Netlify Status](https://api.netlify.com/api/v1/badges/75f838a9-79ea-41dc-96f9-a40dff50cfca/deploy-status)](https://app.netlify.com/sites/stackql-registry-docs/deploys) | [registry.stackql.io](https://registry.stackql.io) |
| Netlify Deploy GitHub | [![Netlify Status](https://api.netlify.com/api/v1/badges/625d7d38-37a9-4224-a9c8-6ee58141b109/deploy-status)](https://app.netlify.com/sites/stackql-github-docs/deploys) | [github-docs.stackql.io](https://github-docs.stackql.io)<br/>[github.stackql.io](https://github.stackql.io) |
| Netlify Deploy Confluent | [![Netlify Status](https://api.netlify.com/api/v1/badges/63149c2f-6c3d-43f1-be38-80c55c223ac0/deploy-status)](https://app.netlify.com/sites/stackql-confluent-docs/deploys) | [confluent-docs.stackql.io](https://confluent-docs.stackql.io)<br/>[confluent.stackql.io](https://confluent.stackql.io) |

## Adding Docs for a New Provider

Expand Down
4 changes: 2 additions & 2 deletions ci-scripts/get-providers-to-deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const allProviders = [
// 'azure_stack',
// 'digitalocean',
// 'firebase',
'github',
'confluent',
// 'github',
// 'confluent',
// 'databricks_account',
// 'databricks_workspace',
// 'openai',
Expand Down
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
"scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start",
"start:github": "export REGISTRY=github && docusaurus start",
"start:confluent": "export REGISTRY=confluent && docusaurus start",
"build:root": "docusaurus build",
"build:github": "export REGISTRY=github && docusaurus build",
"build:confluent": "export REGISTRY=confluent && docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
Expand Down
4 changes: 3 additions & 1 deletion sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ const getProviderSiteUrl = (name) =>{
'k8s',
'homebrew',
'openai',
'anthropic'
'anthropic',
'confluent',
'github'
].includes(name)) {
return `https://${name.replace('_', '-')}-provider.stackql.io/`
} else {
Expand Down
4 changes: 3 additions & 1 deletion src/configs/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ export const getProviderSiteUrl = (name: string) =>{
'k8s',
'homebrew',
'openai',
'anthropic'
'anthropic',
'confluent',
'github'
].includes(name)) {
return `https://${name.replace('_', '-')}-provider.stackql.io/`
} else {
Expand Down