You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- wiki-styles.css is copied into the export directory and can be overridden
- Wiki export now allows overwriting files (with a warning)
- Textile support is dropped (RedCloth wasn't working for me)
- The linkifier doesn't nest different page link styles
- Page links (for follow or export) always check case of file on filesystem
# Ask the user for an export directory, exiting if cancelled
@@ -92,17 +95,28 @@ def export_as_html
92
95
end
93
96
94
97
# Make sure there are no files in the way
98
+
files_in_the_way=false
95
99
files.eachdo |source,dest,title|
96
100
ifFile.file?(dest)
97
-
puts"There's a file in the way! Please move it before exporting: #{File.split(dest)[1]}"
98
-
exit206
99
-
end
101
+
files_in_the_way=true
102
+
end
103
+
end
104
+
ifFile.file?("#{export_dir}/wiki-styles.css")
105
+
files_in_the_way=true
106
+
end
107
+
108
+
iffiles_in_the_way
109
+
res=`#{cocoadialog} msgbox --text "Export will replace files" --icon "x" --informative-text "There are files in the way in the export directory. They will be lost if you continue." --button1 "Cancel Export" --button2 "Replace All"`
110
+
ifres == 1
111
+
puts"Cancelled Export Wiki as HTML"
112
+
exit206
113
+
end
100
114
end
101
115
102
116
# For each file, HTML-ify the links, convert to HTML using Markdown, and save
0 commit comments