Skip to content

Commit d640366

Browse files
authored
Merge pull request #307 from stackql/feature/provider-docs
moved confluent and github to microsites
2 parents 0c38fa7 + 6f29d81 commit d640366

File tree

6 files changed

+28
-30
lines changed

6 files changed

+28
-30
lines changed

.github/workflows/build-docs.yaml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -75,26 +75,26 @@ jobs:
7575
NODE_OPTIONS: "--max_old_space_size=24576"
7676
run: npm run build:${{matrix.provider}}
7777

78-
- name: add redirects to root site
79-
env:
80-
PROVIDER: ${{ matrix.provider }}
81-
run: |
82-
if [ $PROVIDER == "root" ]; then
83-
echo "adding vanity url redirects to _redirects file.."
84-
touch ./build/_redirects
85-
array=(
86-
confluent
87-
github
88-
)
89-
for i in "${array[@]}"
90-
do
91-
echo "adding redirects for $i"
92-
echo "/${i} https://${i}.stackql.io/providers/${i}/ 302" >> ./build/_redirects
93-
echo "/providers/${i} https://${i}.stackql.io/providers/${i}/ 302" >> ./build/_redirects
94-
done
95-
else
96-
echo "skipping redirects for ${PROVIDER}"
97-
fi
78+
# - name: add redirects to root site
79+
# env:
80+
# PROVIDER: ${{ matrix.provider }}
81+
# run: |
82+
# if [ $PROVIDER == "root" ]; then
83+
# echo "adding vanity url redirects to _redirects file.."
84+
# touch ./build/_redirects
85+
# array=(
86+
# confluent
87+
# github
88+
# )
89+
# for i in "${array[@]}"
90+
# do
91+
# echo "adding redirects for $i"
92+
# echo "/${i} https://${i}.stackql.io/providers/${i}/ 302" >> ./build/_redirects
93+
# echo "/providers/${i} https://${i}.stackql.io/providers/${i}/ 302" >> ./build/_redirects
94+
# done
95+
# else
96+
# echo "skipping redirects for ${PROVIDER}"
97+
# fi
9898

9999
- name: Publish
100100
uses: stackql/actions/cli@replace-deprecated-set-output

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ This repository contains documentation for StackQL providers, which is published
88
| --- | --- | -- |
99
| 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) |
1010
| 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) |
11-
| 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) |
12-
| 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) |
1311

1412
## Adding Docs for a New Provider
1513

ci-scripts/get-providers-to-deploy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ const allProviders = [
1414
// 'azure_stack',
1515
// 'digitalocean',
1616
// 'firebase',
17-
'github',
18-
'confluent',
17+
// 'github',
18+
// 'confluent',
1919
// 'databricks_account',
2020
// 'databricks_workspace',
2121
// 'openai',

package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@
55
"scripts": {
66
"docusaurus": "docusaurus",
77
"start": "docusaurus start",
8-
"start:github": "export REGISTRY=github && docusaurus start",
9-
"start:confluent": "export REGISTRY=confluent && docusaurus start",
108
"build:root": "docusaurus build",
11-
"build:github": "export REGISTRY=github && docusaurus build",
12-
"build:confluent": "export REGISTRY=confluent && docusaurus build",
139
"swizzle": "docusaurus swizzle",
1410
"deploy": "docusaurus deploy",
1511
"clear": "docusaurus clear",

sidebars.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ const getProviderSiteUrl = (name) =>{
6969
'k8s',
7070
'homebrew',
7171
'openai',
72-
'anthropic'
72+
'anthropic',
73+
'confluent',
74+
'github'
7375
].includes(name)) {
7476
return `https://${name.replace('_', '-')}-provider.stackql.io/`
7577
} else {

src/configs/providers.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ export const getProviderSiteUrl = (name: string) =>{
5959
'k8s',
6060
'homebrew',
6161
'openai',
62-
'anthropic'
62+
'anthropic',
63+
'confluent',
64+
'github'
6365
].includes(name)) {
6466
return `https://${name.replace('_', '-')}-provider.stackql.io/`
6567
} else {

0 commit comments

Comments
 (0)