Commit 2a1a97ac authored by Denis Salem's avatar Denis Salem
Browse files

fixing stuff, add SetColor, wip on doc

parent 65b86262
......@@ -25,9 +25,12 @@ a
text-decoration: none;}
aside ul
{list-style-type: none;}
{list-style-type: none;
padding-left: 10px;}
blockquote,
.venc_source_Yaml
blockquote
{background-color: #000;
color: #FFF;
font-size: 0.8em;
......@@ -35,6 +38,22 @@ blockquote
border-bottom: 1px solid rgba(255,255,255,0.25);
border-radius: 5px;}
blockquote p
{margin-top: 0px;
margin-bottom: 0px;}
.venc_source_Yaml
{font-size: 1em;
margin-left: 15px;
margin-right: 15px;}
.venc_source_Yaml pre
{overflow: hidden;
margin-top: 0px;
margin-left: 15px;
margin-right: 15px;
margin-bottom: 0px;}
#content
{display: block;
background-image: url('bg.png');
......@@ -60,3 +79,4 @@ blockquote
#content ul
{list-style-type: square;}
......@@ -6,6 +6,7 @@
<meta keywords=".:GetBlogKeywords:." />
<meta description=".:GetBlogDescription:." />
<title>.:GetBlogName:.</title>
.:GetStyleSheets:.
<link rel="stylesheet" href=".:GetRelativeOrigin:.style.css" type="text/css">
<link rel="alternate" type="application/rss+xml" title=".:GetBlogName:." href="./feed.xml" />
.:IfInThread::<link rel="stylesheet" href="./styleThread.css" type="text/css">:: :.
......
......@@ -130,8 +130,9 @@
DONE | Add support for embed content (oEmbed).
DONE | Add custom subfolders.
DONE | Add GetRootPage.
DONE | Add SetColor.
DONE | Split install and blog creation chapter in tutorial.
TODO | Support ForPage in entries thread.
TODO | Add SetColor.
TODO | Blacklist user defined patterns from entry.
TODO | Add support For Atom feed.
TODO | Serv page.
......@@ -140,7 +141,6 @@
TODO | Fix unit test.
TODO | Reorganize themes dependencies in setup (adding default templates, scripts, and pages to include).
TODO | Add relevant templates for themes.
WIP | Split install and blog creation chapter in tutorial.
WIP | fix FAQ https://stackoverflow.com/questions/14547631/python-locale-error-unsupported-locale-setting.
WIP | fix FAQ latex2mathml is incomplete.
WIP | fix FAQ categories separator is ' > ', not '>'
......
......@@ -70,6 +70,9 @@ def embed_content(providers, argv):
def get_venc_version(argv):
return venc_version
def set_color(argv):
return "<span style=\"color: "+argv[1]+";\">"+argv[0]+"</span>"
def include_file(argv):
try:
filename = argv[0]
......@@ -84,7 +87,8 @@ def include_file(argv):
non_contextual_pattern_names = {
"GetVenCVersion" : get_venc_version,
"IncludeFile" : include_file
"IncludeFile" : include_file,
"SetColor" : set_color
}
......@@ -122,11 +122,18 @@ class PreProcessor():
print(ee, len(string.split('\n')))
handle_markup_language_error(source+", "+str(e))
for index in self.keep_appart_from_markup_index:
string = string.replace(
"<p>VENC_TEMPORARY_REPLACEMENT_"+str(index)+"</p>",
self.sub_strings[index]
)
for pair in self.keep_appart_from_markup_index:
index, paragraphe = pair
if paragraphe:
string = string.replace(
"<p>VENC_TEMPORARY_REPLACEMENT_"+str(index)+"</p>",
self.sub_strings[index]
)
else:
string = string.replace(
"VENC_TEMPORARY_REPLACEMENT_"+str(index),
self.sub_strings[index]
)
return string
......@@ -283,7 +290,10 @@ class Processor():
for index in pre_processed.patterns_index:
current_pattern = pre_processed.sub_strings[index][2:-2].split('::')[0]
if current_pattern in ["CodeHighlight", "Latex2MathML", "IncludeFile", "audio", "video","EmbedContent"]:
pre_processed.keep_appart_from_markup_index.append(index)
pre_processed.keep_appart_from_markup_index.append((index,True))
elif current_pattern in ["SetColor"]:
pre_processed.keep_appart_from_markup_index.append((index,False))
""" this is tested twice??? """
if current_pattern in self.forbidden:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment