<commit_before>const visit = require('unist-util-visit');
const { kebabCase } = require('lodash');

const IGNORES = [
	'https://raw.githubusercontent.com/styleguidist/react-styleguidist/master/templates/DefaultExample.md',
	'https://github.com/styleguidist/react-styleguidist/blob/master/.github/Contributing.md',
];
const REPLACEMENTS = {
	'https://github.com/styleguidist/react-styleguidist': 'https://react-styleguidist.js.org/',
};

const getDocUrl = url => url.replace(/(\w+)(?:\.md)/, (_, $1) => `/${kebabCase($1)}`);

/*
 * Fix links:
 * GettingStarted.md -> /docs/getting-started
 */<commit_msg>docs: Fix links on the site, again 🦐<commit_after>const visit = require('unist-util-visit');
const { kebabCase } = require('lodash');

const IGNORES = [
	'https://raw.githubusercontent.com/styleguidist/react-styleguidist/master/templates/DefaultExample.md',
	'https://github.com/styleguidist/react-styleguidist/blob/master/.github/Contributing.md',
];
const REPLACEMENTS = {
	'https://github.com/styleguidist/react-styleguidist': 'https://react-styleguidist.js.org/',
};

const getDocUrl = url => url.replace(/(\w+)(?:\.md)/, (_, $1) => `/docs/${kebabCase($1)}`);

/*
 * Fix links:
 * GettingStarted.md -> /docs/getting-started
 */
{'fraction_non_alphanumeric': 0.20745542949756887, 'fraction_numerical': 0.0032414910858995136, 'mean_word_length': 4.7981220657277, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 8, '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': '6836453', 'n_tokens_mistral': 452, 'n_tokens_neox': 457, 'n_words': 55}