#!/bin/sh# Do some sanity-checking to make sure we are running this from the right placeif ! [ -f _config.yml ]; thenecho "Could not find _config.yml. We may not be in the right place. Bailing."exit 1fi# Helper function to deal with sed differences between osx and Linux# See https://stackoverflow.com/a/38595160sedi () {sed --version >/dev/null 2>&1 && sed -i -- "$@" || sed -i "" "$@"}# Parse latest_engine_api_version variables from _config.yml to replace the value# in toc.yaml. This is brittle!latest_engine_api_version="$(grep 'latest_engine_api_version:' ./_config.yml | grep -oh '"[0-9].*"$' | sed 's/"//g')"sedi "s/{{ site.latest_engine_api_version }}/${latest_engine_api_version}/g" ./_data/toc.yaml
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。