Skip to content

Commit

Permalink
Fixed spec names
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Jan 22, 2024
1 parent 8a0dc07 commit 4ca192e
Show file tree
Hide file tree
Showing 4 changed files with 1,836 additions and 1,300 deletions.
10 changes: 5 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ GITTAG=$(git tag --points-at HEAD)
# Build the specification draft document
echo "Building spec draft"
mkdir -p public/draft
spec-md --metadata spec/metadata.json --githubSource "https://github.com/graphql/graphql-over-http/blame/main/" spec/GraphQLOverHTTP.md > public/draft/index.html
spec-md --metadata spec/metadata.json --githubSource "https://github.com/graphql/graphql-over-http/blame/main/" spec/GraphQLCompositeSchemas.md > public/draft/index.html

# If this is a tagged commit, also build the release document
if [ -n "$GITTAG" ]; then
echo "Building spec release $GITTAG"
mkdir -p "public/$GITTAG"
spec-md --metadata spec/metadata.json --githubSource "https://github.com/graphql/graphql-over-http/blame/$GITTAG/" spec/GraphQLOverHTTP.md > "public/$GITTAG/index.html"
spec-md --metadata spec/metadata.json --githubSource "https://github.com/graphql/graphql-over-http/blame/$GITTAG/" spec/GraphQLCompositeSchemas.md > "public/$GITTAG/index.html"
fi

# Create the index file
echo "Rebuilding: / (index)"
HTML="<html>
<head>
<title>GraphQL over HTTP Specification Versions</title>
<title>GraphQL Composite Schemas Specification Versions</title>
<style>
body {
color: #333333;
Expand Down Expand Up @@ -53,7 +53,7 @@ HTML="<html>
</style>
</head>
<body>
<h1>GraphQL over HTTP</h1>
<h1>GraphQL Composite Schemas</h1>
<table>"

# Include latest draft
Expand All @@ -66,7 +66,7 @@ HTML="$HTML
<td></td>
</tr>"

GITHUB_RELEASES="https://github.com/graphql/graphql-over-http/releases/tag"
GITHUB_RELEASES="https://github.com/graphql/graphql-composite-schemas-spec/releases/tag"
for GITTAG in $(git tag -l --sort='-*committerdate') ; do
VERSIONYEAR=${GITTAG: -4}
TAGTITLE="${GITTAG%$VERSIONYEAR} $VERSIONYEAR"
Expand Down
Loading

0 comments on commit 4ca192e

Please sign in to comment.