restructured project folders
@@ -1,3 +1,4 @@
|
||||
assets/scss/*.css
|
||||
classes/__pycache__
|
||||
build
|
||||
Cascade.egg-info
|
||||
|
||||
|
Before Width: | Height: | Size: 215 KiB After Width: | Height: | Size: 215 KiB |
|
Before Width: | Height: | Size: 121 KiB After Width: | Height: | Size: 121 KiB |
|
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 53 KiB |
@@ -18,7 +18,7 @@ from PyQt5.QtWidgets import QWidget, QLabel, QHBoxLayout, QVBoxLayout, QSplitter
|
||||
|
||||
from classes import highlighter
|
||||
|
||||
import markdown2
|
||||
import markdown
|
||||
import json
|
||||
|
||||
|
||||
@@ -247,8 +247,8 @@ class MarkdownEditor(QWidget):
|
||||
# self.tabs.setTabText(i, "* "+self.tabs.tabText(i))
|
||||
|
||||
def refreshViewer(self):
|
||||
markdown = self.editor.toPlainText()
|
||||
html = markdown2.markdown(markdown)
|
||||
md = self.editor.toPlainText()
|
||||
html = markdown.markdown(md)
|
||||
self.viewer.setHtml(html)
|
||||
|
||||
def save(self):
|
||||
@@ -14,7 +14,8 @@ from PyQt5 import QtCore
|
||||
from PyQt5.QtCore import QSettings, QCoreApplication
|
||||
|
||||
import json
|
||||
import git
|
||||
# import git
|
||||
# from pygit2 import Repository
|
||||
|
||||
from classes import server, sasscompiler, md2html
|
||||
|
||||
@@ -210,6 +211,7 @@ class Core():
|
||||
self.changeCWD(cwd)
|
||||
self.loadDocSettings()
|
||||
self.summary = json.loads(open(os.path.join(cwd,'.config/summary.json')).read())
|
||||
# TODO: try python-pygit2 arch package
|
||||
# self.repository = git.Repo.init(cwd)
|
||||
# TODO: set git config user.name & user.email
|
||||
# self.repository
|
||||