* fix: ignore unknown fields in more RPC responses * Remove mdbook infrastructure * Delete gitattributes and other theme related items Move all docs to /docs folder to support Docusaurus * all docs need to be moved to /docs * can be changed in the future Add Docusaurus infrastructure * initialize docusaurus repo Remove trailing whitespace, add support for eslint Change Docusaurus configuration to support `src` * No need to rename the folder! Change a setting and we're all good to go. * Fixing rebase items * Remove unneccessary markdown file, fix type * Some fonts are hard to read. Others, not so much. Rubik, you've been sidelined. Roboto, into the limelight! * As much as we all love tutorials, I think we all can navigate around a markdown file. Say goodbye, `mdx.md`. * Setup deployment infrastructure * Move docs job from buildkite to travic * Fix travis config * Add vercel token to travis config * Only deploy docs after merge * Docker rust env * Revert "Docker rust env" This reverts commit f84bc208e807aab1c0d97c7588bbfada1fedfa7c. * Build CLI usage from docker * Pacify shellcheck * Run job on PR and new commits for publication * Update README * Fix svg image building * shellcheck Co-authored-by: Michael Vines <mvines@gmail.com> Co-authored-by: Ryan Shea <rmshea@users.noreply.github.com> Co-authored-by: publish-docs.sh <maintainers@solana.com>
29 lines
749 B
Bash
Executable File
29 lines
749 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
if [[ -n $CI_TAG ]]; then
|
|
LATEST_SOLANA_RELEASE_VERSION=$CI_TAG
|
|
elif [[ -z $CI_PULL_REQUEST ]]; then
|
|
LATEST_SOLANA_RELEASE_VERSION=$(\
|
|
curl -sSfL https://api.github.com/repos/solana-labs/solana/releases/latest \
|
|
| grep -m 1 tag_name \
|
|
| sed -ne 's/^ *"tag_name": "\([^"]*\)",$/\1/p' \
|
|
)
|
|
else
|
|
# Don't bother the `api.github.com` on pull requests to avoid getting rate
|
|
# limited
|
|
LATEST_SOLANA_RELEASE_VERSION=unknown-version
|
|
fi
|
|
|
|
if [[ -z "$LATEST_SOLANA_RELEASE_VERSION" ]]; then
|
|
echo Error: release version not defined
|
|
exit 1
|
|
fi
|
|
|
|
set -x
|
|
if [[ -n $CI ]]; then
|
|
find src/ -name \*.md -exec sed -i "s/LATEST_SOLANA_RELEASE_VERSION/$LATEST_SOLANA_RELEASE_VERSION/g" {} \;
|
|
fi
|