1
0
mirror of synced 2025-12-22 03:16:52 -05:00
Files
docs/script/new-versioning/update-products-yml.js
Vanessa Yuen 3df90fc9b8 Hello git history spelunker!
Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
2020-09-27 14:10:11 +02:00

22 lines
476 B
JavaScript
Executable File

#!/usr/bin/env node
const fs = require('fs')
const path = require('path')
const productsFile = path.join(process.cwd(), 'data/products.yml')
const contents = `# this sequence sets the product order in the sidebar
# the product IDs match keys in lib/all-products.js
# note this file should not be translated
productsInOrder:
- github
- admin
- actions
- packages
- developers
- rest
- graphql
- insights
- desktop`
fs.writeFileSync(productsFile, contents)