1. Ben Bangert
  2. tinkerer

Commits

Christian Jann  committed 40aa454

Make it possible to copy some extra files to the output directory

All files from the "_copy" directory will be copied to the output directory,
e.g. an file "_copy/.htaccess" will be copied to "blog/html/.htaccess",
this is necessary because the "blog" directory gets recreated with every build.

  • Participants
  • Parent commits 06c57d2
  • Branches default

Comments (0)

Files changed (1)

File tinkerer/cmdline.py

View file
     if filename_only:
         print("index.html")
 
+    # copy some extra files to the output directory
+    if os.path.exists("_copy"):
+        shutil.copytree("_copy/", paths.html)
+        
     return sphinx.main(flags)