mdnotes 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mdnotes.rb +20 -4
- metadata +1 -1
data/lib/mdnotes.rb
CHANGED
@@ -96,14 +96,30 @@ class MDNotes
|
|
96
96
|
|
97
97
|
|
98
98
|
def start
|
99
|
-
|
100
|
-
|
101
|
-
|
99
|
+
if @params['h'] || @params['help']
|
100
|
+
puts
|
101
|
+
puts
|
102
|
+
puts "MDNotes"
|
103
|
+
puts "======="
|
104
|
+
puts
|
105
|
+
puts "Using a terminal, [cd] into the directory you want to takes notes."
|
106
|
+
puts "Use command [mdnotes] to create a notes directory."
|
107
|
+
puts "Create your markdown (.md) in the md/ directory."
|
108
|
+
puts "Use [mdnotes] to 'compile' your notes into html. These will be located in the html/ folder."
|
109
|
+
puts "Use [mdnotes -p] or [mdnotes --publish] to create pdf's of your notes. These will be located in the pdf/ folder"
|
110
|
+
puts "If you want to include images in your notes you can place them in the images folder located under ./html/images. Use ![alt-text](./images/my_image.png) to reference an image."
|
111
|
+
puts
|
112
|
+
puts
|
113
|
+
else
|
114
|
+
check_directories
|
115
|
+
compile_notes
|
116
|
+
publish_notes
|
117
|
+
end
|
102
118
|
end
|
103
119
|
|
104
120
|
end
|
105
121
|
|
106
122
|
|
107
|
-
|
123
|
+
MDNotes.new.start
|
108
124
|
|
109
125
|
|