-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not push the whole repo to gh-pages
- Loading branch information
1 parent
7d186e8
commit 04364af
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env python | ||
|
||
import os | ||
import shutil | ||
|
||
keep_files = [ | ||
'api', | ||
'images', | ||
'javascripts', | ||
'stylesheets', | ||
'vtests', | ||
'.git', | ||
'_config.yml', | ||
'index.md', | ||
'ogre-logo.png', | ||
'.nojekyll', | ||
] | ||
|
||
for root, dirs, filenames in os.walk( '../../' ): | ||
for fileName in filenames: | ||
if fileName not in keep_files: | ||
toRemove = os.path.join( root, fileName ) | ||
print( 'Removing ' + toRemove ) | ||
for dir in dirs: | ||
if dir not in keep_files: | ||
toRemove = os.path.join( root, dir ) | ||
print( 'Removing ' + toRemove ) | ||
shutil.rmtree( toRemove ) | ||
break |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters