Skip to content

Commit

Permalink
update file
Browse files Browse the repository at this point in the history
  • Loading branch information
lijin-THU committed Apr 11, 2017
1 parent 7497e1c commit 6a6fb60
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions generate_static_files.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"outputs": [],
"source": [
"def convert_to_files(names, to_format):\n",
" target_dir = os.path.join(\"static files\", to_format)\n",
" target_dir = os.path.join(\"static-files\", to_format)\n",
" for folder in folders:\n",
" if not os.path.exists(os.path.join(target_dir, folder)):\n",
" os.makedirs(os.path.join(target_dir, folder))\n",
Expand Down Expand Up @@ -303,7 +303,7 @@
"source": [
"with open('index.md') as f:\n",
" text = f.read()\n",
" with open(os.path.join(\"static files\", \"html\", \"README.md\"), \"w\") as g:\n",
" with open(os.path.join(\"static-files\", \"html\", \"README.md\"), \"w\") as g:\n",
" g.write(text.replace(\".ipynb\", \".html\"))"
]
}
Expand Down
4 changes: 2 additions & 2 deletions generate_static_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
# In[5]:

def convert_to_files(names, to_format):
target_dir = os.path.join("static files", to_format)
target_dir = os.path.join("static-files", to_format)
for folder in folders:
if not os.path.exists(os.path.join(target_dir, folder)):
os.makedirs(os.path.join(target_dir, folder))
Expand Down Expand Up @@ -84,6 +84,6 @@ def convert_to_files(names, to_format):

with open('index.md') as f:
text = f.read()
with open(os.path.join("static files", "html", "README.md"), "w") as g:
with open(os.path.join("static-files", "html", "README.md"), "w") as g:
g.write(text.replace(".ipynb", ".html"))

Binary file added payment.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6a6fb60

Please sign in to comment.