Skip to content

Commit

Permalink
Merge pull request #75 from DannyBen/settings-refactor
Browse files Browse the repository at this point in the history
Refactor settings to allow arbitrary user input
  • Loading branch information
DannyBen committed Aug 29, 2018
2 parents 244f6cf + d87a777 commit d89e3c1
Show file tree
Hide file tree
Showing 17 changed files with 123 additions and 410 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ madness.log
nohup.out
toc.html

/app/public/css

*.sublime-*
352 changes: 0 additions & 352 deletions app/public/css/main.css

This file was deleted.

7 changes: 0 additions & 7 deletions app/public/css/main.css.map

This file was deleted.

2 changes: 1 addition & 1 deletion lib/madness/command_line.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def launch_server
# config object.
def set_config(args)
config.path = args['PATH'] if args['PATH']
config.port = args['--port'] if args['--port']
config.port = args['--port'].to_i if args['--port']
config.bind = args['--bind'] if args['--bind']
config.toc = args['--toc'] if args['--toc']
config.auto_h1 = false if args['--no-auto-h1']
Expand Down
Loading

0 comments on commit d89e3c1

Please sign in to comment.