Merge branch 'main' of https://git.xpub.nl/XPUB/SI20
commit
3fc27acc3e
@ -0,0 +1,18 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
|
||||
{
|
||||
"name": "Python: Current File",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"program": "${file}",
|
||||
"console": "integratedTerminal",
|
||||
"justMyCode": true,
|
||||
"cwd": "${workspaceFolder}/${relativeFileDirname}"
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
from glob import glob
|
||||
import os
|
||||
files = glob("content/**", recursive=True)
|
||||
print(files)
|
||||
print("----------")
|
||||
|
||||
for file in files:
|
||||
#print(file)
|
||||
if file.endswith(".md"):
|
||||
print(file)
|
||||
|
||||
html_file = file.replace(".md" , ".html")
|
||||
pandoc_cmd = "pandoc -f markdown -t html" + file + "-o "
|
||||
|
||||
os.system(pandoc_cmd)
|
||||
print("html file saved!")
|
||||
|
||||
|
||||
html_files = glob("content/**", recursive=True)
|
||||
print("----------")
|
||||
|
||||
all_html = ""
|
||||
|
||||
for html_file in html_files:
|
||||
if file.endswith(".html"):
|
||||
print(html_file)
|
||||
#open the html file and read teh content
|
||||
html = open(html_file).read()
|
||||
|
||||
# add this content to all_html
|
||||
all_html += html
|
||||
|
||||
print("------------")
|
||||
print(all_html)
|
||||
|
||||
output = open()
|
Before Width: | Height: | Size: 840 KiB After Width: | Height: | Size: 840 KiB |
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.4 MiB |
Before Width: | Height: | Size: 1.6 MiB After Width: | Height: | Size: 1.6 MiB |
Loading…
Reference in New Issue