kibana/test/scripts/checks/plugin_public_api_docs.sh
Stacey Gammon 503cfcf8c9
Track API stats as part of ci (#95733)
* Track stats and add extra output information

* Update api docs output

* Clean up id names

* update api docs

* Consolidate error messages and fix a bug

* Update docs

* Update get_declaration_nodes_for_plugin.ts

* Fix bug with removeBrokenLinks not being recursive

* Update docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-15 11:36:10 -04:00

20 lines
459 B
Bash

#!/usr/bin/env bash
source src/dev/ci_setup/setup_env.sh
###
### rebuild plugin api docs to ensure it's not out of date
###
echo " -- building api docs"
node scripts/build_api_docs
###
### verify no api changes
###
### GIT_CHANGES="$(git ls-files --modified)"
### if [ "$GIT_CHANGES" ]; then
### echo -e "\n${RED}ERROR: 'node scripts/build_api_docs' caused changes to the following files:${C_RESET}\n"
### echo -e "$GIT_CHANGES\n"
### exit 1
### fi