Skip to content

Commit

Permalink
Move docgen scripts to script folder
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnrusschen committed Feb 12, 2016
1 parent ce29276 commit 5bc79b3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/buildDocs.sh → scripts/buildDocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function buildDocs(api) {
for (var filepath in api) {
var name = getComponentName(filepath);
var markdown = generateMarkdown(name, api[filepath]);
var outputLocation = 'docs/';
var outputLocation = '../docs/';
fs.writeFileSync(outputLocation + name + '.md', markdown);
process.stdout.write(filepath + ' -> ' + outputLocation + name + '.md\n');
}
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

npm version $1

react-docgen src/*.jsx | docs/buildDocs.sh
react-docgen ../src/*.jsx | buildDocs.sh

git add .

Expand Down

0 comments on commit 5bc79b3

Please sign in to comment.