function getSourceFilename(markdownFilename, locale) {
  const isAutoGenerated = markdownFilename.endsWith('.tossdocs.md');

  if (isAutoGenerated) {
    return markdownFilename.replace('.tossdocs.md', '');
  }

  const isREADME = markdownFilename === 'README.i18n.md';

  if (isREADME) {
    if (locale === 'en') {
      return markdownFilename.replace('.i18n.md', '.md');
    } else {
      return markdownFilename.replace('.i18n.md', `.${locale}.md`);
    }
  }

  const isI18n = markdownFilename.endsWith('.i18n.md');

  if (isI18n) {
    return markdownFilename.replace('.i18n.md', `.${locale}.md`);
  }

  return markdownFilename;
}
@type {import('@docusaurus/preset-classic').ThemeConfig}