Skip to content

Commit

Permalink
fix(docs): make graphql doc gen more automated (#10953)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 committed Jul 19, 2024
1 parent eace710 commit 44cdb04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ concurrency:
jobs:
gh-pages:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
# We explicitly don't use acryldata/sane-checkout-action because docusaurus runs
# git commands to determine the last change date for each file.
Expand Down
22 changes: 4 additions & 18 deletions docs-website/graphql/generateGraphQLSchema.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
#!/bin/sh
rm combined.graphql
if [ -f "combined.graphql" ] ; then
rm "combined.graphql"
fi
touch combined.graphql
echo "Generating combined GraphQL schema..."
echo "# Auto Generated During Docs Build" >> combined.graphql
cat ../../datahub-graphql-core/src/main/resources/actions.graphql >> combined.graphql
cat ../../datahub-graphql-core/src/main/resources/analytics.graphql >> combined.graphql
cat ../../datahub-graphql-core/src/main/resources/app.graphql >> combined.graphql
cat ../../datahub-graphql-core/src/main/resources/auth.graphql >> combined.graphql
cat ../../datahub-graphql-core/src/main/resources/constraints.graphql >> combined.graphql
cat ../../datahub-graphql-core/src/main/resources/entity.graphql >> combined.graphql
cat ../../datahub-graphql-core/src/main/resources/assertions.graphql >> combined.graphql
cat ../../datahub-graphql-core/src/main/resources/ingestion.graphql >> combined.graphql
cat ../../datahub-graphql-core/src/main/resources/recommendation.graphql >> combined.graphql
cat ../../datahub-graphql-core/src/main/resources/search.graphql >> combined.graphql
cat ../../datahub-graphql-core/src/main/resources/tests.graphql >> combined.graphql
cat ../../datahub-graphql-core/src/main/resources/timeline.graphql >> combined.graphql
cat ../../datahub-graphql-core/src/main/resources/step.graphql >> combined.graphql
cat ../../datahub-graphql-core/src/main/resources/lineage.graphql >> combined.graphql
cat ../../datahub-graphql-core/src/main/resources/properties.graphql >> combined.graphql
cat ../../datahub-graphql-core/src/main/resources/forms.graphql >> combined.graphql
cat ../../datahub-graphql-core/src/main/resources/connection.graphql >> combined.graphql
cat ../../datahub-graphql-core/src/main/resources/*.graphql >> combined.graphql

0 comments on commit 44cdb04

Please sign in to comment.