mirror of
https://scm.univ-tours.fr/22107988t/rappaurio-sae501_502.git
synced 2025-08-30 05:55:57 +02:00
permet l'ajout des frameworks et des routes
This commit is contained in:
17
app/node_modules/hyntax/generate-toc.js
generated
vendored
Normal file
17
app/node_modules/hyntax/generate-toc.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
const fs = require('fs')
|
||||
const remark = require('remark')
|
||||
const toc = require('remark-toc')
|
||||
|
||||
const readme = fs.readFileSync('./README.md').toString()
|
||||
|
||||
remark()
|
||||
.use(toc, { tight: true, maxDepth: 2 })
|
||||
.process(readme, function (err, file) {
|
||||
if (err) {
|
||||
throw err
|
||||
}
|
||||
|
||||
fs.writeFileSync('./README.md', file)
|
||||
})
|
Reference in New Issue
Block a user