@@ -8,6 +8,10 @@ import java.io.{ File => JFile, OutputStreamWriter, BufferedWriter, ByteArrayInp
8
8
import java .util .{ List => JList , Map => JMap , Arrays }
9
9
import java .nio .file .Path
10
10
import java .nio .charset .StandardCharsets
11
+ import java .util .Calendar
12
+ import java .text .SimpleDateFormat
13
+ import java .io .PrintWriter
14
+
11
15
12
16
import com .vladsch .flexmark .parser .ParserEmulationProfile
13
17
import com .vladsch .flexmark .parser .Parser
@@ -311,6 +315,16 @@ case class Site(val root: JFile, val projectTitle: String, val documentation: Ma
311
315
* defaults, the user-defined one will take precedence.
312
316
*/
313
317
val layouts : Map [String , Layout ] = {
318
+
319
+ val cal = Calendar .getInstance()
320
+ val today = cal.getTime()
321
+ val currentHour = new SimpleDateFormat (" hh" ).format(today)
322
+ val currentMinute = new SimpleDateFormat (" mm" ).format(today)
323
+ val amOrPm = new SimpleDateFormat (" a" ).format(today)
324
+ val x = " <!-- generated on " + cal.get(Calendar .DATE ) + " /" + (cal.get(Calendar .MONTH )+ 1 )+ " /" + cal.get(Calendar .YEAR ) + " " + currentHour + " :" + currentMinute + " :" + amOrPm + " -->"
325
+ var loc = root.getAbsolutePath.toString + " /.." + " /doc-tool/resources/_layouts/main.html"
326
+ scala.tools.nsc.io.File (loc).appendAll(x)
327
+
314
328
val userDefinedLayouts =
315
329
root
316
330
.listFiles.find(d => d.getName == " _layouts" && d.isDirectory)
0 commit comments