1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-19 03:41:19 +02:00

Update branch to work with 5.3

This commit is contained in:
Julien Déramond
2023-03-21 16:23:57 +01:00
parent 43dc669f0a
commit 622457b56d
3 changed files with 4 additions and 4 deletions

View File

@@ -35,7 +35,7 @@ fs.readFile('../dist/css/bootstrap.css', 'utf8', (error, data) => {
}
// Create a temp file containing all classes names as keys and empty values
fs.writeFile('../site/static/docs/5.2/assets/data/glossary.data.temp', newContent, error => {
fs.writeFile('../site/static/docs/5.3/assets/data/glossary.data.temp', newContent, error => {
if (error) {
throw error
}
@@ -44,7 +44,7 @@ fs.readFile('../dist/css/bootstrap.css', 'utf8', (error, data) => {
// Compare what's inside our glossary.data and the temp glossary to:
// - remove in glossary.data what doesn't exist anymore
// - add the keys in glossary.data that should be completed with the corresponding links manually
fs.readFile('../site/static/docs/5.2/assets/data/glossary.data', 'utf8', (error, data) => {
fs.readFile('../site/static/docs/5.3/assets/data/glossary.data', 'utf8', (error, data) => {
if (error) {
throw error
}
@@ -74,13 +74,13 @@ fs.readFile('../dist/css/bootstrap.css', 'utf8', (error, data) => {
}
}
fs.writeFile('../site/static/docs/5.2/assets/data/glossary.data', finalContentArray.sort().join(''), { flag: 'w' }, error => {
fs.writeFile('../site/static/docs/5.3/assets/data/glossary.data', finalContentArray.sort().join(''), { flag: 'w' }, error => {
if (error) {
throw error
}
})
fs.unlink('../site/static/docs/5.2/assets/data/glossary.data.temp', error => {
fs.unlink('../site/static/docs/5.3/assets/data/glossary.data.temp', error => {
if (error) {
throw error
}