Skip to content

Commit

Permalink
fix typo on code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
endiliey committed Jun 10, 2018
1 parent ffe782a commit 3e1f361
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/server/readMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function processMetadata(file, refDir) {

// If a file is located in a subdirectory, prepend the subdir to it's ID
// Example:
// (file: 'docusaurus/docs/projectA/test.md', ID 'test', refDir: 'docs')
// (file: 'docusaurus/docs/projectA/test.md', ID 'test', refDir: 'docusaurus/docs')
// returns 'projectA/test'
const subDir = utils.getSubDir(file, refDir);
if (subDir) {
Expand Down
2 changes: 1 addition & 1 deletion lib/server/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 3e1f361

Please sign in to comment.