mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-24 21:48:02 +02:00
Clean up API changes
This commit is contained in:
parent
419e0c0ff9
commit
6d2b6740c1
3 changed files with 10 additions and 17 deletions
|
@ -70,8 +70,6 @@ function execute() {
|
|||
|
||||
console.log("generate.js triggered...");
|
||||
|
||||
const regexSubFolder = /translated_docs\/(.*)\/.*/;
|
||||
|
||||
const enabledLanguages = [];
|
||||
languages.filter(lang => lang.enabled).map(lang => {
|
||||
enabledLanguages.push(lang.tag);
|
||||
|
@ -142,6 +140,7 @@ function execute() {
|
|||
files.forEach(file => {
|
||||
let language = "en";
|
||||
|
||||
const regexSubFolder = /translated_docs\/(.*)\/.*/;
|
||||
const match = regexSubFolder.exec(file);
|
||||
if (match) {
|
||||
language = match[1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue