Skip to content

Commit

Permalink
Change default output directory to ./docs
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Sep 8, 2017
1 parent 41f1792 commit 9bc4c2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/compiler/crystal/command/docs.cr
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class Crystal::Command
private def docs
output_directory = "./doc"
output_directory = "./docs"

OptionParser.parse(options) do |opts|
opts.banner = "Usage: crystal docs [options]\n\nOptions:"
Expand Down
4 changes: 2 additions & 2 deletions src/compiler/crystal/tools/doc/generator.cr
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class Crystal::Doc::Generator
},
}

def initialize(@program : Program, @included_dirs : Array(String), @dir = "./doc")
@base_dir = `pwd`.chomp
def initialize(@program : Program, @included_dirs : Array(String), @dir)
@base_dir = Dir.current
@types = {} of Crystal::Type => Doc::Type
@repo_name = ""
@is_crystal_repo = false
Expand Down

0 comments on commit 9bc4c2a

Please sign in to comment.