<commit_before>#!/bin/bash

set -e
source ../toolversions.sh

install_docfx

# Some versions of docfx fail if VSINSTALLDIR is set.
export VSINSTALLDIR=

build_api_docs() {
  log_build_action "Building docs for $1"
  local api=$1

  # Special case "root" where we don't need to generate the sources
  if [ "$api" == "root" ]
  then
    cp -r root output/root
    mkdir -p output/root/obj/api
  elif [[ ! -d "../apis/$api/docs" ]]
  then
    if [[ -d "../apis/$api" ]]
    then
      echo "No docs directory for $api; ignoring"
      return 0
    else<commit_msg>Fix a warning spotted during docfx builds<commit_after>#!/bin/bash

set -e
source ../toolversions.sh

install_docfx

# Some versions of docfx fail if VSINSTALLDIR is set.
export VSINSTALLDIR=

# We don't need deterministic source paths in the docfx metadata build,
# and they don't seem to work out of the box with the rest of our build
# setup, so let's just disable them.
export ContinuousIntegrationBuild=false

build_api_docs() {
  log_build_action "Building docs for $1"
  local api=$1

  # Special case "root" where we don't need to generate the sources
  if [ "$api" == "root" ]
  then
    cp -r root output/root
    mkdir -p output/root/obj/api
  elif [[ ! -d "../apis/$api/docs" ]]
  then
    if [[ -d "../apis/$api" ]]
    then
      echo "No docs directory for $api; ignoring"
      return 0
    else
{'fraction_non_alphanumeric': 0.11224489795918367, 'fraction_numerical': 0.004373177842565598, 'mean_word_length': 2.9340974212034383, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7103495', 'n_tokens_mistral': 476, 'n_tokens_neox': 442, 'n_words': 170}