mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-13 00:57:53 +02:00
Fix typo in code comment (#747)
This commit is contained in:
parent
ffe782a669
commit
6244bb1aa4
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ const env = require('./env.js');
|
|||
|
||||
// Return the subdirectory path from a reference directory
|
||||
// Example:
|
||||
// (file: 'docs/projectA/test.md', refDir: 'subDir')
|
||||
// (file: 'docs/projectA/test.md', refDir: 'docs')
|
||||
// returns 'projectA'
|
||||
function getSubDir(file, refDir) {
|
||||
let subDir = path.dirname(path.relative(refDir, file));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue